کلاس: SenderDisconnectedEvent
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی."],[[["`SenderDisconnectedEvent` is dispatched when a sender (like a phone or laptop) disconnects from the Cast receiver."],["It provides information about the disconnection, including the sender's ID, user agent, and the reason for disconnection."],["This event extends the base `Event` class and includes properties like `reason`, `senderId`, `type`, and `userAgent`."],["Developers can use this event to handle scenarios like pausing content or cleaning up resources when a sender disconnects."]]],["The `SenderDisconnectedEvent` class, dispatched by `CastReceiverContext`, signals when a sender disconnects. This event provides details about the disconnection, including the `senderId` (ID of the disconnected sender), `userAgent` (sender's user agent), and `reason` (the cause of disconnection, which cannot be null). The `type` property indicates the event type and is inherited. It extends the `Event` class. The event is created by invoking a new instance of `SenderDisconnectedEvent` and passing the parameters.\n"]]