PlaybackPreparer

PlaybackPreparer allows handling media prepare actions when sent by a media controller.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Get the supported prepare actions.

Link copied to clipboard
abstract fun onPrepare(autoPlay: Boolean)

Called when a media controller wants to prepare playback.

Link copied to clipboard
abstract fun onPrepareFromMediaId(mediaId: String?, autoPlay: Boolean, extras: Bundle?)

Called when a media controller wants to prepare playback of a specific mediaId.

Link copied to clipboard
abstract fun onPrepareFromSearch(query: String?, autoPlay: Boolean, extras: Bundle?)

Called when a media controller wants to prepare playback for a specific query.

Link copied to clipboard
abstract fun onPrepareFromUri(uri: Uri?, autoPlay: Boolean, extras: Bundle?)

Called when a media controller wants to prepare playback of a specific uri.