updateMediaInfo

fun updateMediaInfo(title: String, artist: String = "", artwork: ArtworkSource = ArtworkSource.None)

Updates what the notification and the media session show for the current media.

artwork is loaded in the background and applied when it arrives. A load already in flight is cancelled first, so switching media quickly cannot let a late arriving image from the outgoing media land on the incoming one.

Parameters

title

Media title.

artist

Secondary line, typically the description.

artwork

Where to load the large icon from. ArtworkSource.None keeps whatever icon is already showing.