We have moved to a new Sailfish OS Forum. Please start new discussions there.

Where is the share/shareui API in sailfishos?

asked 2014-02-16 11:53:32 +0300

mike7b4 gravatar image

updated 2015-01-19 11:35:36 +0300

eric gravatar image

What I talk about is a way to share stuff like you do in Harmattan and fremantle.

Right now this functionality is only available in the galleryapp and browser using "Sailfish.TransferEngine" (not yet public API?)

But AFAIK there is no way for third party developers to make they'r own sharing plugins for dropbox, owncloud etc...? Or even use this API:s since not documented on sailfishos.org.

I think it would be good if thirdparty can use this TransferEngine atleast. But hopefully also make own plugins. For example I want to make a very simple plugin to push links from sailfishos => kubuntu desktop eg: "share link to kubuntu desktop" and spawn rekonq/firefox/whatever on my linuxdesktop.

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted

answered 2016-08-30 17:27:45 +0300

dysko gravatar image

updated 2016-08-30 18:04:56 +0300

Hi there... I found this piece of code for the browser and it works nicely: If you find some other way, please let me know.

import QtQuick 2.0
import Sailfish.Silica 1.0
import Sailfish.TransferEngine 1.0

Page {

    id: page
    property string link
    property string linkTitle

    ShareMethodList {
        id: shareMethodList
        anchors.fill: parent
        header: PageHeader {
            //: List header for link sharing method list
            //% "Share link"
            title: qsTrId("sailfish_browser-he-share_link")
        filter: "text/x-url"
        content: {
            "type": "text/x-url",
            "status": page.link,
            "linkTitle": page.linkTitle

        ViewPlaceholder {
            enabled: shareMethodList.model.count === 0

            //: Empty state for share link page
            //% "No sharing accounts available. You can add accounts in settings"
            text: qsTrId("sailfish_browser-la-no_accounts")
} `
edit flag offensive delete publish link more
Login/Signup to Answer

Question tools



Asked: 2014-02-16 11:53:32 +0300

Seen: 514 times

Last updated: Aug 30 '16