MediaNotificationManager

public class MediaNotificationManager extends Object

A class that manages the media notification.

Call CastContext.getMediaNotificationManager() to get the instance of this class.

Call updateNotification() to update the media notification. You don't need to call that method if there is no custom action in the media notification. If you do implement custom actions, call updateNotification() when needed to rebuild the media notification using NotificationActionsProvider. See NotificationActionsProvider for how to add custom actions in the media notification.

 // Update the notification when needed.
 CastContext castContext = getSharedInstance(applicationContext);
 castContext.getMediaNotificationManager().updateNotification();
 

Public Method Summary

void
updateNotification()
Updates the current media notification if it is already started.

Inherited Method Summary

Public Methods

public void updateNotification ()

Updates the current media notification if it is already started. Otherwise, starts a new media notification.