Ubuntu.OnlineAccounts.Client Setup¶
Invoke the Online Accounts panel
Import Statement: | import Ubuntu.OnlineAccounts.Client . |
Properties¶
- applicationId : string
- providerId : string
- serviceId : string
- serviceTypeId : string
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.0
import Ubuntu.Components 1.3
import Ubuntu.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¶
applicationId : string |
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.
providerId : string |
If set to a valid provider, the user will be asked to create an Online Account provided by this entity.
serviceId : string |
If set to a valid service ID, the user will be asked to create an Online Account which provides this service.
serviceTypeId : string |
If set to a valid service type, the user will be asked to create an Online Account which supports this service type.