Instance Method

requestAccessToAccountsWithType:withCompletionHandler:

Requests access to accounts of the specified type.

Declaration

- (void)requestAccessToAccountsWithType:(ACAccountType *)accountType withCompletionHandler:(ACAccountStoreRequestAccessCompletionHandler)handler;

Parameters

accountType

The account type.

handler

The handler to call when access is granted or denied. The handler is called on an arbitrary queue.

Discussion

This method displays a dialog to the user confirming whether the application has access to the account. If access is granted, the application has access to protected properties of and operations on all accounts of the specified type.

See Also

Requesting Access

- requestAccessToAccountsWithType:options:completion:

Obtains permission to access protected user properties.

ACAccountStoreRequestAccessCompletionHandler

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