MediaNotificationManager | Doclava
public class

MediaNotificationManager

extends Object
java.lang.Object
   ↳ com.google.android.gms.cast.framework.MediaNotificationManager

Class Overview

A class that manages the media notification.

Call 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();
 

Summary

Public Methods
void updateNotification()
Updates the current media notification if it is already started.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void updateNotification ()

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