public interface

MediaNotification.Provider.Callback

 androidx.media3.session.MediaNotification.Provider.Callback

Overview

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

Methods
public voidonNotificationChanged(MediaNotification notification)

Called when a MediaNotification is changed.

Methods

public void onNotificationChanged(MediaNotification notification)

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: The updated MediaNotification