public class ModConnection extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
ModConnection.State
This class represents the state of the connection.
|
Parcelable.ClassLoaderCreator, Parcelable.Creator
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object other) |
boolean |
equalsIgnoreState(Object other)
Compares the given ModConnection object to this, ignoring the connection state.
|
ModDevice.Interface |
getInterface()
Retrieves the device on the Moto Mod, which is the remote peer of this connection.
|
ModProtocol |
getProtocol()
Retrieves the protocol that this connection is using.
|
ModConnection.State |
getState()
Retrieves the state of this connection.
|
String |
toString() |
void |
writeToParcel(Parcel out,
int flags) |
public static final Parcelable.Creator CREATOR
public ModProtocol getProtocol()
public ModConnection.State getState()
public ModDevice.Interface getInterface()
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel out, int flags)
writeToParcel
in interface Parcelable
public boolean equalsIgnoreState(Object other)
(c) 2016 Motorola Mobility LLC. All Rights Reserved
MOTOROLA and the Stylized M Logo are registered trademarks of Motorola Trademark Holdings, LLC
Android, Google, Google Play, Nexus and other marks are trademarks of Google Inc.