GCKCredentialsData 类参考
  概览
一个类,用于维护特定于应用的凭据数据,以识别用户身份并可能对用户进行身份验证。
- 开始时间
- 4.4.8
此类继承 NSObject。
| 实例方法摘要 | |
| (instancetype) | - init | 
| (instancetype) | - initWithCredentials: | 
| 使用指定凭据初始化并返回新分配的 GCKCredentialsData对象。更多... | |
| (instancetype) | - initWithCredentials:credentialsType: | 
| 使用指定的凭据和凭据类型初始化并返回新分配的 GCKCredentialsData对象。更多... | |
| (NSString *_Nullable) | - credentials | 
| (NSString *_Nullable) | - credentialsType | 
方法详细信息
| - (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.