Instance Method

saveAccount:withCompletionHandler:

Saves an account to the Accounts database.

Declaration

- (void)saveAccount:(ACAccount *)account withCompletionHandler:(ACAccountStoreSaveCompletionHandler)completionHandler;

Parameters

account

The account to save.

completionHandler

The handler to call when the operation completes. The handler is called on an arbitrary queue.

Discussion

If the account type supports authentication and the account isn’t authenticated, the account server uses the account’s credentials to authenticate it. If the authentication is successful, the account is saved; otherwise it’s not saved.

See Also

Saving Accounts

ACAccountStoreSaveCompletionHandler

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