public abstract class

ActionSchedule.PlayerTarget

extends java.lang.Object

implements PlayerMessage.Target

 java.lang.Object

↳androidx.media3.test.utils.ActionSchedule.PlayerTarget

Overview

Provides a wrapper for a PlayerMessage.Target which has access to the player when handling messages. Can be used with ActionSchedule.Builder.

The target can be passed to ActionSchedule.Builder to wait for a message to arrive at the target.

Summary

Constructors
publicPlayerTarget()

Methods
public abstract voidhandleMessage(ExoPlayer player, int messageType, java.lang.Object message)

Handles the message send to the component and additionally provides access to the player.

public final voidhandleMessage(int messageType, java.lang.Object message)

public voidsetCallback(ActionSchedule.PlayerTarget.Callback callback)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public PlayerTarget()

Methods

public void setCallback(ActionSchedule.PlayerTarget.Callback callback)

public abstract void handleMessage(ExoPlayer player, int messageType, java.lang.Object message)

Handles the message send to the component and additionally provides access to the player.

public final void handleMessage(int messageType, java.lang.Object message)