Added in API level 34
DeviceId
class DeviceId
kotlin.Any | |
↳ | android.devicelock.DeviceId |
The response returned from DeviceLockManager#getDeviceId
on success. A DeviceId represents a stable identifier (i.e. an identifier that is preserved after a factory reset). At this moment, the only supported identifiers are IMEI and MEID.
Summary
Constants | |
---|---|
static Int |
The device id is an IMEI |
static Int |
The device id is a MEID |
Public methods | |
---|---|
String |
getId() |
Int |
getType() |
Constants
DEVICE_ID_TYPE_IMEI
Added in API level 34
static val DEVICE_ID_TYPE_IMEI: Int
The device id is an IMEI
Value: 0
DEVICE_ID_TYPE_MEID
Added in API level 34
static val DEVICE_ID_TYPE_MEID: Int
The device id is a MEID
Value: 1
Public methods
getType
Added in API level 34
fun getType(): Int
Return | |
---|---|
Int |
Value is android.devicelock.DeviceId#DEVICE_ID_TYPE_IMEI , or android.devicelock.DeviceId#DEVICE_ID_TYPE_MEID |