public static interface PlayerNotificationManager.CustomActionReceiver
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,android.support.v4.app.NotificationCompat.Action> |
createCustomActions(android.content.Context context)
Gets the actions handled by this receiver.
|
java.util.List<java.lang.String> |
getCustomActions(com.google.android.exoplayer2.Player player)
Gets the actions to be included in the notification given the current player state.
|
void |
onCustomAction(com.google.android.exoplayer2.Player player,
java.lang.String action,
android.content.Intent intent)
Called when a custom action has been received.
|
java.util.Map<java.lang.String,android.support.v4.app.NotificationCompat.Action> createCustomActions(android.content.Context context)
java.util.List<java.lang.String> getCustomActions(com.google.android.exoplayer2.Player player)
player - The Player for which a notification is being built.void onCustomAction(com.google.android.exoplayer2.Player player,
java.lang.String action,
android.content.Intent intent)
player - The player.action - The action from Intent.getAction().intent - The received Intent.