public final class HdmiHotplugEvent extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<HdmiHotplugEvent> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
HdmiHotplugEvent(int port,
boolean connected)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describes the kinds of special objects contained in this Parcelable's
marshalled representation.
|
int |
getPort()
Returns the port number for which the event occurred.
|
boolean |
isConnected()
Returns the connection status associated with this event
|
void |
writeToParcel(Parcel dest,
int flags)
Flattens this object in to a Parcel.
|
public static final Parcelable.Creator<HdmiHotplugEvent> CREATOR
public HdmiHotplugEvent(int port, boolean connected)
Marked as hidden so only system can create the instance.
public int getPort()
public boolean isConnected()
public int describeContents()
describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.