| 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 |
isSensorSupported(Context context, java.lang.String hostAppPackageName, java.lang.String sensorType)
Checks if host application supports a specific sensor. |
| static int |
removeUnsafeValues(Context context, ContentValues values)
Removes contentvalues that don't match the current SmartConnect version. |
Checks host app API level and screen size to check if SmartWatch 2 is supported.
| context | The context. |
|---|---|
| hostAppPackageName |
true if SmartWatch 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
Removes contentvalues that don't match the current SmartConnect version. NOTE: This method can not be called before extension is registered
| context | |
|---|---|
| values |
This class contains information about the watch