public class ACAccountStore extends NSObject
| Constructor and Description |
|---|
ACAccountStore() |
| Modifier and Type | Method and Description |
|---|---|
List |
accounts()
Returns a list with the accounts that are stored on the device.
|
List |
accountsWithAccountType(ACAccountType accountType)
Returns a list that contains all accounts of the specified type.
|
ACAccountType |
accountTypeWithAccountTypeIdentifier(String typeIdentifier)
Returns the type of account of the specified id.
|
ACAccount |
accountWithIdentifier(String identifier)
Returns the account of the specified id.
|
void |
removeAccount(ACAccount account,
ACAccountStoreRemoveCompletionHandler completionHandler)
Removes the specified account from the account store.
|
void |
renewCredentialsForAccount(ACAccount account,
ACAccountStoreCredentialRenewalHandler completionHandler)
Renews the credentials of the specified account when they are no longer
valid.
|
void |
requestAccessToAccountsWithType(ACAccountType accountType,
ACAccountStoreRequestAccessCompletionHandler handler)
Deprecated.
|
void |
requestAccessToAccountsWithType(ACAccountType accountType,
Map options,
ACAccountStoreRequestAccessCompletionHandler completion)
Requests permission to the specified type of account for the given
options.
|
void |
saveAccount(ACAccount account,
ACAccountStoreSaveCompletionHandler completionHandler)
Saves the specified account to the related database.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKeypublic List accounts()
public ACAccount accountWithIdentifier(String identifier)
identifier - The id of the requested acccount.public ACAccountType accountTypeWithAccountTypeIdentifier(String typeIdentifier)
typeIdentifier - The id for which the type account is requested.public List accountsWithAccountType(ACAccountType accountType)
accountType - The type of the accounts.public void saveAccount(ACAccount account, ACAccountStoreSaveCompletionHandler completionHandler)
account - The account that is stored.completionHandler - The related handler that is called after the
account is stored.@Deprecated public void requestAccessToAccountsWithType(ACAccountType accountType, ACAccountStoreRequestAccessCompletionHandler handler)
accountType - The type of accounts for which access is requested.handler - The handler that is called after the operation completion.public void requestAccessToAccountsWithType(ACAccountType accountType, Map options, ACAccountStoreRequestAccessCompletionHandler completion)
accountType - The type of account for which permission is requested.options - The options of the account.completion - The handler that is called after the operation
completion.public void renewCredentialsForAccount(ACAccount account, ACAccountStoreCredentialRenewalHandler completionHandler)
account - The account whose credentials are renewed.completionHandler - The handler that is called after the operation
completion.public void removeAccount(ACAccount account, ACAccountStoreRemoveCompletionHandler completionHandler)
account - The account that is removed from the account store.completionHandler - The handler that is called after the operation
completion.Copyright © 2020. All rights reserved.