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

Sailfish Share

API Documentation
  • 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
  • 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
  • Methods
  • Detailed Description

ShareAction QML Type

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

Properties

  • mimeType : string
  • resources : list
  • title : string

Methods

  • trigger()

Detailed Description

Launches the Sharing UI from a predefined configuration.

Property Documentation

mimeType : string

The mime type of the resources to be shared.

This affects the sharing targets that are available when sharing the specified resources.

The value can be a single type, or a wildcard that matches all of the resource types. For example, if resources contains a single PNG image, the mimeType could be "image/png". Any sharing target that is unable to share PNG images will not available in the sharing options.

If the resources contains both JPEG and PNG files, the "png" part in the mimeType could be replaced by "*" to specify that the sharing target must be able to send any type of image. Alternatively it could specify the entire mimeType as "*", indicating that the sharing target must be able to share all types of files.

If not set, this is auto-generated based on the resources value.


resources : list

A list of resources to be shared. The following resource types are allowed:

  • url or string: path to a file on the local filesystem. urls are converted to string format. If the path starts with 'file:///', this scheme is stripped.
  • map: holds raw content data and associated metadata

Example:

 ShareAction {
     resources: [
         "/path/to/my/file.txt",
         { "data": "<raw-bytes>", "name": "my-data-file" }
     ]
 }

title : string

The title text to show in the sharing UI.


Method Documentation

trigger()

Launches the sharing UI.


  • Legal
  • Contact Us
  • Jolla Mobile Ltd © 2025

  • Facebook
  • Twitter
  • Mastodon
  • YouTube
  • LinkedIn