Method guide
YandexAuthsdk Class
Authorization class. Instance methods:
Method | Description |
---|---|
| Creates an
|
| Handles the result of the authorization. |
| Gets a JSON Web Token. |
Method | Description |
---|---|
| Creates an
|
| Handles the result of the authorization. |
| Gets a JSON Web Token. |
YandexAuthOptions Class
SDK configuration class. Instance methods:
Method | Description |
---|---|
| Creates an SDK configuration. The client app ID is taken from build.gradle.
|
| Returns the ID of the client app. |
| Returns a label indicating that SDK message logging is permitted. |
Method | Description |
---|---|
| Creates an SDK configuration. The client app ID is taken from build.gradle.
|
| Returns the ID of the client app. |
| Returns a label indicating that SDK message logging is permitted. |
YandexAuthLoginOptions Class
An authorization parameters class. You don't need to use class instances directly: instead, create them using YandexAuthLoginOptions.Builder.build()
and then transfer them to createLoginIntent without any changes.
YandexAuthLoginOptions.Builder Class
A class for creating sets of authorization parameters. After creating an instance of this class, set the authorization parameters and create an YandexAuthLoginOptions
instance.
Instance methods:
Method | Description |
---|---|
| Sets the scopes to grant access to. |
| Sets the ID of the user who is logging in (optional).
|
| Sets a pre-filled login for authorization if the device does not have an account with the user ID sent to UID (optional).
|
| Indicates that the access confirmation screen should always be displayed, regardless of whether the user has previously granted access (optional).
|
| Creates an instance of the YandexAuthLoginOptions class. Before calling build() , set the necessary authorization parameters using the methods above. |
Method | Description |
---|---|
| Sets the scopes to grant access to. |
| Sets the ID of the user who is logging in (optional).
|
| Sets a pre-filled login for authorization if the device does not have an account with the user ID sent to UID (optional).
|
| Indicates that the access confirmation screen should always be displayed, regardless of whether the user has previously granted access (optional).
|
| Creates an instance of the YandexAuthLoginOptions class. Before calling build() , set the necessary authorization parameters using the methods above. |
YandexAuthToken Class
A class that the SDK returns after successful authorization. Instance methods:
Method | Description |
---|---|
| Creates a token containing the token value and lifetime. |
| Returns the value of the token. |
| Returns the lifetime of the token. |
Method | Description |
---|---|
| Creates a token containing the token value and lifetime. |
| Returns the value of the token. |
| Returns the lifetime of the token. |