Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
Martina Kellnerová edited this page Feb 26, 2018 · 3 revisions

Events module provides central place for SDK's internal events handling.

See events module api-doc.

There are 4 events you may subscribe to:

  • sessionUpdateHandler: callback is triggered when session is created (signed in), destroyed (signed out) and refreshed (new access token);
  • tripIdUpdateHandler: callback is triggered when trip is synchronized to server and its temporary ID is replaced by the server's one;
  • tripUpdateConflictHandler: callback is triggered when there is a conflict during trip synchronization with server and server is unable to create a merge; callback has to return a resolution; if there is no callback defined, server's version is preferred;
  • synchronizationCompletionHandler: callback is called when synchronization is finished, callback will receive a synchronization result;
Clone this wiki locally