Sailfish OS
  • Info
  • User Experience
  • Cases
  • Community
  • Developers
  • Contact
  • Get Sailfish OS
Select Page

API Documentation

Documentation for developing SailfishOS applications
  • API Documentation
  • Libsailfishapp
  • Sailfish Silica
    • Documentation
    • Icon Reference
  • Sailfish Components
    • Sailfish Accounts
    • Sailfish Bluetooth
    • Sailfish Contacts
    • Sailfish Crypto
    • Sailfish Gallery
    • Sailfish Media
    • Sailfish Pickers
    • Sailfish Secrets
    • Sailfish Share
    • Sailfish Telephony
    • Sailfish Webview
    • Amber Web Authorization
    • Amber MPRIS
  • Nemo QML Plugins
    • Configuration
    • Contacts
    • D-Bus
    • Keepalive
    • Notifications
    • Thumbnailer
  • Sailfish Middleware
    • MDM Framework
    • MDM Policy Framework
    • User Manager Daemon

Contents

  • Properties
  • Detailed Description

Notice QML Type

The Notice API allows the application to do in-app notifications on top of the application UI. More...

Import Statement: import Sailfish.Silica 1.0
  • List of all members, including inherited members

Properties

  • anchor : int
  • duration : int
  • horizontalOffset : real
  • text : string
  • verticalOffset : real

Detailed Description

The Notice component can be used to notify user e.g. when something happened. It's similar to the notification system but fully handled inside the appplication.

Example how to use:

 import Sailfish.Silica 1.0

 Button {
     text: "Click me"
     onClicked: notice.show()

     Notice {
         id: notice

         duration: Notice.Short
         text: "Something happened"
     }
 }

See also Notices.

Property Documentation

anchor : int

Anchoring hint where to show the notice item with the following options:

  • Notice.Center
  • Notice.Left
  • Notice.Right
  • Notice.Top
  • Notice.Bottom

The flags can be combined.


duration : int

Duration in milliseconds how long the notice is shown. Can also use predefined values

  • Notice.Short for brief notice
  • Notice.Long for longer shown notice

Default is Notice.Long.


horizontalOffset : real

Horizontal offset hint related to the anchor.


text : string

Text to be shown.


verticalOffset : real

Vertical offset hint related to the anchor.


  • Legal
  • Contact Us
  • Jolla Mobile Ltd © 2025

  • Facebook
  • Twitter
  • Mastodon
  • YouTube
  • LinkedIn