This interface is used with getUserAccessToken(TokenResultCallback).
getUserAccessToken(TokenResultCallback)
onSuccess()
Copyvoid onSuccess(Token token)Called when the Sentiance SDK has a working token (either previously cached or newly obtained).
void onSuccess(Token token)
Called when the Sentiance SDK has a working token (either previously cached or newly obtained).
token
A Token object containing token ID and expiry date.
Token
onFailure()
Copyvoid onFailure()Called when a token could not be obtained. This can happen if both of the following conditions are met:The token has expired,there is no network connection that can be used to get a new token from the Sentiance API.
void onFailure()
Called when a token could not be obtained. This can happen if both of the following conditions are met:
The token has expired,
there is no network connection that can be used to get a new token from the Sentiance API.
Last updated 2 years ago