public class NanoAppInstanceInfo extends Object
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<NanoAppInstanceInfo> |
CREATOR |
Constructor and Description |
---|
NanoAppInstanceInfo() |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
long |
getAppId()
Get the application identifier
|
int |
getAppVersion()
Get the application version
NOTE: There is a race condition where shortly after loading, this
may return -1 instead of the correct version.
|
int |
getContexthubId()
get the context hub identifier
|
int |
getHandle()
get a handle to the nano app instance
|
String |
getName()
get the name of the app
|
int |
getNeededExecMemBytes()
get executable memory needed by the app
|
int |
getNeededReadMemBytes()
Get the read memory needed by the app
|
int[] |
getNeededSensors()
Get the sensors needed by this app
|
int |
getNeededWriteMemBytes()
get writable memory needed by the app
|
int[] |
getOutputEvents()
get the events generated by this app
|
String |
getPublisher()
get the publisher of this app
|
void |
setAppId(long appId)
Set the application identifier
|
void |
setAppVersion(int appVersion)
Set the application version
|
void |
setContexthubId(int contexthubId)
set the context hub identifier
|
void |
setHandle(int handle)
set the handle for an app instance
|
void |
setName(String name)
set the name of the app
|
void |
setNeededExecMemBytes(int neededExecMemBytes)
set executable memory needed by the app
|
void |
setNeededReadMemBytes(int neededReadMemBytes)
Set the read memory needed by the app
|
void |
setNeededSensors(int[] neededSensors)
set the sensors needed by this app
|
void |
setNeededWriteMemBytes(int neededWriteMemBytes)
set writable memory needed by the app
|
void |
setOutputEvents(int[] outputEvents)
set the output events that can be generated by this app
|
void |
setPublisher(String publisher)
set the publisher name for the app
|
String |
toString()
Returns a string representation of the object.
|
void |
writeToParcel(Parcel out,
int flags) |
public static final Parcelable.Creator<NanoAppInstanceInfo> CREATOR
public String getPublisher()
public void setPublisher(String publisher)
publisher
- - name of the publisherpublic String getName()
public void setName(String name)
name
- - name of the apppublic long getAppId()
public void setAppId(long appId)
appId
- - application identifierpublic int getAppVersion()
public void setAppVersion(int appVersion)
appVersion
- - version of the apppublic int getNeededReadMemBytes()
public void setNeededReadMemBytes(int neededReadMemBytes)
neededReadMemBytes
- - readable Memory needed in bytespublic int getNeededWriteMemBytes()
public void setNeededWriteMemBytes(int neededWriteMemBytes)
neededWriteMemBytes
- - writable memory needed by the
apppublic int getNeededExecMemBytes()
public void setNeededExecMemBytes(int neededExecMemBytes)
neededExecMemBytes
- - executable memory needed by the
apppublic int[] getNeededSensors()
public void setNeededSensors(int[] neededSensors)
neededSensors
- - all the sensors needed by this apppublic int[] getOutputEvents()
public void setOutputEvents(int[] outputEvents)
outputEvents
- - the events that may be generated by
this apppublic int getContexthubId()
public void setContexthubId(int contexthubId)
contexthubId
- - system wide unique identifierpublic int getHandle()
public void setHandle(int handle)
handle
- - handle to this instancepublic int describeContents()
public void writeToParcel(Parcel out, int flags)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())