MediaController.ProgressListener


@UnstableApi
interface MediaController.ProgressListener


A listener to receive progress updates of a custom command when a custom command is sent and a non-null ProgressListener is passed into sendCustomCommand.

Summary

Public functions

Unit
onProgress(
    mediaController: MediaController!,
    sessionCommand: SessionCommand!,
    args: Bundle!,
    progressData: Bundle!
)

Called when the session reports progress of a custom command.

Public functions

onProgress

fun onProgress(
    mediaController: MediaController!,
    sessionCommand: SessionCommand!,
    args: Bundle!,
    progressData: Bundle!
): Unit

Called when the session reports progress of a custom command.

Parameters
mediaController: MediaController!

The controller.

sessionCommand: SessionCommand!

The session command sent to the session.

args: Bundle!

The argument Bundle sent to the session.

progressData: Bundle!

The progress data.