Error

data class Error(code: PlayerErrorCode, message: String, data: Any?) : PlayerEvent, ErrorEvent

Emitted when a player error occurred.

Constructors

Error
Link copied to clipboard
fun Error(code: PlayerErrorCode, message: String, data: Any? = null)

Properties

code
Link copied to clipboard
open override val code: PlayerErrorCode
The error code used to identify the player error.
data
Link copied to clipboard
open override val data: Any? = null
Potential additional data.
message
Link copied to clipboard
open override val message: String
The error message to explain the reason for the player error.

Inherited properties

timestamp
Link copied to clipboard
var timestamp: Long
The time at which the event was emitted.