onHandleCustomCommand

abstract fun onHandleCustomCommand(mediaSession: <Error class: unknown class>?, controllerInfo: <Error class: unknown class>?, customCommand: <Error class: unknown class>?, args: <Error class: unknown class>?): Boolean

Called when a custom command is received from the media notification.

Return

true if the command was handled, false if not supported

Parameters

mediaSession

The media session that received the command

controllerInfo

Information about the controller that sent the command

customCommand

The custom command that was sent

args

arguments for the command