Package com.jwplayer.pub.api.events
Class PauseEvent
- java.lang.Object
-
- com.jwplayer.pub.api.events.Event
-
- com.jwplayer.pub.api.events.PauseEvent
-
public class PauseEvent extends Event
Payload that accompanies the onPause() event.
-
-
Constructor Summary
Constructors Constructor Description PauseEvent(JWPlayer player, PlayerState oldState, PauseReason pauseReason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlayerState
getOldState()
PauseReason
getPauseReason()
-
-
-
Constructor Detail
-
PauseEvent
public PauseEvent(@NonNull JWPlayer player, @NonNull PlayerState oldState, @NonNull PauseReason pauseReason)
-
-
Method Detail
-
getOldState
@NonNull public PlayerState getOldState()
- Returns:
- The state the player moved from.
-
getPauseReason
@NonNull public PauseReason getPauseReason()
- Returns:
- The pause reason from the player.
-
-