Skip to main content

Class: SenderDisconnectedEvent

  • 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

class static

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年09月18日 UTC.

AltStyle によって変換されたページ (->オリジナル) /