Class LastConnectionTimeInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    @Deprecated() 
    public class LastConnectionTimeInterceptor
     implements Interceptor
                        

    This 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.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Response intercept(@NonNull() Interceptor.Chain chain)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)