Package 

Interface IAnalyticsHandler

  • All Implemented Interfaces:
    com.brightcove.player.network.IHandler

    
    public interface IAnalyticsHandler
     implements IHandler
                        

    Contract of the class that handle incoming analytics events.

    • Method Summary

      Modifier and Type Method Description
      abstract void onAnalyticsEvent(@NonNull() AnalyticsEvent event, @Nullable() IAnalyticsErrorListener errorHandler) This method will be called by the AnalyticsClient, when an analytics event is receivedfrom the application.
      abstract void onNetworkEntitlementChanged(int type, boolean enabled) This method will be called when the entitlement for specific network has been changed.
      • Methods inherited from class com.brightcove.player.network.IHandler

        onAttached, onRemoved
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onAnalyticsEvent

         abstract void onAnalyticsEvent(@NonNull() AnalyticsEvent event, @Nullable() IAnalyticsErrorListener errorHandler)

        This method will be called by the AnalyticsClient, when an analytics event is receivedfrom the application.

        Parameters:
        event - the analytics client.
        errorHandler - reference to analytics error listener, if any.
      • onNetworkEntitlementChanged

         abstract void onNetworkEntitlementChanged(int type, boolean enabled)

        This method will be called when the entitlement for specific network has been changed.

        Parameters:
        type - the network type
        enabled - true if the network is entitled for analytics transmission, otherwise false.