public static final class DeviceName.Request
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
request(DeviceName.Callback callback)
Download information about the device.
|
DeviceName.Request |
setCodename(java.lang.String codename)
Set the device codename to query.
|
DeviceName.Request |
setModel(java.lang.String model)
Set the device model to query.
|
public DeviceName.Request setCodename(java.lang.String codename)
codename - the value of the system property "ro.product.device"Build.DEVICEpublic DeviceName.Request setModel(java.lang.String model)
model - the value of the system property "ro.product.model"Build.MODELpublic void request(DeviceName.Callback callback)
callback - the callback to retrieve the DeviceName.DeviceInfo