Class

ACAccountStore

The object you use to request, manage, and store the user’s account information.

Declaration

@interface ACAccountStore : NSObject

Overview

The ACAccountStore class provides an interface for accessing, managing, 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 account store object.

Topics

Requesting Access

- requestAccessToAccountsWithType:withCompletionHandler:

Requests access to accounts of the specified type.

Deprecated
- requestAccessToAccountsWithType:options:completion:

Obtains permission to access protected user properties.

ACAccountStoreRequestAccessCompletionHandler

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

Getting Accounts

accounts

The accounts managed by this account store.

- accountWithIdentifier:

Returns the account with the specified identifier.

- accountsWithAccountType:

Returns all accounts of the specified type.

Getting Account Types

- accountTypeWithAccountTypeIdentifier:

Returns an account type that matches the specified identifier.

Saving Accounts

- saveAccount:withCompletionHandler:

Saves an account to the Accounts database.

ACAccountStoreSaveCompletionHandler

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

Renewing Account Credentials

- renewCredentialsForAccount:completion:

Renews account credentials when the credentials are no longer valid.

ACAccountStoreCredentialRenewalHandler

Specifies a handler to call when credentials are renewed.

ACAccountCredentialRenewResult

Status codes of credential renewal requests.

Removing Accounts

- removeAccount:withCompletionHandler:

Removes an account from the account store.

ACAccountStoreRemoveCompletionHandler

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

Responding to Changes

ACAccountStoreDidChangeNotification

Posted when the accounts managed by this account store changed in the database.

Relationships

Inherits From

See Also

Account Management

ACAccount

The information associated with one of the user’s accounts.

ACAccountCredential

An ACAccountCredential object encapsulates the information needed to authenticate a user.