Class LastConnectionTimeInterceptor
-
- All Implemented Interfaces:
-
okhttp3.Interceptor
@Deprecated() public class LastConnectionTimeInterceptor implements InterceptorThis Interceptor is responsible for informing the application that a successful connetion with the server has occurred so that the last connection time can be updated.
Deprecated since SDK version 7.1.0, please see 'LockAndWipeService' for more details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceLastConnectionTimeInterceptor.LastConnectionTimeCallbackCallback interface used to handle an update last connection time event.
-
Constructor Summary
Constructors Constructor Description LastConnectionTimeInterceptor(LastConnectionTimeInterceptor.LastConnectionTimeCallback lastConnectionTimeCallback)Creates a last connection time interceptor object which will fire the specified callback whenever a successful connection with the server occurs.
-
Method Summary
Modifier and Type Method Description Responseintercept(@NonNull() Interceptor.Chain chain)-
-
Constructor Detail
-
LastConnectionTimeInterceptor
LastConnectionTimeInterceptor(LastConnectionTimeInterceptor.LastConnectionTimeCallback lastConnectionTimeCallback)
Creates a last connection time interceptor object which will fire the specified callback whenever a successful connection with the server occurs.
- Parameters:
lastConnectionTimeCallback- A LastConnectionTimeCallback implementation that will be invoked whenever a successful connection with the server occurs so that the persisted last connection time can be updated.
-
-
Method Detail
-
intercept
@NonNull() Response intercept(@NonNull() Interceptor.Chain chain)
-
-
-
-