MediaNotification.Provider.Callback


interface MediaNotification.Provider.Callback


Receives updates for a notification.

All methods will be called on the application thread of the Player associated with the MediaSession the notification is provided for.

Summary

Public functions

Unit

Called when a MediaNotification is changed.

Public functions

onNotificationChanged

fun onNotificationChanged(notification: MediaNotification!): Unit

Called when a MediaNotification is changed.

This callback is called when notifications are updated, for example after a bitmap is loaded asynchronously and needs to be displayed.

Parameters
notification: MediaNotification!

The updated MediaNotification