-
public interface PlaybackNotification.OnRestorePlaybackHandler
Interface definition used to restore playback when re-creating an activity when the userclicks on the on-going notification.This should be implemented by the Activity. By default, it returns true if thenotification is visible and the activity's intent contains NOTIFICATION.
-
-
Method Summary
Modifier and Type Method Description boolean
shouldRestorePlayback(BaseVideoView view, PlaybackNotification notification)
Check if playback should be restored for a given BaseVideoView. -
-
Method Detail
-
shouldRestorePlayback
boolean shouldRestorePlayback(BaseVideoView view, PlaybackNotification notification)
Check if playback should be restored for a given BaseVideoView.This is used when launching an activity from the notification via a PendingIntent.
- Parameters:
view
- A view for playbacknotification
- The media-style notification used for on-going playback.
-
-
-
-