java.lang.Object
com.gluonhq.attach.device.impl.AndroidDeviceService
- All Implemented Interfaces:
DeviceService
An implementation of the
DeviceService
for the Android
platform.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the string representation of the current locale of the devicegetModel()
Returns the name of the device's model or product.Returns the platform string that the operating system uses to identify itself.getUuid()
Returns the device's universally unique identifier.Returns the version number of the device platform.boolean
Returns true if the device is a wearable
-
Constructor Details
-
AndroidDeviceService
public AndroidDeviceService()
-
-
Method Details
-
getModel
Description copied from interface:DeviceService
Returns the name of the device's model or product. The value is set by the device manufacturer and may be different across versions of the same product.- Specified by:
getModel
in interfaceDeviceService
- Returns:
- The device model.
-
getUuid
Description copied from interface:DeviceService
Returns the device's universally unique identifier.- Specified by:
getUuid
in interfaceDeviceService
- Returns:
- The device UUID.
-
getPlatform
Description copied from interface:DeviceService
Returns the platform string that the operating system uses to identify itself.- Specified by:
getPlatform
in interfaceDeviceService
- Returns:
- The device platform.
-
getVersion
Description copied from interface:DeviceService
Returns the version number of the device platform.- Specified by:
getVersion
in interfaceDeviceService
- Returns:
- The device version.
-
isWearable
public boolean isWearable()Description copied from interface:DeviceService
Returns true if the device is a wearable- Specified by:
isWearable
in interfaceDeviceService
- Returns:
- true if the device is a wearable
-
getLocale
Description copied from interface:DeviceService
Returns the string representation of the current locale of the device- Specified by:
getLocale
in interfaceDeviceService
- Returns:
- the device locale
-