SpotifyMusicPlayerMiddleware

class SpotifyMusicPlayerMiddleware(spotifyTokenProvider: SpotifyTokenProvider) : CoroutineMiddleware<MusicPlayerContext> , MusicPlayerMiddleware

Spotify implementation of MusicPlayerMiddleware. This provides a place to integrate spotify with the MapGPT Ai-Assistant.

Constructors

Link copied to clipboard
constructor(spotifyTokenProvider: SpotifyTokenProvider)

Properties

Link copied to clipboard
Link copied to clipboard
open override val playbackState: StateFlow<MusicPlayerState?>
Link copied to clipboard
open override val provider: MusicPlayerProvider.Spotify

Functions

Link copied to clipboard
open override fun createContext(androidContext: Context): MusicPlayerContext
Link copied to clipboard
open override fun next()
Link copied to clipboard
open override fun onAttached(middlewareContext: MusicPlayerContext)
Link copied to clipboard
abstract fun onDetached(middlewareContext: MusicPlayerContext)
Link copied to clipboard
open override fun pause()
Link copied to clipboard
open override fun play(providerUri: String)
Link copied to clipboard
open override fun previous()
Link copied to clipboard
open override fun registerPermissionLauncher(musicPlayerContext: MusicPlayerContext, activityResultCaller: ActivityResultCaller)
Link copied to clipboard
open override fun resume()
Link copied to clipboard
open override fun seek(position: Float)
Link copied to clipboard
open override fun setRepeatMode(mode: MusicPlayerState.RepeatMode)
Link copied to clipboard
open override fun setShuffleMode(mode: MusicPlayerState.ShuffleMode)
Link copied to clipboard
open override fun stop()
Link copied to clipboard
open override fun unregister(activityResultCaller: ActivityResultCaller)
Link copied to clipboard
open override fun <C : MusicPlayerContext> viewBinder(): MiddlewareBinder<C>