@Singleton public class DeviceIdResolver extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
DeviceIdResolver.Callback |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FALLBACK_DEVICE_ID |
protected static String |
INVALID_ANDROID_ID |
| Constructor and Description |
|---|
DeviceIdResolver(Context context,
PermissionRequestor permissionRequestor) |
| Modifier and Type | Method and Description |
|---|---|
String |
resolveDeviceId() |
void |
resolveDeviceId(String type,
boolean shouldFallbackToAndroidId,
DeviceIdResolver.Callback callback) |
void |
resolveDeviceId(String type,
DeviceIdResolver.Callback callback) |
protected static final String INVALID_ANDROID_ID
protected static final String FALLBACK_DEVICE_ID
@Inject public DeviceIdResolver(Context context, PermissionRequestor permissionRequestor)
public String resolveDeviceId()
public void resolveDeviceId(String type, DeviceIdResolver.Callback callback)
public void resolveDeviceId(String type, boolean shouldFallbackToAndroidId, DeviceIdResolver.Callback callback)