ACAccountType Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/Accounts.framework
Availability
Available in iOS 5.0 and later.
Declared in
ACAccountType.h
Related sample code

Overview

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.

Tasks

Accessing Properties

Properties

accessGranted

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

@property(nonatomic, readonly) BOOL accessGranted
Discussion

YES if the application has access to accounts of this type; otherwise NO.

Availability
  • Available in iOS 5.0 and later.
Declared In
ACAccountType.h

accountTypeDescription

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

@property(nonatomic, readonly) NSString *accountTypeDescription
Availability
  • Available in iOS 5.0 and later.
Declared In
ACAccountType.h

identifier

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

@property(nonatomic, readonly) NSString *identifier
Discussion

Possible values are described in “Account Type Identifiers.”

Availability
  • Available in iOS 5.0 and later.
Declared In
ACAccountType.h

Constants

Account Type Identifiers

Identifiers for supported account types.

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

Identifier for the Facebook account type.

Available in iOS 6.0 and later.

Declared in ACAccountType.h.

ACAccountTypeIdentifierSinaWeibo

Identifier for the Sina Weibo account type.

Available in iOS 6.0 and later.

Declared in ACAccountType.h.

ACAccountTypeIdentifierTwitter

Identifier for the Twitter account type.

Available in iOS 5.0 and later.

Declared in ACAccountType.h.

ACAccountTypeIdentifierTencentWeibo

Identifier for the Tencent Weibo account type.

Available in iOS 7.0 and later.

Declared in ACAccountType.h.