Action.WaitForMessage


class Action.WaitForMessage : Action


Waits for a player message to arrive. If the target already received a message, the action returns immediately.

Summary

Public constructors

WaitForMessage(
    tag: @Size(max = 23) String!,
    playerTarget: ActionSchedule.PlayerTarget!
)

Protected functions

Unit
doActionImpl(
    player: ExoPlayer!,
    trackSelector: DefaultTrackSelector!,
    surface: Surface?
)

Called by doActionAndScheduleNextImpl to perform the action.

Public constructors

WaitForMessage

WaitForMessage(
    tag: @Size(max = 23) String!,
    playerTarget: ActionSchedule.PlayerTarget!
)
Parameters
tag: @Size(max = 23) String!

A tag to use for logging.

playerTarget: ActionSchedule.PlayerTarget!

The target to observe.

Protected functions

doActionImpl

protected fun doActionImpl(
    player: ExoPlayer!,
    trackSelector: DefaultTrackSelector!,
    surface: Surface?
): Unit

Called by doActionAndScheduleNextImpl to perform the action.

Parameters
player: ExoPlayer!

The player to which the action should be applied.

trackSelector: DefaultTrackSelector!

The track selector to which the action should be applied.

surface: Surface?

The surface to use when applying actions, or null if no surface is needed.