MediaSession.ProgressReporter


@UnstableApi
public 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 methods

abstract void
sendProgressUpdate(Bundle progressData)

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

Public methods

sendProgressUpdate

abstract void sendProgressUpdate(Bundle progressData)

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
Bundle progressData

The progress data Bundle to be sent to the controller.