iOS Developer Library

Developer

Accounts Framework Reference ACAccountType Class Reference

Options
Deployment Target:

On This Page
Language:

ACAccountType

Inheritance


Conforms To


Import Statement


Swift

import Accounts

Objective-C

@import Accounts;

Availability


Available in iOS 5.0 and later.

An ACAccountType object encapsulates information about all accounts of a particular type. You do not create account type objects directly. To obtain an account type, use the accountTypeWithAccountTypeIdentifier: method or the accountType property of an account object. Account Type Identifiers describes the identifiers for currently supported account types. You can also use the accountsWithAccountType: method to obtain all accounts of a particular type.

  • A Boolean value indicating whether the user granted the application access to accounts of this type. (read-only)

    Declaration

    Swift

    var accessGranted: Bool { get }

    Objective-C

    @property(readonly, nonatomic) BOOL accessGranted

    Discussion

    YEStrue if the application has access to accounts of this type; otherwise NOfalse.

    Import Statement

    Objective-C

    @import Accounts;

    Swift

    import Accounts

    Availability

    Available in iOS 5.0 and later.

  • A human-readable description of the account type. (read-only)

    Declaration

    Swift

    var accountTypeDescription: String! { get }

    Objective-C

    @property(readonly, nonatomic) NSString *accountTypeDescription

    Import Statement

    Objective-C

    @import Accounts;

    Swift

    import Accounts

    Availability

    Available in iOS 5.0 and later.

  • The unique identifier for the account type. (read-only)

    Declaration

    Swift

    var identifier: String! { get }

    Objective-C

    @property(readonly, nonatomic) NSString *identifier

    Discussion

    Possible values are described in Account Type Identifiers.

    Import Statement

    Objective-C

    @import Accounts;

    Swift

    import Accounts

    Availability

    Available in iOS 5.0 and later.

  • Identifiers for supported account types.

    Declaration

    Swift

    let ACAccountTypeIdentifierFacebook: String let ACAccountTypeIdentifierSinaWeibo: String let ACAccountTypeIdentifierTwitter: String let ACAccountTypeIdentifierTencentWeibo: String

    Objective-C

    NSString * const ACAccountTypeIdentifierFacebook; NSString * const ACAccountTypeIdentifierSinaWeibo; NSString * const ACAccountTypeIdentifierTwitter; NSString * const ACAccountTypeIdentifierTencentWeibo;

    Constants

    • ACAccountTypeIdentifierFacebook

      ACAccountTypeIdentifierFacebook

      Identifier for the Facebook account type.

      Available in iOS 6.0 and later.

    • ACAccountTypeIdentifierSinaWeibo

      ACAccountTypeIdentifierSinaWeibo

      Identifier for the Sina Weibo account type.

      Available in iOS 6.0 and later.

    • ACAccountTypeIdentifierTwitter

      ACAccountTypeIdentifierTwitter

      Identifier for the Twitter account type.

      Available in iOS 5.0 and later.

    • ACAccountTypeIdentifierTencentWeibo

      ACAccountTypeIdentifierTencentWeibo

      Identifier for the Tencent Weibo account type.

      Available in iOS 7.0 and later.