TimelineEvent

@JsonClass(generateAdapter = true)
data class TimelineEvent(@Json(name = "eventName") val eventName: String, @Json(name = "action") val action: String, val metadata: ProgramInfo? = null, val payload: Map<String, Any>? = null)

TimelineEvent represents a stream timeline event that occurs during playback

Constructors

Link copied to clipboard
constructor(@Json(name = "eventName") eventName: String, @Json(name = "action") action: String, metadata: ProgramInfo? = null, payload: Map<String, Any>? = null)

Creates TimelineEvent instance

Properties

Link copied to clipboard

The action associated with the event

Link copied to clipboard

The name of the timeline event

Link copied to clipboard
val metadata: ProgramInfo? = null

Optional ProgramInfo metadata containing program details

Link copied to clipboard
val payload: Map<String, Any>? = null

Optional map containing additional event payload data