java.lang.Object
com.gluonhq.attach.device.impl.AndroidDeviceService
- All Implemented Interfaces:
DeviceService
An implementation of the
DeviceService for the Android
platform.-
Constructor Summary
Constructors -
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.booleanReturns true if the device is a wearable
-
Constructor Details
-
AndroidDeviceService
public AndroidDeviceService()
-
-
Method Details
-
getModel
Description copied from interface:DeviceServiceReturns 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:
getModelin interfaceDeviceService- Returns:
- The device model.
-
getUuid
Description copied from interface:DeviceServiceReturns the device's universally unique identifier.- Specified by:
getUuidin interfaceDeviceService- Returns:
- The device UUID.
-
getPlatform
Description copied from interface:DeviceServiceReturns the platform string that the operating system uses to identify itself.- Specified by:
getPlatformin interfaceDeviceService- Returns:
- The device platform.
-
getVersion
Description copied from interface:DeviceServiceReturns the version number of the device platform.- Specified by:
getVersionin interfaceDeviceService- Returns:
- The device version.
-
isWearable
public boolean isWearable()Description copied from interface:DeviceServiceReturns true if the device is a wearable- Specified by:
isWearablein interfaceDeviceService- Returns:
- true if the device is a wearable
-
getLocale
Description copied from interface:DeviceServiceReturns the string representation of the current locale of the device- Specified by:
getLocalein interfaceDeviceService- Returns:
- the device locale
-