類 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 物件。
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應