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 . |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):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"]]