Setup QML Type
Invoke the Online Accounts panel. More...
Import Statement: | import Lomiri.OnlineAccounts.Client 0.1 |
Properties
- applicationId : string
- providerId : string
- serviceId : string
- serviceTypeId : string
Signals
- finished()
Methods
- void exec()
Detailed Description
This object can be used by applications to request the creation of an account. By calling the exec() method, the Online Accounts panel will appear and guide the user through the creation of an account. Once done, the finished() signal will be emitted. The type of account to be created can be configured by this object's properties.
Example:
import QtQuick 2.9 import Lomiri.Components 1.3 import Lomiri.OnlineAccounts.Client 0.1 Rectangle { width: 400 height: 300 Button { anchors.centerIn: parent text: "Create Facebook account" onClicked: setup.exec() } Setup { id: setup applicationId: "MyApp" providerId: "facebook" } }
Property Documentation
Specifies which application is asking for access. The value of this string must be equal to the filename of the XML application file (installed in /usr/share/accounts/applications/
or ~/.local/share/accounts/applications/
) minus the .application
suffix.
If set to a valid provider, the user will be asked to create an Online Account provided by this entity.
If set to a valid service ID, the user will be asked to create an Online Account which provides this service.
If set to a valid service type, the user will be asked to create an Online Account which supports this service type.