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

Int

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

getId

Added in API level 34
fun getId(): String
Return
String This value cannot be null.