Sailfish Share
API DocumentationShareAction QML Type
Import Statement: | import Sailfish.Share 1.0 |
Properties
Methods
- trigger()
Detailed Description
Launches the Sharing UI from a predefined configuration.
Property Documentation
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.
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" } ] }