public class DeviceInfo extends Object
Basic device information is returned when your application queries the trusted device list via
DeviceManager#getTrustedDeviceList or queries local device information via
DeviceManager#getLocalDeviceInfo.
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
DeviceInfo.DeviceType |
Enumerates types of a device.
|
| 构造器 | 说明 |
|---|---|
DeviceInfo() |
Default constructor used to create an empty
DeviceInfo instance. |
DeviceInfo(String networkId,
String deviceName,
DeviceInfo.DeviceType deviceType) |
A constructor used to create a
DeviceInfo instance with a specified network ID, device name, and device
type. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getDeviceName() |
Obtains the device name.
|
DeviceInfo.DeviceType |
getDeviceType() |
Obtains the device type.
|
String |
getNetworkId() |
Obtains the network ID.
|
public DeviceInfo()
DeviceInfo instance.public DeviceInfo(String networkId, String deviceName, DeviceInfo.DeviceType deviceType)
DeviceInfo instance with a specified network ID, device name, and device
type.networkId - Indicates the network ID.deviceName - Indicates the device name.deviceType - Indicates the device type.public String getNetworkId()
public DeviceInfo.DeviceType getDeviceType()
DeviceType.public String getDeviceName()