Package com.brightcove.player.analytics
Interface IAnalyticsHandler
-
- All Superinterfaces:
IHandler
- All Known Implementing Classes:
DefaultAnalyticsHandler
public interface IAnalyticsHandler extends IHandler
Contract of the class that handle incoming analytics events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIAnalyticsHandler.ProcessListenerA listener that can receive callback notification from theDefaultAnalyticsHandlerafter processing an event.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonAnalyticsEvent(com.brightcove.player.analytics.AnalyticsEvent event, IAnalyticsErrorListener errorHandler)This method will be called by theAnalyticsClient, when an analytics event is received from the application.voidonNetworkEntitlementChanged(int type, boolean enabled)This method will be called when the entitlement for specific network has been changed.-
Methods inherited from interface com.brightcove.player.network.IHandler
onAttached, onRemoved
-
-
-
-
Method Detail
-
onAnalyticsEvent
void onAnalyticsEvent(@NonNull com.brightcove.player.analytics.AnalyticsEvent event, @Nullable IAnalyticsErrorListener errorHandler)This method will be called by theAnalyticsClient, when an analytics event is received from the application.- Parameters:
event- the analytics client.errorHandler- reference to analytics error listener, if any.
-
onNetworkEntitlementChanged
void onNetworkEntitlementChanged(int type, boolean enabled)This method will be called when the entitlement for specific network has been changed.- Parameters:
type- the network typeenabled- true if the network is entitled for analytics transmission, otherwise false.
-
-