Package io.objectbox.sync.listener
Interface SyncLoginListener
- All Known Subinterfaces:
SyncListener
- All Known Implementing Classes:
AbstractSyncListener
public interface SyncLoginListener
Listens to login events.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called on a successful login.void
onLoginFailed
(long syncLoginCode) Called on a login failure.
-
Method Details
-
onLoggedIn
void onLoggedIn()Called on a successful login.At this point the connection to the sync destination was established and entered an operational state, in which data can be sent both ways.
-
onLoginFailed
void onLoginFailed(long syncLoginCode) Called on a login failure. One ofSyncLoginCodes
, but neverSyncLoginCodes.OK
.
-