ACAccountType Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/Accounts.framework
Availability
Available in OS X v10.8 and later.
Declared in
ACAccountType.h

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 OS X v10.8 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 OS X v10.8 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 OS X v10.8 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;
NSString * const ACAccountTypeIdentifierLinkedIn;
Constants
ACAccountTypeIdentifierFacebook

Identifier for the Facebook account type.

Available in OS X v10.8 and later.

Declared in ACAccountType.h.

ACAccountTypeIdentifierSinaWeibo

Identifier for the Sina Weibo account type.

Available in OS X v10.8 and later.

Declared in ACAccountType.h.

ACAccountTypeIdentifierTwitter

Identifier for the Twitter account type.

Available in OS X v10.8 and later.

Declared in ACAccountType.h.

ACAccountTypeIdentifierTencentWeibo

Identifier for the Tencent Weibo account type.

Available in OS X v10.9 and later.

Declared in ACAccountType.h.

ACAccountTypeIdentifierLinkedIn

Identifier for the LinkedIn account type.

Available in OS X v10.9 and later.

Declared in ACAccountType.h.