onHandleCustomCommand
fun onHandleCustomCommand(mediaSession: <Error class: unknown class>?, controllerInfo: <Error class: unknown class>?, customCommand: <Error class: unknown class>?, args: <Error class: unknown class>? = null): Int
Handles a custom command from the media notification. This method is called internally by the SDK.
Return
A SessionResult code, or ERROR_NOT_SUPPORTED if no custom handler is set
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
Optional arguments for the command