Class BitwardsService.LoginCallback

java.lang.Object
fi.bitwards.service.BitwardsService.LoginCallback
All Implemented Interfaces:
BitwardsService.ResultCallback
Enclosing class:
BitwardsService

public abstract static class BitwardsService.LoginCallback extends Object implements BitwardsService.ResultCallback
LoginCallback can be used instead of ResultCallback when using BitwardsService.login(BitwardsCredential, ResultCallback) method. It adds the onLoginEvent() method which is called when login to the backend has been successful, and when a long operation is started with the server, but other backend communication is still on going.
  • Field Details

    • USER_CREDENTIALS_CORRECT

      public static final int USER_CREDENTIALS_CORRECT
      This event is triggered when end user has been logged in successfully (i.e., login credentials where correct), but other backend communication related to the login process is still happening.
      See Also:
    • FETCHING_UNIVERSAL_ID_RESOURCES

      public static final int FETCHING_UNIVERSAL_ID_RESOURCES
      This event is triggered when the SDK is starting to fetch the universal id resources. This is potentially a lengthy process and it may be a good place for the application to use the time to show end user something before the BitwardsService.ResultCallback.onSuccess() method is called.
      See Also:
  • Constructor Details

    • LoginCallback

      public LoginCallback()
  • Method Details

    • onLoginEvent

      public void onLoginEvent(int eventId)
      This method is called when a login event has happened.
      Parameters:
      eventId - the event id