PlayerAnalyticsApi
@objc(BPAPlayerAnalyticsApi)
public protocol PlayerAnalyticsApi
Provides an API to interact with the Analytics Collector of a Player
-
The
impressionId
of the current playback sessionFor more information, see
Collector.impressionId
Declaration
Swift
var impressionId: String? { get }
-
The userId that is sent with each analytics sample.
Used for session tracking in the Analytics Dashboard The value for this field is either a random uuid or a constant uuid See
AnalyticsConfig
.randomizeUserId
for more informationFor more information, see
Collector.userId
Declaration
Swift
var userId: String { get }
-
The
AnalyticsSsaiApi
for interactions regarding SSAI tracking.For more information, see
Collector.SsaiApi
Declaration
Swift
var ssai: AnalyticsSsaiApi { get }
-
Sends
CustomData
to the analytics backendThe provided
CustomData
will be merged with previously setCustomData
For more information, see
Collector.sendCustomDataEvent(customData:)
Declaration
Swift
func sendCustomDataEvent(customData: CustomData)
Parameters
customData
The
CustomData
object which will be used for the Event