public enum MediaPlayerEventType extends Enum<MediaPlayerEventType>
The event flag masks should be considered private implementation and are subject to change.
Modifier and Type | Method and Description |
---|---|
static int |
events(MediaPlayerEventType... types)
Get a bit-mask for one or more event types.
|
static int |
notEvents(MediaPlayerEventType... types)
Get an inverse bit-mask for one or more event types.
|
static boolean |
notSet(int value,
MediaPlayerEventType type)
Test whether or not a media player event type is set in a bit-mask.
|
static boolean |
set(int value,
MediaPlayerEventType type)
Test whether or not a media player event type is set in a bit-mask.
|
int |
value()
Get the bit-mask.
|
static MediaPlayerEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaPlayerEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaPlayerEventType MEDIA_CHANGED
public static final MediaPlayerEventType OPENING
public static final MediaPlayerEventType BUFFERING
public static final MediaPlayerEventType PLAYING
public static final MediaPlayerEventType PAUSED
public static final MediaPlayerEventType STOPPED
public static final MediaPlayerEventType FORWARD
public static final MediaPlayerEventType BACKWARD
public static final MediaPlayerEventType FINISHED
public static final MediaPlayerEventType TIME_CHANGED
public static final MediaPlayerEventType POSITION_CHANGED
public static final MediaPlayerEventType SEEKABLE_CHANGED
public static final MediaPlayerEventType PAUSABLE_CHANGED
public static final MediaPlayerEventType TITLE_CHANGED
public static final MediaPlayerEventType SNAPSHOT_TAKEN
public static final MediaPlayerEventType LENGTH_CHANGED
public static final MediaPlayerEventType VIDEO_OUTPUT
public static final MediaPlayerEventType SCRAMBLED_CHANGED
public static final MediaPlayerEventType ES_ADDED
public static final MediaPlayerEventType ES_DELETED
public static final MediaPlayerEventType ES_SELECTED
public static final MediaPlayerEventType ERROR
public static final MediaPlayerEventType MEDIA_META_CHANGED
public static final MediaPlayerEventType MEDIA_SUB_ITEM_ADDED
public static final MediaPlayerEventType MEDIA_DURATION_CHANGED
public static final MediaPlayerEventType MEDIA_PARSED_CHANGED
public static final MediaPlayerEventType MEDIA_FREED
public static final MediaPlayerEventType MEDIA_STATE_CHANGED
public static final MediaPlayerEventType MEDIA_SUB_ITEM_TREE_ADDED
public static final MediaPlayerEventType NEW_MEDIA
public static final MediaPlayerEventType SUB_ITEM_PLAYED
public static final MediaPlayerEventType SUB_ITEM_FINISHED
public static final MediaPlayerEventType END_OF_SUB_ITEMS
public static final MediaPlayerEventType ALL
public static MediaPlayerEventType[] values()
for (MediaPlayerEventType c : MediaPlayerEventType.values()) System.out.println(c);
public static MediaPlayerEventType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int value()
public static int events(MediaPlayerEventType... types)
types
- one or more event typespublic static int notEvents(MediaPlayerEventType... types)
types
- one or more event typespublic static boolean set(int value, MediaPlayerEventType type)
value
- bit-masktype
- event type to test fortrue
if the type value is set in the bit-mask, otherwise false
public static boolean notSet(int value, MediaPlayerEventType type)
value
- bit-masktype
- event type to test forfalse
if the type value is set in the bit-mask, otherwise true
Copyright © 2009–2015 Caprica Software Limited. All rights reserved.