SessionCommands


class SessionCommands : Bundleable


A set of session commands.

Summary

Nested types

A builder for SessionCommands.

Constants

const Bundleable.Creator<SessionCommands!>!

This property is deprecated.

Use fromBundle instead.

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!

Returns a Bundle representing the information stored in this object.

Public properties

ImmutableSet<SessionCommand!>!

All session commands.

Constants

CREATOR

@UnstableApi
const val CREATORBundleable.Creator<SessionCommands!>!

Object that can restore SessionCommands from a Bundle.

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!

Returns a Bundle representing the information stored in this object.

Public properties

commands

val commandsImmutableSet<SessionCommand!>!

All session commands.