public interface DeviceService
Example
Services.get(DeviceService.class).ifPresent(service -> {
System.out.printf("Device Model Name: %s", service.getModel());
});
Android Configuration: none
iOS Configuration: none
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getModel() |
Returns the name of the device's model or product.
|
java.lang.String |
getPlatform() |
Returns the platform string that the operating system uses to identify itself.
|
java.lang.String |
getSerial() |
Returns the device hardware serial number.
|
java.lang.String |
getUuid() |
Returns the device's universally unique identifier.
|
java.lang.String |
getVersion() |
Returns the version number of the device platform.
|
boolean |
isWearable() |
Returns true if the device is a wearable
|
java.lang.String getModel()
java.lang.String getUuid()
java.lang.String getPlatform()
java.lang.String getVersion()
java.lang.String getSerial()
boolean isWearable()