共用方式為


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 取決於帳戶來自) 的識別碼提供者。

傳回

會傳回具有帳戶識別碼的 MCDConnectedDevicesAccount 物件。

initWithAccountId

- (nullable instancetype)initWithAccountId:(nullable NSString*)accountId type:(MCDConnectedDevicesAccountType)type;

這個類別的新實例,具有這個使用者帳戶的唯一識別碼。

參數

  • type

帳戶 (的 MCDConnectedDevicesAccountType 取決於帳戶來自) 的識別碼提供者。

傳回

會傳回使用帳戶識別碼初始化的 MCDConnectedDevicesAccount 物件。