Constructors

Link copied to clipboard
constructor(emitter: EventEmitter, context: Context)

Types

Link copied to clipboard
Link copied to clipboard
open class Fields
Link copied to clipboard

Properties

Link copied to clipboard
open var account: String
The global account override.
Link copied to clipboard
The value that will be passed as the 'destination' parameter for all analytics events.
Link copied to clipboard
val TAG: String
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun addListener(eventType: String, listener: EventListener)
Convenience method to add an EventListener for the given type using the EventEmitter.on() method.
Link copied to clipboard
open fun addOnceListener(eventType: String, listener: EventListener)
Convenience method to add an EventListener for the given type using the EventEmitter.once() method.
Link copied to clipboard
open fun copy(analytics: Analytics, emitter: EventEmitter, context: Context): Analytics
Creates a new instance with the properties from the provided Analytics.
Link copied to clipboard
Provides a reference to the EventEmitter with which this component was initialized
Link copied to clipboard
open fun getSessionKey(): String
Gets the globally unique session key for this application session.
Link copied to clipboard
open fun removeListener(eventType: String)
Removes the specified listener from the EventEmitter.
Link copied to clipboard
open fun removeListeners()
Removes all set listeners from the EventEmitter.
Link copied to clipboard
open fun setApplication(application: String)
Set an ID to the application
Link copied to clipboard
open fun setBcovAuthToken(brightcoveAuthorizationToken: String)
Set the authorization token.
Link copied to clipboard
open fun setDeliveryType(deliveryType: Analytics.DeliveryType)
Set the DeliveryType for the currently playing item.
Link copied to clipboard
open fun setDestination(destination: String)
The destination must be a valid URI.
Link copied to clipboard
open fun setIsPlaybackForegrounded(foregrounded: Boolean)
Set if the playback is attached to an on-going notification in a foreground service.
Link copied to clipboard
open fun setMediaPlayback(playback: MediaPlayback<out Any>): Analytics
Link copied to clipboard
open fun setMediaType(mediaType: Analytics.MediaType)
Set the MediaType for the currently playing item.
Link copied to clipboard
open fun setPlayerID(playerID: String)
Set an ID to the player
Link copied to clipboard
open fun setPlayerName(playerName: String)
Set a name to the player
Link copied to clipboard
open fun setSource(source: String)
The source must be a valid URI.
Link copied to clipboard
open fun setVideo(video: Video)