SessionCommand
class SessionCommand : VersionedParcelable
kotlin.Any | |
↳ | androidx.media2.session.SessionCommand |
Defines a command that a MediaController
can send to a MediaSession
.
If getCommandCode()
isn't COMMAND_CODE_CUSTOM
), it's predefined command. If getCommandCode()
is COMMAND_CODE_CUSTOM
), it's custom command and getCustomAction()
shouldn't be null
.