Class ActionSchedule.PlayerTarget
- java.lang.Object
- 
- com.google.android.exoplayer2.testutil.ActionSchedule.PlayerTarget
 
- 
- All Implemented Interfaces:
- PlayerMessage.Target
 - Enclosing class:
- ActionSchedule
 
 public abstract static class ActionSchedule.PlayerTarget extends Object implements PlayerMessage.Target Provides a wrapper for aPlayerMessage.Targetwhich has access to the player when handling messages. Can be used withActionSchedule.Builder.sendMessage(Target, long).The target can be passed to ActionSchedule.Builder.waitForMessage(PlayerTarget)to wait for a message to arrive at the target.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceActionSchedule.PlayerTarget.CallbackCallback to be called when message arrives.
 - 
Constructor SummaryConstructors Constructor Description PlayerTarget()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidhandleMessage(@com.google.android.exoplayer2.Renderer.MessageType int messageType, Object message)Handles a message delivered to the target.abstract voidhandleMessage(ExoPlayer player, int messageType, Object message)Handles the message send to the component and additionally provides access to the player.voidsetCallback(ActionSchedule.PlayerTarget.Callback callback)
 
- 
- 
- 
Method Detail- 
setCallbackpublic void setCallback(ActionSchedule.PlayerTarget.Callback callback) 
 - 
handleMessagepublic abstract void handleMessage(ExoPlayer player, int messageType, @Nullable Object message) Handles the message send to the component and additionally provides access to the player.
 - 
handleMessagepublic final void handleMessage(@com.google.android.exoplayer2.Renderer.MessageType int messageType, @Nullable Object message)Description copied from interface:PlayerMessage.TargetHandles a message delivered to the target.- Specified by:
- handleMessagein interface- PlayerMessage.Target
- Parameters:
- messageType- The message type.
- message- The message payload.
 
 
- 
 
-