public static class AsyncMedia.MediaStateChangeEvent
- Object
- ActionEvent
- 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
sourceAsyncMedia- The media object whose state is changing.
oldStateAsyncMedia.State- The old state
newStateAsyncMedia.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