Package fi.bitwards.service
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis event is triggered when the SDK is starting to fetch the universal id resources.static final intThis 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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonLoginEvent(int eventId) This method is called when a login event has happened.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fi.bitwards.service.BitwardsService.ResultCallback
onError, onSuccess
-
Field Details
-
USER_CREDENTIALS_CORRECT
public static final int USER_CREDENTIALS_CORRECTThis 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_RESOURCESThis 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 theBitwardsService.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
-