AI-generated Key Takeaways
-
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
andsenderId
properties. -
Developers can use
RequestEvent
to handle various requests within their Cast receiver application.
cast.framework.events. RequestEvent
Event data for all events that represent requests made to the receiver.
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
non-null cast.framework.messages.RequestData
The data that was sent with the request.
senderId
string
The sender id the request came from.