public enum TalkbackState extends Enum<TalkbackState>
Enum Constant and Description |
---|
ACCEPTED
Talkback stream accepted.
|
IDLE
This is the default state.
|
NEEDS_ACCEPT
This state means that there is a pending talkback request you must approve or reject.
|
PLAYING
The
Broadcaster is receiving audio, and has signaled to the server that
playback has started, so the "caller" knows that there is a live talkback stream
to this Broadcaster . |
READY
|
Modifier and Type | Method and Description |
---|---|
static TalkbackState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TalkbackState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TalkbackState IDLE
public static final TalkbackState NEEDS_ACCEPT
We recommend that you show a dialog asking the end user to plug in headphones, disable any silent mode and press accept or reject.
You must invoke acceptTalkback(id)
to start receiving the stream, or stopTalkback()
to reject the request and return to IDLE
.
public static final TalkbackState ACCEPTED
public static final TalkbackState READY
ACCEPTED
and PLAYING
. The Broadcaster
is now receiving data from the server and it will be playing soon.public static final TalkbackState PLAYING
Broadcaster
is receiving audio, and has signaled to the server that
playback has started, so the "caller" knows that there is a live talkback stream
to this Broadcaster
.
We recommend that you show some small UI that indicates to the end user that
there is an ongoing talkback stream. You can also let the end user stop the
talkback stream by invoking stopTalkback()
.
public static TalkbackState[] values()
for (TalkbackState c : TalkbackState.values()) System.out.println(c);
public static TalkbackState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null