Constructor. Marked as hidden so only system can create the instance.hide mPort = port; mConnected = connected;
Marked as hidden so only system can create the instance.
mPort = port; mConnected = connected;
Describes the kinds of special objects contained in this Parcelable's marshalled representation. return 0;
return 0;
Returns the port number for which the event occurred.returnport number return mPort;
return mPort;
Returns the connection status associated with this eventreturntrue if the device gets connected; otherwise false return mConnected;
return mConnected;
Flattens this object in to a Parcel.paramdest The Parcel in which the object should be written.paramflags Additional flags about how the object should be written. May be 0 or {@link Parcelable#PARCELABLE_WRITE_RETURN_VALUE}. dest.writeInt(mPort); dest.writeByte((byte) (mConnected ? 1 : 0));
dest.writeInt(mPort); dest.writeByte((byte) (mConnected ? 1 : 0));