PlayerAnalyticsApi
@objc(BPAPlayerAnalyticsApi)
public protocol PlayerAnalyticsApi
Provides an API to interact with the Analytics Collector of a Player
-
The
impressionIdof the current playback sessionFor more information, see
Collector.impressionIdDeclaration
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.randomizeUserIdfor more informationFor more information, see
Collector.userIdDeclaration
Swift
var userId: String { get } -
Sends
CustomDatato the analytics backendThe provided
CustomDatawill be merged with previously setCustomDataFor more information, see
Collector.sendCustomDataEvent(customData:)Declaration
Swift
func sendCustomDataEvent(customData: CustomData)Parameters
customDataThe
CustomDataobject which will be used for the Event
PlayerAnalyticsApi Protocol Reference