-
@RestrictTo(value = Scope.LIBRARY) public class DeviceInfo
-
-
Field Summary
Fields Modifier and Type Field Description public final static intSMART_PHONEpublic final static intTABLETprivate final Contextcontextprivate StringgoogleAdIDprivate Stringlibraryprivate final ArrayList<ValidationResult>validationResultsprivate StringcustomLocale
-
Method Summary
-
-
Method Detail
-
getContext
Context getContext()
-
getGoogleAdID
String getGoogleAdID()
-
getLibrary
String getLibrary()
-
setLibrary
void setLibrary(String library)
-
getValidationResults
ArrayList<ValidationResult> getValidationResults()
-
getCustomLocale
String getCustomLocale()
-
setCustomLocale
void setCustomLocale(String customLocale)
-
getAppIconAsIntId
static int getAppIconAsIntId(Context context)
Returns the integer identifier for the default app icon.
- Parameters:
context- The Android context
-
getDeviceType
static int getDeviceType(Context context)
Determines if a device is tablet, smart phone or TV
- Parameters:
context- context
-
forceNewDeviceID
void forceNewDeviceID()
-
forceUpdateCustomCleverTapID
String forceUpdateCustomCleverTapID(String cleverTapID)
-
forceUpdateDeviceId
void forceUpdateDeviceId(String id)
Force updates the device ID, with the ID specified.
This is used internally by the SDK, there is no need to call this explicitly.
- Parameters:
id- The new device ID
-
getAppLaunchedFields
JSONObject getAppLaunchedFields()
-
getBluetoothVersion
String getBluetoothVersion()
-
getBuild
int getBuild()
-
getCarrier
String getCarrier()
-
getCountryCode
String getCountryCode()
-
getDPI
int getDPI()
-
getDeviceID
String getDeviceID()
-
getHeight
double getHeight()
-
getManufacturer
String getManufacturer()
-
getAppBucket
String getAppBucket()
-
getNetworkType
String getNetworkType()
-
getOsVersion
String getOsVersion()
-
getSdkVersion
int getSdkVersion()
-
getLocalInAppCount
int getLocalInAppCount()
-
incrementLocalInAppCount
void incrementLocalInAppCount()
-
getDeviceLocale
String getDeviceLocale()
-
getVersionName
String getVersionName()
-
getWidth
double getWidth()
-
isBluetoothEnabled
Boolean isBluetoothEnabled()
-
isErrorDeviceId
boolean isErrorDeviceId()
-
isLimitAdTrackingEnabled
boolean isLimitAdTrackingEnabled()
-
isWifiConnected
Boolean isWifiConnected()
-
setCurrentUserOptOutStateFromStorage
void setCurrentUserOptOutStateFromStorage()
-
setSystemEventsAllowedStateFromStorage
void setSystemEventsAllowedStateFromStorage()
-
-
-
-