AppleMusicAuthenticator

The class is responsible to authenticate the app to use Apple Music SDK with the token provided by the developerTokenProvider.

Parameters

developerTokenProvider

provide the apple music sdk developer token

Properties

Link copied to clipboard
val hasUserToken: StateFlow<Boolean>

If false you can call onRequestUserToken to request a new user token.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun detach()
Link copied to clipboard
open override fun onAttached(middlewareContext: AppleMusicAuthenticatorContext)
Link copied to clipboard
fun onDetach()
Link copied to clipboard
open override fun onDetached(middlewareContext: AppleMusicAuthenticatorContext)
Link copied to clipboard

Requests a new user token from the Apple Music SDK. This will launch the Apple Music app and prompt the user to accept the request.

Link copied to clipboard
fun tokenProvider(): Flow<TokenProvider>