public class IdManager
extends Object
| Constructor and Description |
|---|
IdManager(Context appContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAdvertisingId() |
String |
getAppIdentifier() |
String |
getDeviceUUID()
If hardware ID collection is off, returns an empty String.
|
String |
getModelName() |
String |
getOsBuildVersionString() |
String |
getOsDisplayVersionString() |
String |
getOsVersionString() |
Boolean |
isLimitAdTrackingEnabled() |
public IdManager(Context appContext)
appContext - Application ContextIllegalArgumentException - if Context is null, or appPackageName
is nullpublic String getAppIdentifier()
public String getOsVersionString()
String identifying the version of Android OS that the device is running.
Includes the public version number, and an incremental build number, like "4.2.2/573038"public String getOsDisplayVersionString()
String identifying the display version of the Android OS that the device is
running, e.g. "4.2.2". Any forward slashes in the system returned value will be removed.public String getOsBuildVersionString()
String identifying the build version of the Android OS that the device is
running, e.g. "573038". Any forward slashes in the system returned value will be removed.public String getModelName()
String identifying the model of this device. Includes the manufacturer and
model names.public String getDeviceUUID()
Always returns either an empty string or a hex string of at least 16 characters.
public Boolean isLimitAdTrackingEnabled()
public String getAdvertisingId()