Package 

Interface LoginResultCallback


  • 
    public interface LoginResultCallback
    
                        

    The public API interface to listen for Login result updates.

    • Method Summary

      Modifier and Type Method Description
      abstract void onStart() Called on the user beginning the request to login after going through OAuth flow.
      abstract void onSuccess(@NonNull() String accessToken) Called when login through Snapchat has succeeded.
      abstract void onFailure(@NonNull() LoginException exception) Called when login through Snapchat has failed.
      • Methods inherited from class java.lang.Object

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

      • onStart

         abstract void onStart()

        Called on the user beginning the request to login after going through OAuth flow.

      • onSuccess

         abstract void onSuccess(@NonNull() String accessToken)

        Called when login through Snapchat has succeeded.

        Parameters:
        accessToken - Access token for the current user.
      • onFailure

         abstract void onFailure(@NonNull() LoginException exception)

        Called when login through Snapchat has failed.

        Parameters:
        exception - The exception representing the failure reason.