GCKCredentialsData 類別
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
類別用於維護應用程式特定憑證資料,以識別使用者並可能進行驗證。
- 開始時間
- 4.4.8
繼承 NSObject。
- (instancetype) initWithCredentials: |
|
(NSString *_Nullable) |
credentials |
|
初始化並傳回具有指定憑證的新分配 GCKCredentialsData
物件。
系統會為 credentialsType
指派「ios」做為預設值,表示該值來自 iOS 傳送者。
- Parameters
-
credentials | A string to identify and possibly authenticate the user. May be nil . |
- (instancetype) initWithCredentials: |
|
(NSString *_Nullable) |
credentials |
credentialsType: |
|
(NSString *_Nullable) |
credentialsType |
|
|
| |
初始化並傳回具有指定憑證和憑證類型的新分配 GCKCredentialsData
物件。
- Parameters
-
credentials | A string to identify and possibly authenticate the user. May be nil . |
credentialsType | A string to identify the type of the credentials. May be nil . |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-12-02 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2023-12-02 (世界標準時間)。"],[[["`GCKCredentialsData` stores application-specific credentials to identify and potentially authenticate users."],["It provides methods to initialize with credentials and a credentials type (defaulting to \"ios\" if not specified)."],["The `credentials` and `credentialsType` properties can be accessed to retrieve the stored values."],["This class is available since Google Cast SDK v4.4.8."]]],["The `GCKCredentialsData` class manages application-specific user credentials. Key actions include initializing the class instance via `-init`, `-initWithCredentials:` or `-initWithCredentials:credentialsType:`. Initialization allows setting credentials, a string for user identification and possible authentication, and optionally, `credentialsType`, identifying the credential type. The default `credentialsType` is \"ios\". The class also has read only methods `credentials` and `credentialsType` to retrieve those stored data.\n"]]