public static interface LiAuthService.LiTokenResponseCallback
Modifier and Type | Method and Description |
---|---|
void |
onTokenRequestCompleted(LiTokenResponse response,
java.lang.Exception ex)
Invoked when the request completes successfully or fails.
|
void onTokenRequestCompleted(LiTokenResponse response, java.lang.Exception ex)
Exactly one of response
or ex
will be non-null. If
response
is null
, a failure occurred during the request. This can
happen if a bad URI was provided, no connection to the server could be established, or
the response JSON was incomplete or badly formatted.
response
- the retrieved token response, if successful; null
otherwise.ex
- a description of the failure, if one occurred: null
otherwise.LiAuthorizationException.TokenRequestErrors