AI-generated Key Takeaways
-
SenderConnectedEvent
is dispatched when a sender connects to the Cast receiver. -
It provides the sender's ID and user agent information.
-
This event extends the base
cast.framework.system.Event
class. -
Developers can access the sender ID and user agent through the
senderId
anduserAgent
properties, respectively.
cast.framework.system. SenderConnectedEvent
An event dispatched by cast.framework.CastReceiverContext when a sender is connected.
Constructor
SenderConnectedEvent
new SenderConnectedEvent(senderId, userAgent)
Parameter |
|
---|---|
senderId |
string The sender ID. |
userAgent |
string The user agent. |
- Extends
- cast.framework.system.Event
Properties
senderId
string
The ID of the sender connected.
type
non-null cast.framework.system.EventType
The event type.
- Inherited from
- cast.framework.system.Event#type
userAgent
string
The user agent of the sender.