SenderDisconnectedEventInfo.DisconnectReason
Stay organized with collections
Save and categorize content based on your preferences.
Sender disconnect reasons.
Constant Summary
int |
ERROR
|
A sender connection is closed because there was
a protocol error. |
int |
REQUESTED_BY_SENDER
|
Connection close was actively requested by the
sender application (usually triggered by the user). |
int |
UNKNOWN
|
It is unknown if the sender requested to
disconnect gracefully (most likely it didn't, but the close message could have been
lost). |
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstract Class<? extends Annotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstract String
|
toString()
|
Constants
public static final int
ERROR
A sender connection is closed because there was a protocol error.
Constant Value: 2
public static final int
REQUESTED_BY_SENDER
Connection close was actively requested by the sender application (usually triggered
by the user).
Constant Value: 1
public static final int
UNKNOWN
It is unknown if the sender requested to disconnect gracefully (most likely it
didn't, but the close message could have been lost). This normally happens when there
is a network timeout or if the sender application crashes or if the sender OS closes
the socket.
Constant Value: 0
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-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`SenderDisconnectedEventInfo.DisconnectReason` is an annotation interface that provides constants representing the reasons for a sender disconnection."],["There are three main disconnect reasons: `ERROR` (protocol error), `REQUESTED_BY_SENDER` (user or application initiated), and `UNKNOWN` (unclear reason, potentially network issues)."],["Each disconnect reason is represented by an integer constant within the annotation."],["This annotation is used within the Android Cast framework for TV applications."]]],[]]