Implementing delegates for iOS

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.

Analytics delegate

To listen to analytics events, implement the AnalyticsDelegate interface with the following methods.

+ (void)addAnalyticsDelegate:(id<LLAnalyticsDelegate>)delegate;
+ (void)removeAnalyticsDelegate:(id<LLAnalyticsDelegate>)delegate;

Messaging delegate

To listen to messaging events, implement the MessagingDelegate interface with the following methods.

+ (void)addMessagingDelegate:(id<LLMessagingDelegate>)delegate;
+ (void)removeMessagingDelegate:(id<LLMessagingDelegate>)delegate;