Soundscape Media Session Callback
This callback class handles media button events generated by bluetooth headphones etc. These are then mapped to specific Soundscape features.
Functions
Link copied to clipboard
open fun onAddMediaItems(p0: MediaSession, p1: MediaSession.ControllerInfo, p2: MutableList<MediaItem>): ListenableFuture<MutableList<MediaItem>>
Link copied to clipboard
open override fun onConnect(session: MediaSession, controller: MediaSession.ControllerInfo): MediaSession.ConnectionResult
Link copied to clipboard
open fun onCustomCommand(p0: MediaSession, p1: MediaSession.ControllerInfo, p2: SessionCommand, p3: Bundle): ListenableFuture<SessionResult>
Link copied to clipboard
Link copied to clipboard
open override fun onMediaButtonEvent(session: MediaSession, controllerInfo: MediaSession.ControllerInfo, intent: Intent): Boolean
Link copied to clipboard
open fun onPlaybackResumption(p0: MediaSession, p1: MediaSession.ControllerInfo): ListenableFuture<MediaSession.MediaItemsWithStartPosition>
Link copied to clipboard
Link copied to clipboard
open fun onPlayerInteractionFinished(p0: MediaSession, p1: MediaSession.ControllerInfo, p2: Player.Commands)
Link copied to clipboard
Link copied to clipboard
open fun onSetMediaItems(p0: MediaSession, p1: MediaSession.ControllerInfo, p2: MutableList<MediaItem>, p3: Int, p4: Long): ListenableFuture<MediaSession.MediaItemsWithStartPosition>
Link copied to clipboard
open fun onSetRating(p0: MediaSession, p1: MediaSession.ControllerInfo, p2: Rating): ListenableFuture<SessionResult>
open fun onSetRating(p0: MediaSession, p1: MediaSession.ControllerInfo, p2: String, p3: Rating): ListenableFuture<SessionResult>