Instance Method

saveAccount(_:withCompletionHandler:)

Saves an account to the Accounts database.

Declaration

func saveAccount(_ account: ACAccount!, withCompletionHandler completionHandler: ACAccountStoreSaveCompletionHandler!)

Parameters

account

The account to save.

completionHandler

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

Discussion

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

See Also

Saving Accounts

typealias ACAccountStoreSaveCompletionHandler

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