AI-generated Key Takeaways
- 
          SenderDisconnectedEvent is dispatched when a sender is disconnected. 
- 
          The constructor for SenderDisconnectedEvent takes senderId, userAgent, and reason as parameters. 
- 
          The event provides properties for the reason, senderId, type, and userAgent of the disconnected sender. 
cast.framework.system.  SenderDisconnectedEvent
            An event dispatched by cast.framework.CastReceiverContext when a sender is disconnected.
Constructor
SenderDisconnectedEvent
new SenderDisconnectedEvent(senderId, userAgent, reason)
| Parameter | |
|---|---|
| senderId | string The sender ID. | 
| userAgent | string The user agent. | 
| reason | cast.framework.system.DisconnectReason The reason the sender was disconnected. Value must not be null. | 
- Extends
- cast.framework.system.Event
Properties
reason
non-null cast.framework.system.DisconnectReason
The reason the sender was disconnected.
senderId
string
The ID of the disconnected sender.
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.