-
- All Implemented Interfaces:
-
android.os.Parcelable
public class MediaEvent extends AbstractEvent<Parcelable> implements Parcelable
Immutable object the describes a media event.
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
PARCEL_OBJECT_TYPE
private final Map<String, Parcelable>
properties
public static Parcelable.Creator<MediaEvent>
CREATOR
-
Constructor Summary
Constructors Constructor Description MediaEvent(String type)
Constructs a new media event for the specified type. MediaEvent(String type, Map<String, Parcelable> properties)
Constructs a new media event for the specified type and properties.
-
Method Summary
Modifier and Type Method Description Map<String, Parcelable>
getProperties()
static MediaEvent
create(@NonNull() Event event)
Converts the given non-parcelable event into a parcelable media event. int
describeContents()
void
writeToParcel(Parcel parcel, int i)
-
Methods inherited from class com.brightcove.player.event.AbstractEvent
getId, getIntegerProperty, getLongProperty, getNextId, getProperties, getProperty, getProperty, getType, isPrevented, isStopped, preventDefault, stopPropagation, toString
-
Methods inherited from class android.os.Parcelable
describeContents, writeToParcel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MediaEvent
MediaEvent(String type)
Constructs a new media event for the specified type.- Parameters:
type
- the type of the media event.
-
MediaEvent
MediaEvent(String type, Map<String, Parcelable> properties)
Constructs a new media event for the specified type and properties.- Parameters:
type
- the type of the media event.properties
- the properties related this media event.
-
-
Method Detail
-
getProperties
@NonNull() Map<String, Parcelable> getProperties()
-
create
static MediaEvent create(@NonNull() Event event)
Converts the given non-parcelable event into a parcelable media event.
- Parameters:
event
- the event to be converted.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel parcel, int i)
-
-
-
-