Platforms to show: All Mac Windows Linux Cross-Platform
ACAccountStoreMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Social | MBS Mac64bit Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
To create and retrieve accounts from the Accounts database, you must create an ACAccountStore object. Each ACAccount object belongs to a single ACAccountStore object.
Available on Mac OS X 10.8 and later in 64-bit applications.
- 5 events
- event Changed
- event removeAccountCompleted(account as ACAccountMBS, success as boolean, error as NSErrorMBS, tag as Variant)
- event renewCredentialsForAccountCompleted(account as ACAccountMBS, renewResult as Integer, error as NSErrorMBS, tag as Variant)
- event requestAccessCompleted(granted as boolean, error as NSErrorMBS, accountType as ACAccountTypeMBS, tag as Variant)
- event saveAccountCompleted(success as boolean, error as NSErrorMBS, account as ACAccountMBS, tag as Variant)
- property Handle as Integer
- 10 methods
- method accounts as ACAccountMBS()
- method accountsWithAccountType(type as ACAccountTypeMBS) as ACAccountMBS()
- method accountTypeWithAccountTypeIdentifier(identifier as string) as ACAccountTypeMBS
- method accountWithIdentifier(identifier as string) as ACAccountMBS
- method Constructor
- method Destructor
- method removeAccount(account as ACAccountMBS, tag as Variant = nil)
- method renewCredentialsForAccount(account as ACAccountMBS, tag as Variant = nil)
- method requestAccessToAccountsWithType(accountType as ACAccountTypeMBS, dic as dictionary, tag as Variant = nil)
- method saveAccount(account as ACAccountMBS, tag as Variant = nil)
- 3 shared methods
- shared method ACAccountStoreDidChangeNotification as string
- shared method ACErrorDomain as string
- shared method available as boolean
- 19 constants
Renew Status Codes
Constant | Value | Description |
---|---|---|
ACAccountCredentialRenewResultFailed | 2 |
A non-user-initiated cancel of the prompt. Try again. |
ACAccountCredentialRenewResultRejected | 1 |
Renewal failed because the user revoked your access to their account. |
ACAccountCredentialRenewResultRenewed | 0 |
The account’s credentials have been renewed and are now associated with the account. |
Errors
Constant | Value | Description |
---|---|---|
ACErrorAccessDeniedByProtectionPolicy | 10 |
Due to the current protection policy in effect, we couldn't fetch a credential |
ACErrorAccessInfoInvalid | 8 |
The client's access info dictionary has incorrect or missing values. |
ACErrorAccountAlreadyExists | 5 |
Account wasn't added because it already exists. |
ACErrorAccountAuthenticationFailed | 3 |
Account wasn't saved because authentication of the supplied credential failed. |
ACErrorAccountMissingRequiredProperty | 2 |
Account wasn't saved because it is missing a required property. |
ACErrorAccountNotFound | 6 |
Account wasn't deleted because it could not be found. |
ACErrorAccountTypeInvalid | 4 |
Account wasn't saved because the account type is invalid. |
ACErrorClientPermissionDenied | 9 |
Your client does not have access to the requested data. |
ACErrorCredentialNotFound | 11 |
Yo, I tried to find your credential, but it must have run off! |
ACErrorFetchCredentialFailed | 12 |
Something bad happened on the way to the keychain |
ACErrorInvalidClientBundleID | 16 |
The client making the request does not have a valid bundle ID. |
ACErrorPermissionDenied | 7 |
The operation didn't complete because the user denied permission. |
ACErrorRemoveCredentialFailed | 14 |
Unable to remove credential |
ACErrorStoreCredentialFailed | 13 |
Unable to store credential |
ACErrorUnknown | 1 |
Unknown error |
ACErrorUpdatingNonexistentAccount | 15 |
Account save failed because the account being updated has been removed. |
This class has no sub classes.
Some properties using for this class:
- ACAccountMBS.Parent as ACAccountStoreMBS
Some examples using this class:
The items on this page are in the following plugins: MBS Mac64bit Plugin.
ACAccountMBS - ACAccountTypeMBS