MediaSession.ProgressReporter


@UnstableApi
interface MediaSession.ProgressReporter


A progress reporter to report progress for a custom command sent by a controller.

A non-null instance is passed to onCustomCommand in case the controller requests progress updates.

Summary

Public functions

Unit
sendProgressUpdate(progressData: Bundle!)

Sends a progress update to the controller that has sent a custom command.

Public functions

sendProgressUpdate

fun sendProgressUpdate(progressData: Bundle!): Unit

Sends a progress update to the controller that has sent a custom command.

Updates can be sent as long as the ListenableFuture returned by onCustomCommand is not done. Sending updates after completion of the future results in a no-op.

Parameters
progressData: Bundle!

The progress data Bundle to be sent to the controller.