Class: RequestEvent

  • RequestEvent encapsulates data for requests sent to the receiver, including the request type, data, and sender ID.

  • It provides access to the request data and sender ID through its requestData and senderId properties.

  • Developers can use RequestEvent to handle various requests within their Cast receiver application.

Constructor

RequestEvent

new RequestEvent(type, requestData, senderId)

Parameter

type

cast.framework.events.EventType

Value must not be null.

requestData

cast.framework.messages.RequestData

Value must not be null.

senderId

string

Properties

requestData

constant

non-null cast.framework.messages.RequestData

The data that was sent with the request.

senderId

constant

string

The sender id the request came from.