For Developers / Instrument your app |
It is possible to listen to the Localytics services and to respond to certain events. This is done by implementing an interface and registering it with the Localytics library.
To listen to analytics events, first register for events.
Localytics.RegisterForAnalyticsEvents();
The following events will be fired.
Localytics.OnLocalyticsDidTagEvent; Localytics.OnLocalyticsSessionWillOpen; Localytics.OnLocalyticsSessionDidOpen; Localytics.OnLocalyticsSessionWillClose;
You can stop events from firing by unregistering for events.
Localytics.UnregisterForAnalyticsEvents();
To listen to messaging events, first register for events.
Localytics.RegisterForMessagingEvents();
The following events will be fired.
Localytics.LocalyticsDidDismissInAppMessage; Localytics.LocalyticsDidDisplayInAppMessage; Localytics.LocalyticsWillDismissInAppMessage; Localytics.LocalyticsWillDisplayInAppMessage;
You can stop events from firing by unregistering for events.
Localytics.UnregisterForMessagingEvents();