|
agora_chat_SDK
3.8.2
agorajavachatSDK
|
Inherits io.agora.chat.EMBase< T >.
Public Member Functions | |
| String | getResource () |
| String | getDeviceUUID () |
| String | getDeviceName () |
Multi-device information Can use ChatClient#getLoggedInDevicesFromServer(String, String) to get info
| String io.agora.chat.DeviceInfo.getDeviceName | ( | ) |
Return the device type Such as:"HUAWEICOL-AL10"
| String io.agora.chat.DeviceInfo.getDeviceUUID | ( | ) |
Return the device's UUID
| String io.agora.chat.DeviceInfo.getResource | ( | ) |
Get other side device information Through the device info, we can distinguish the device type, such as:
String deviceResource = getResource();
String deviceType = deviceResource.substring(0, deviceResource.indexOf("_"));
if(deviceType.equalsIgnoreCase("ios")) {
// iOS device
}else if(deviceType.equalsIgnoreCase("android")) {
// android device
}else if(deviceType.equalsIgnoreCase("web")) {
// web device
}else if(deviceType.equalsIgnoreCase("win")) {
// win device
}else if(deviceType.equalsIgnoreCase("iMac")) {
// mac device
}
1.8.9