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

Sailfish Accounts

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

Contents

  • Properties
  • Signals
  • Methods
  • Detailed Description

AccountManager QML Type

Provides access to providers, services and accounts. More...

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

Properties

  • accountIdentifiers : list
  • providerNames : list
  • serviceNames : list
  • serviceTypeNames : list

Signals

  • accountCreated(int accountId, string providerName)
  • accountCreationFailed(string message, string providerName)

Methods

  • Account account(int accountIdentifier)
  • bool createAccount(string providerName)
  • bool credentialsNeedUpdate(int accountId)
  • Provider provider(string providerName)
  • list providerAccountIdentifiers(string providerName)
  • Service service(string serviceName)
  • ServiceType serviceType(string serviceTypeName)

Detailed Description

The AccountManager type is intended for use by privileged applications and account provider plugins. The functionality it provides is not useful for client applications who wish to use an account to access a service (such clients should use the account model instead).

The AccountManager provides information about existing providers, services, and accounts. It also allows new accounts to be created.

Property Documentation

accountIdentifiers : list

Holds the identifiers of all accounts which exist in the system accounts database.


providerNames : list

Holds the names of all providers which exist in the system accounts database, which match the service type filter.


serviceNames : list

Holds the names of all services which exist in the system accounts database, which match the service type filter.


serviceTypeNames : list

Holds the service type names which may be used as filter values.

The values are derived from examination of the service type of all services which exist in the system accounts database at the point in time when the AccountManager instance was created.


Signal Documentation

accountCreated(int accountId, string providerName)

Emitted when account has been created.

The accountId parameter contains the id of the account that was created. The providerName parameter contains the name of the account provider.


accountCreationFailed(string message, string providerName)

Emitted if account creation fails.

The message parameter contains an error message which can be displayed to user. The providerName parameter contains the name of the account provider.


Method Documentation

Account account(int accountIdentifier)

Returns the account identified by the given accountIdentifier. The AccountManager has ownership of the Account adapter, and will delete it automatically on destruction.

Returns null if no such account exists.


bool createAccount(string providerName)

Creates a new, disabled Account with the provider identified by the given providerName and stores it to the database. The operation is asynchronous and on success, the accountCreated() signal will be emitted. On failure, the accountCreationFailed() signal will be emitted.

Returns true if the account creation process is triggered, or false if the manager is currently busy creating another account.


bool credentialsNeedUpdate(int accountId)

Returns true if the global service of the account identified by accountId has CredentialsNeedUpdate flag and it is set.


Provider provider(string providerName)

Returns the provider identified by the given providerName. The AccountManager has ownership of the Provider adapter, and will delete it automatically on destruction.


list providerAccountIdentifiers(string providerName)

Returns the list of ids of accounts provided by the provider with the given providerName (or all providers, if the given providerName is empty).


Service service(string serviceName)

Returns the service identified by the given serviceName. The AccountManager has ownership of the Service adapter, and will delete it automatically on destruction.


ServiceType serviceType(string serviceTypeName)

Returns the service type identified by the given serviceTypeName. The AccountManager owns the returned instance and will delete it on destruction.


  • Legal
  • Contact Us
  • Jolla Mobile Ltd © 2025

  • Facebook
  • Twitter
  • Mastodon
  • YouTube
  • LinkedIn