Skip to navigation

RefreshTokenCallback (interface)

Android SDK v3 API reference
View as Markdown

com.voximplant.android.sdk.core

Interface that the application implements to receive the result of a token refresh.

Methods

onFailure

fun onFailure(error: LoginError): Unit

Reports token refresh failure.

Parameters

ParameterTypeRequirementDescription
errorLoginErrorFailure reason

Returns: Unit

onSuccess

fun onSuccess(authParams: AuthParams): Unit

Reports successful token refresh.

Parameters

ParameterTypeRequirementDescription
authParamsAuthParamsthat can be used to login via access token

Returns: Unit