java.lang.Object | |
↳ | com.google.android.gms.cast.framework.MediaNotificationManager |
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();
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Updates the current media notification if it is already started.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Updates the current media notification if it is already started. Otherwise, starts a new media notification.