AnalyticsApi

AnalyticsApi

interface AnalyticsApi

Provides the means to control the analytics collected by a Player.

Use the Player.analytics extension to access a Player's AnalyticsApi.

Types

NameSummary
Companionobject Companion
Use the Player.analytics extension to access a Player's AnalyticsApi.

Properties

NameSummary
impressionIdabstract val impressionId: String?
The impression id of the current Source if any is playing.
ssaiabstract val ssai: SsaiApi
Use the SsaiApi to track data related to server side ad insertion.
userIdabstract val userId: String
The userId that is sent with each analytics sample.

Functions

NameSummary
programChangeabstract fun programChange(sourceMetadata: SourceMetadata)
Signals a program change to the analytics collector without loading a new source on the player. This starts a new impression with the provided sourceMetadata.
sendCustomDataEventabstract fun sendCustomDataEvent(customData: CustomData)
Send an analytics sample with customData without changing the player's current SourceAnalyticsApi.customData.