类 MCDConnectedDevicesAccount
@interface MCDConnectedDevicesAccount : NSObject
此类表示应用已知的单个用户帐户。
属性
anonymousAccount
+ (nullable instancetype)anonymousAccount;
匿名帐户的单一实例。
accountId
@property(nonatomic, readonly, copy, nonnull) NSString* accountId;
此用户帐户的唯一标识符。
类型
@property(nonatomic, readonly) MCDConnectedDevicesAccountType type;
描述帐户类型的 MCDConnectedDevicesAccountType 值。
构造函数
accountWithAccountId
+ (nullable instancetype)accountWithAccountId:(nullable NSString*)accountId type:(MCDConnectedDevicesAccountType)type;
此类的新实例,具有此用户帐户的唯一标识符。
参数
accountId
此用户帐户的唯一标识符字符串。
type
帐户 (的 MCDConnectedDevicesAccountType 取决于帐户来自) 的 ID 提供程序。
返回
返回具有帐户标识符的 MCDConnectedDevicesAccount 对象。
initWithAccountId
- (nullable instancetype)initWithAccountId:(nullable NSString*)accountId type:(MCDConnectedDevicesAccountType)type;
此类的新实例,具有此用户帐户的唯一标识符。
参数
type
帐户 (的 MCDConnectedDevicesAccountType 取决于帐户来自) 的 ID 提供程序。
返回
返回使用帐户标识符初始化的 MCDConnectedDevicesAccount 对象。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈