Package 

Interface SessionTokenRequester


  • 
    public interface SessionTokenRequester
    
                        

    Interface that is passed on to onSessionTokenRequired. After the application fetches the new token, it should pass on the token to SDK through onSuccess. If any error occurred during this process, it must call onFail to let SDK know the status.

    • Method Summary

      Modifier and Type Method Description
      abstract void onSuccess(String newToken) Call this method after retrieving a new token.
      abstract void onFail() Call this method when failed to retrieve a new token.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onSuccess

         abstract void onSuccess(String newToken)

        Call this method after retrieving a new token.In case when app decides not to refresh the session for the user,they should call this with newToken as null.

      • onFail

         abstract void onFail()

        Call this method when failed to retrieve a new token.