SessionCommands


class SessionCommands


A set of session commands.

Summary

Nested types

A builder for SessionCommands.

Constants

const SessionCommands!

An empty set of session commands.

Public functions

SessionCommands.Builder!

Returns a Builder initialized with the values of this instance.

Boolean

Returns whether a command that matches given commandCode exists.

Boolean

Returns whether a command that matches given command exists.

Boolean
equals(obj: Any?)
java-static SessionCommands!

Restores a SessionCommands from a Bundle.

Int
Bundle!

Public properties

ImmutableSet<SessionCommand!>!

All session commands.

Constants

EMPTY

const val EMPTYSessionCommands!

An empty set of session commands.

Public functions

buildUpon

fun buildUpon(): SessionCommands.Builder!

Returns a Builder initialized with the values of this instance.

contains

fun contains(@SessionCommand.CommandCode commandCode: Int): Boolean

Returns whether a command that matches given commandCode exists.

Parameters
@SessionCommand.CommandCode commandCode: Int

A SessionCommand.CommandCode command code to find. Shouldn't be COMMAND_CODE_CUSTOM.

Returns
Boolean

Whether the command exists.

contains

fun contains(command: SessionCommand!): Boolean

Returns whether a command that matches given command exists.

Parameters
command: SessionCommand!

A command to find.

Returns
Boolean

Whether the command exists.

equals

fun equals(obj: Any?): Boolean

fromBundle

@UnstableApi
java-static fun fromBundle(bundle: Bundle!): SessionCommands!

Restores a SessionCommands from a Bundle.

hashCode

fun hashCode(): Int

toBundle

@UnstableApi
fun toBundle(): Bundle!

Public properties

commands

val commandsImmutableSet<SessionCommand!>!

All session commands.