public enum LeanplumDeviceIdMode extends java.lang.Enum<LeanplumDeviceIdMode>
Enum Constant and Description |
---|
ADVERTISING_ID
Uses the Android Advertising ID.
|
ANDROID_ID
Uses the ANDROID_ID.
|
MD5_MAC_ADDRESS
Takes the md5 hash of the MAC address, or the ANDROID_ID on Marshmallow or later, or if the
permission to access the MAC address is not set (Default).
|
Modifier and Type | Method and Description |
---|---|
static LeanplumDeviceIdMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LeanplumDeviceIdMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LeanplumDeviceIdMode MD5_MAC_ADDRESS
public static final LeanplumDeviceIdMode ANDROID_ID
public static final LeanplumDeviceIdMode ADVERTISING_ID
You also need the following line of code in your Android manifest within your <application> tag:
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
public static LeanplumDeviceIdMode[] values()
for (LeanplumDeviceIdMode c : LeanplumDeviceIdMode.values()) System.out.println(c);
public static LeanplumDeviceIdMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null