public static class AsyncMedia.MediaStateChangeEvent

  1. Object
  2. ActionEvent
  3. AsyncMedia.MediaStateChangeEvent
Encapsulates a state-change event on a Media object.

Constructors

public MediaStateChangeEvent(AsyncMedia source, AsyncMedia.State oldState, AsyncMedia.State newState)Creates a new state change event for the given source.

Methods

public AsyncMedia.State getOldState()The previous state.
public AsyncMedia.State getNewState()The new state.

Inherited nested types

Inherited methods

Constructor details

MediaStateChangeEvent

public MediaStateChangeEvent(AsyncMedia source, AsyncMedia.State oldState, AsyncMedia.State newState)
Creates a new state change event for the given source.

Parameters

source AsyncMedia
The media object whose state is changing.
oldState AsyncMedia.State
The old state
newState AsyncMedia.State
The new state

Method details

getOldState

public AsyncMedia.State getOldState()
The previous state.

Returns

the oldState

getNewState

public AsyncMedia.State getNewState()
The new state.

Returns

the newState