| Public Constructors | |
|---|---|
|
DeviceInfo(Context context, java.lang.String hostAppPackageName, long id, int widgetWidth, int widgetHeight, boolean vibrator)
Create device info. |
|
| Public Methods | |
|---|---|
| long |
getId()
Get the id. |
| int |
getWidgetWidth()
Get the widget width. |
| int |
getWidgetHeight()
Get the widget height. |
| boolean |
hasVibrator()
Checks if the device has a vibrator. |
| java.util.List<DisplayInfo> |
getDisplays()
Get the displays available. |
| java.util.List<AccessorySensor> |
getSensors()
Get the sensors available. |
| java.util.List<InputInfo> |
getInputs()
Get the inputs available. |
| java.util.List<TapInfo> |
getTaps()
Gets a list of supported tap actions. |
Create device info.
| context | The context. |
|---|---|
| hostAppPackageName | The host application package name. |
| id | The device id. |
| widgetWidth | The widget width. |
| widgetHeight | The widget height. |
| vibrator | True if device has a vibrator. |
Get the id.
The device id.
Get the widget width.
The widget width.
Get the widget height.
The widget height.
Checks if the device has a vibrator.
True if the device has a vibrator.
Get the displays available.
List with displays.
Get the sensors available.
List of sensors.
Get the inputs available.
List of inputs.
Gets a list of supported tap actions.
The list of supported tap actions.
The device info class describes a host application device. This class only contains a subset of the information available for the device.