편집

다음을 통해 공유


Accounts Namespace

The Accounts namespace provides classes for storing social-network account credentials and UIs for authentication.

Classes

ACAccount

Represents a user account stored in the Accounts database.

ACAccountCredential

Encapsulates information needed to authenticate a user.

ACAccountStore

Encapsulates the Accounts database, providing access to ACAccount objects.

ACAccountStore.Notifications

Notification posted by the ACAccountStore class.

ACAccountType

A class that contains information about ACAccounts of a particular type.

AccountStoreOptions

Options available when requesting Facebook access.

ACErrorCodeExtensions

Extension methods for the Accounts.ACErrorCode enumeration.

ACFacebookAudienceValue

An enumeration whose values specify the visibility of a post to Facebook.

ACFacebookKey

A class that encapsulates keys necessary for Facebook requests. Used with M:Accounts.ACAccountStore.RequestAccess (Accounts.ACAccountType,Accounts.AccountStoreOptions,Accounts.ACRequestCompletionHandler).

ACLinkedInKey
ACTencentWeiboKey

Key to use when accessing Tencent Weibo accounts. Used with M:Accounts.ACAccountStore.RequestAccess (Accounts.ACAccountType,Accounts.AccountStoreOptions,Accounts.ACRequestCompletionHandler).

Enums

ACAccountCredentialRenewResult

An enumeration whose values indicate the result of a credential renewal request (see RenewCredentials(ACAccount, Action<ACAccountCredentialRenewResult,NSError>)).

ACErrorCode

An enumeration whose values indicate various errors relating to accessing accounts.

ACFacebookAudience

Specifies target audience for Facebook posts.

Delegates

ACAccountStoreRemoveCompletionHandler

A handler to be run when an attempt is made to remove an account from the store.

ACAccountStoreSaveCompletionHandler

A delegate that specifies the completion handler in calls to the SaveAccount(ACAccount, ACAccountStoreSaveCompletionHandler) method.

ACRequestCompletionHandler

A delegate that specifies the handler executed at the completion of calls to RequestAccessAsync(ACAccountType, NSDictionary)s.

Remarks

A global system for storing account information and UI to authenticate to services.

As of iOS 7, the supported services are:

ServiceACAccountType
Facebook Facebook
Sina Weibo SinaWeibo
Tencent Weibo TencentWeibo
Twitter Twitter