Package com.castlabs.sdk.nielsen
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
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Wrapper around Nielsen AppSdk API -
Method Summary
Modifier and TypeMethodDescriptionReturns an instance of the Nielsen App SDK
-
Method Details
-
getAppSdk
Returns an instance of the Nielsen App SDK- Returns:
- The App SDK or null
-