类 MCDConnectedDevicesAccount
@interface MCDConnectedDevicesAccount : NSObject
此类表示应用已知的单个用户帐户。
属性
anonymousAccount
+ (nullable instancetype)anonymousAccount;
匿名帐户的单一实例。
accountId
@property(nonatomic, readonly, copy, nonnull) NSString* accountId;
此用户帐户的唯一标识符。
type
@property(nonatomic, readonly) MCDConnectedDevicesAccountType type;
描述帐户类型的 MCDConnectedDevicesAccountType 值。
构造函数
accountWithAccountId
+ (nullable instancetype)accountWithAccountId:(nullable NSString*)accountId type:(MCDConnectedDevicesAccountType)type;
具有此用户帐户的唯一标识符的此类的新实例。
parameters
accountId
此用户帐户的唯一标识符字符串。
type
帐户的 MCDConnectedDevicesAccountType (该帐户来自哪个 ID 提供程序) 。
返回
返回具有帐户标识符的 MCDConnectedDevicesAccount 对象。
initWithAccountId
- (nullable instancetype)initWithAccountId:(nullable NSString*)accountId type:(MCDConnectedDevicesAccountType)type;
具有此用户帐户的唯一标识符的此类的新实例。
parameters
type
帐户的 MCDConnectedDevicesAccountType (该帐户来自哪个 ID 提供程序) 。
返回
返回使用帐户标识符初始化的 MCDConnectedDevicesAccount 对象。