| Constants | ||
|---|---|---|
| int | SMARTEYEGLASS_MIN_CONTROL_API_LEVEL | The Control API level required for Smart Eyeglass |
| Public Constructors | |
|---|---|
| DeviceInfoHelper() | |
| Public Methods | |
|---|---|
| static boolean |
isSmartWatch2ApiAndScreenDetected(Context context, java.lang.String hostAppPackageName)
Checks host app API level and screen size to check if SmartWatch 2 is supported. |
| static boolean |
isSmartEyeglassScreenSupported(Context context, java.lang.String hostAppPackageName)
Check if SmartEyeglass screen size is supported. |
| static boolean |
isSensorSupported(Context context, java.lang.String hostAppPackageName, java.lang.String sensorType)
Checks if host application supports a specific sensor. |
| static int |
getSmartEyeglassWidth(Context context)
Get SmartEyeglass screen width. |
| static int |
getSmartEyeglassHeight(Context context)
Get SmartEyeglass screen height. |
| static int |
removeUnsafeValues(Context context, ContentValues values)
Removes ContentValues that don't match the current SmartConnect version. |
The Control API level required for Smart Eyeglass
Constant Value: 4 (0x00000004)
Checks host app API level and screen size to check if SmartWatch 2 is supported.
| context | The context. |
|---|---|
| hostAppPackageName |
true if SmartWatch is supported.
Check if SmartEyeglass screen size is supported.
| context | The context. |
|---|---|
| hostAppPackageName |
true if SmartEyeglass display is supported.
Checks if host application supports a specific sensor.
| context | The context. |
|---|---|
| hostAppPackageName | The package name of the host application |
| sensorType | The sensor type |
true if the host application supports the sensor
Get SmartEyeglass screen width.
| context | The context. |
|---|
width.
Get SmartEyeglass screen height.
| context | The context. |
|---|
height.
Removes ContentValues that don't match the current SmartConnect version. NOTE: This method can not be called before extension is registered
| context | The Context. |
|---|---|
| values | The ContentValues to be scanned for unsafe values. |
removeValues
This class contains helper functions for various devices