Class AndroidDeviceService

java.lang.Object
com.gluonhq.attach.device.impl.AndroidDeviceService
All Implemented Interfaces:
DeviceService

public class AndroidDeviceService extends Object implements DeviceService
An implementation of the DeviceService for the Android platform.
  • Constructor Details

    • AndroidDeviceService

      public AndroidDeviceService()
  • Method Details

    • getModel

      public String 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 interface DeviceService
      Returns:
      The device model.
    • getUuid

      public String getUuid()
      Description copied from interface: DeviceService
      Returns the device's universally unique identifier.
      Specified by:
      getUuid in interface DeviceService
      Returns:
      The device UUID.
    • getPlatform

      public String getPlatform()
      Description copied from interface: DeviceService
      Returns the platform string that the operating system uses to identify itself.
      Specified by:
      getPlatform in interface DeviceService
      Returns:
      The device platform.
    • getVersion

      public String getVersion()
      Description copied from interface: DeviceService
      Returns the version number of the device platform.
      Specified by:
      getVersion in interface DeviceService
      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 interface DeviceService
      Returns:
      true if the device is a wearable
    • getLocale

      public String getLocale()
      Description copied from interface: DeviceService
      Returns the string representation of the current locale of the device
      Specified by:
      getLocale in interface DeviceService
      Returns:
      the device locale