public class SensorInfo
extends java.lang.Object
| Constructor and Description |
|---|
SensorInfo(android.content.ComponentName sensorComponent,
android.os.Bundle metaData,
android.graphics.drawable.Drawable icon)
Construct information about a sensor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsConfiguration(android.os.Bundle b)
Checks if this sensor accepts the given configuration.
|
java.lang.String |
getAuthority() |
android.content.Intent |
getConfigurationIntent()
Returns an intent with component.getClassName() +
"$ConfigurationActivity" for launching the sensors configuration
activity.
|
java.lang.String |
getEntity() |
android.graphics.drawable.Drawable |
getIcon() |
android.content.Intent |
getIntent()
Returns an intent to launch this sensor.
|
java.util.ArrayList<java.lang.String> |
getUnits() |
java.util.ArrayList<java.lang.String> |
getValuePaths() |
java.lang.String |
toString() |
public SensorInfo(android.content.ComponentName sensorComponent,
android.os.Bundle metaData,
android.graphics.drawable.Drawable icon)
sensorComponent - The component the sensor lives inmetaData - metadata bundle for the service from the package managerpublic android.graphics.drawable.Drawable getIcon()
public final java.lang.String getEntity()
public final java.util.ArrayList<java.lang.String> getValuePaths()
public final java.util.ArrayList<java.lang.String> getUnits()
public final java.lang.String getAuthority()
public final boolean acceptsConfiguration(android.os.Bundle b)
throws SensorConfigurationException
b - the bundle to checkSensorConfigurationException - if the sensor is not configuredpublic final android.content.Intent getIntent()
public final android.content.Intent getConfigurationIntent()
public java.lang.String toString()
toString in class java.lang.Object