public static class ModDevice.Interface extends Object implements ModDevice.InterfaceInfo
ModDevice.InterfaceInfo
is that, an instance of this class means there is an actual interface
being created underneath.Parcelable.ClassLoaderCreator, Parcelable.Creator
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ModDevice.Interface(ModDevice.Interface other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
ArrayList |
getDeclaredProtocols()
Return the declared protocol this Interface supports, it's
statically declared in the manifest actually; there should be a
coresponding connection for it, but its status might be various.
|
byte |
getInterfaceId()
Return the numeric identifier of this interface
|
short |
getModId()
Return the numeric identifier of the Moto Mod which this interface associated with.
|
ModDevice.Subclass |
getSubclass()
Return the class info being associated with this interface
|
boolean |
hasDeclaredProtocol(ModProtocol.Protocol p)
Return whether a protocol has been declared in the Moto Mod interface.
|
String |
toString() |
void |
writeToParcel(Parcel out,
int flags) |
public static final Parcelable.Creator CREATOR
public ModDevice.Interface(ModDevice.Interface other)
public byte getInterfaceId()
ModDevice.InterfaceInfo
getInterfaceId
in interface ModDevice.InterfaceInfo
public short getModId()
public ModDevice.Subclass getSubclass()
ModDevice.InterfaceInfo
getSubclass
in interface ModDevice.InterfaceInfo
public ArrayList getDeclaredProtocols()
ModDevice.InterfaceInfo
getDeclaredProtocols
in interface ModDevice.InterfaceInfo
public boolean hasDeclaredProtocol(ModProtocol.Protocol p)
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel out, int flags)
writeToParcel
in interface Parcelable
(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.