Klasa GCKCredentialsData
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Klasa służąca do przechowywania danych logowania specyficznych dla aplikacji w celu identyfikacji i możliwego uwierzytelnienia użytkownika.
- Od
- 4.4.8
Dziedziczy NSObject.
- (instancetype) initWithCredentials: |
|
(NSString *_Nullable) |
credentials |
|
Inicjuje i zwraca nowo przydzielony obiekt GCKCredentialsData
z określonymi danymi logowania.
Do urządzenia credentialsType
jest przypisana wartość „ios”, co oznacza, że pochodzi od nadawcy w iOS.
- Parameters
-
credentials | A string to identify and possibly authenticate the user. May be nil . |
- (instancetype) initWithCredentials: |
|
(NSString *_Nullable) |
credentials |
credentialsType: |
|
(NSString *_Nullable) |
credentialsType |
|
|
| |
Inicjuje i zwraca nowo przydzielony obiekt GCKCredentialsData
z określonymi danymi logowania i typem danych logowania.
- 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 . |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2023-12-02 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2023-12-02 UTC."],[[["`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"]]