public class DeviceInfo
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceInfo.Connectivity |
static interface |
DeviceInfo.Listener |
static class |
DeviceInfo.Orientation |
| Constructor and Description |
|---|
DeviceInfo(android.content.Context context,
DeviceInfo.Listener listener) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAdvertisingId()
Attempt to use the play services advertising ID, but fall back on the old style Android ID.
|
java.lang.String |
getAdvertisingIdMd5() |
java.lang.String |
getAdvertisingIdSha1() |
android.content.Context |
getContext() |
java.lang.String |
getDeviceHeight() |
void |
getDeviceScreenDimensions() |
java.lang.String |
getDeviceWidth() |
java.util.Locale |
getLocale() |
java.lang.String |
getModel() |
DeviceInfo.Orientation |
getOrientation() |
java.lang.String |
getOSVersion() |
boolean |
limitTracking() |
public DeviceInfo(android.content.Context context,
DeviceInfo.Listener listener)
public void getDeviceScreenDimensions()
public java.lang.String getAdvertisingId()
public java.lang.String getAdvertisingIdMd5()
public java.lang.String getAdvertisingIdSha1()
public boolean limitTracking()
public java.util.Locale getLocale()
public DeviceInfo.Orientation getOrientation()
public java.lang.String getModel()
public java.lang.String getOSVersion()
public android.content.Context getContext()
public java.lang.String getDeviceHeight()
public java.lang.String getDeviceWidth()