Interface NielsenComponent


  • public interface NielsenComponent
    This is a public marker interface that can be used to get access the Nielsen SDK as a player view component. The Nielsen plugin registers itself as a component on the PlayerView and you can use PlayerView.getComponent(Class) with this class to access the registered Instance. For example:
     
     NielsenComponent nielsenComponent = playerView.getComponent(NielsenComponent.class);
     if (nielsenComponent != null && nielsenComponent.getAppSdk() != null) {
       nielsenComponent.getAppSdk().appInForeground(this);
     }
     
     
    Since:
    4.2.0
    • Method Detail

      • getAppSdk

        @Nullable
        NielsenComponent.AppSdk getAppSdk()
        Returns an instance of the Nielsen App SDK
        Returns:
        The App SDK or null