Class

ACAccountStore

The ACAccountStore class provides an interface for accessing, manipulating, and storing accounts. To create and retrieve accounts from the Accounts database, you must create an ACAccountStore object. Each ACAccount object belongs to a single ACAccountStore object.

Topics

Getting Accounts

var accounts: NSArray!

The accounts managed by this account store.

func account(withIdentifier: String!)

Returns the account with the specified identifier.

func accounts(with: ACAccountType!)

Returns all accounts of the specified type.

Getting Account Types

func accountType(withAccountTypeIdentifier: String!)

Returns an account type that matches the specified identifier.

Renewing Account Credentials

func renewCredentials(for: ACAccount!, completion: ACAccountStoreCredentialRenewalHandler!)

Renews account credentials when the credentials are no longer valid.

Constants

Facebook Access Keys

Options dictionary keys supporting requests to Facebook accounts.

Facebook Access Values

Options dictionary values supporting requests to Facebook accounts.

LinkedIn Access Keys

Options dictionary keys supporting requests to LinkedIn accounts.

Tencent Weibo Access Keys

Options dictionary keys supporting requests to Tencent Weibo accounts.

enum ACAccountCredentialRenewResult

Status codes of credential renewal requests.

typealias ACAccountStoreSaveCompletionHandler

Specifies a handler to call when an Accounts database operation is complete.

typealias ACAccountStoreRemoveCompletionHandler

Specifies a handler to call when an account is removed from the store.

typealias ACAccountStoreRequestAccessCompletionHandler

Specifies a handler to call when access is granted or denied.

typealias ACAccountStoreCredentialRenewalHandler

Specifies a handler to call when credentials are renewed.

Notifications

static let ACAccountStoreDidChange: NSNotification.Name

Posted when the accounts managed by this account store changed in the database. There is no userInfo dictionary associated with this notification.

Relationships

Inherits From

Conforms To