Method guide
YXLSdk Class
Authorization class. Instance methods:
Method | Description |
---|---|
| Activates the SDK. Class methods can only be used after activation. |
| Checks NSUserActivity for a token. |
| Checks NSURL for information about authorization. |
| Adds an observer. |
| Deletes an observer. |
| Starts the authorization process by opening one of the Yandex apps (according to the user's choice) or a browser. |
| Removes all the stored tokens. Used to request a new set of tokens. |
Method | Description |
---|---|
| Activates the SDK. Class methods can only be used after activation. |
| Checks NSUserActivity for a token. |
| Checks NSURL for information about authorization. |
| Adds an observer. |
| Deletes an observer. |
| Starts the authorization process by opening one of the Yandex apps (according to the user's choice) or a browser. |
| Removes all the stored tokens. Used to request a new set of tokens. |
Class properties:
Property | Description |
---|---|
| Returns a string with the SDK version. |
Property | Description |
---|---|
| Returns a string with the SDK version. |
YXLObserver Class
Authorization event class. Instance methods:
Method | Description |
---|---|
| Called upon successful authorization. result contains fields with tokens. |
| Called upon authorization with an error. The error parameter contains an error code. |
Method | Description |
---|---|
| Called upon successful authorization. result contains fields with tokens. |
| Called upon authorization with an error. The error parameter contains an error code. |
YXLLoginrResult Class
A class that the SDK returns after successful authorization. Instance properties:
Property | Description |
---|---|
| Token used in requests to Yandex services. |
| JSON Web Token. |
Property | Description |
---|---|
| Token used in requests to Yandex services. |
| JSON Web Token. |