SessionCommands
public final class SessionCommands
A set of session commands.
Summary
Nested types |
|---|
public final class SessionCommands.BuilderA builder for |
Constants |
|
|---|---|
static final SessionCommands |
An empty set of session commands. |
Public fields |
|
|---|---|
final ImmutableSet<SessionCommand> |
All session commands. |
Public methods |
|
|---|---|
SessionCommands.Builder |
Returns a |
boolean |
contains(@SessionCommand.CommandCode int commandCode)Returns whether a command that matches given |
boolean |
contains(SessionCommand command)Returns whether a command that matches given |
boolean |
|
static SessionCommands |
@UnstableApiRestores a |
int |
hashCode() |
Bundle |
Constants
Public fields
Public methods
buildUpon
public SessionCommands.Builder buildUpon()
Returns a Builder initialized with the values of this instance.
contains
public boolean contains(@SessionCommand.CommandCode int commandCode)
Returns whether a command that matches given commandCode exists.
| Parameters | |
|---|---|
@SessionCommand.CommandCode int commandCode |
A |
| Returns | |
|---|---|
boolean |
Whether the command exists. |
contains
public boolean contains(SessionCommand command)
Returns whether a command that matches given command exists.
| Parameters | |
|---|---|
SessionCommand command |
A command to find. |
| Returns | |
|---|---|
boolean |
Whether the command exists. |
fromBundle
@UnstableApi
public static SessionCommands fromBundle(Bundle bundle)
Restores a SessionCommands from a Bundle.