Package com.incode.welcome_sdk.data
Class DeviceFingerprint
-
- All Implemented Interfaces:
public final class DeviceFingerprint
-
-
Field Summary
Fields Modifier and Type Field Description private Stringdataprivate StringdeviceTypeprivate StringdeviceModelprivate Stringhashprivate Stringipprivate IntegerosVersionprivate StringsdkVersionprivate StringalgorithmNameprivate StringalgorithmVersion
-
Method Summary
Modifier and Type Method Description final StringgetData()Miscellaneous data final UnitsetData(String data)Miscellaneous data final StringgetDeviceType()Device type - Always "ANDROID" final UnitsetDeviceType(String deviceType)Device type - Always "ANDROID" final StringgetDeviceModel()Device model - Build. final UnitsetDeviceModel(String deviceModel)Device model - Build. final StringgetHash()Unique device identifier - Settings.Secure. final UnitsetHash(String hash)Unique device identifier - Settings.Secure. final StringgetIp()Device IP address final UnitsetIp(String ip)Device IP address final IntegergetOsVersion()Android OS version - Build.VERSION. final UnitsetOsVersion(Integer osVersion)Android OS version - Build.VERSION. final StringgetSdkVersion()Incode SDK version final UnitsetSdkVersion(String sdkVersion)Incode SDK version final StringgetAlgorithmName()Name of the algorithm that produced hash. final UnitsetAlgorithmName(String algorithmName)Name of the algorithm that produced hash. final StringgetAlgorithmVersion()Version of the algorithmName. final UnitsetAlgorithmVersion(String algorithmVersion)Version of the algorithmName. final StringtoJson()Converts DeviceFingerprint to JSON representation, ready to be sent to the Incode API. -
-
Method Detail
-
getDeviceType
final String getDeviceType()
Device type - Always "ANDROID"
-
setDeviceType
final Unit setDeviceType(String deviceType)
Device type - Always "ANDROID"
-
getDeviceModel
final String getDeviceModel()
Device model - Build.MODEL
-
setDeviceModel
final Unit setDeviceModel(String deviceModel)
Device model - Build.MODEL
-
getOsVersion
final Integer getOsVersion()
Android OS version - Build.VERSION.SDK_INT
-
setOsVersion
final Unit setOsVersion(Integer osVersion)
Android OS version - Build.VERSION.SDK_INT
-
getSdkVersion
final String getSdkVersion()
Incode SDK version
-
setSdkVersion
final Unit setSdkVersion(String sdkVersion)
Incode SDK version
-
getAlgorithmName
final String getAlgorithmName()
Name of the algorithm that produced hash. For Android the hash is derived from Settings.Secure.ANDROID_ID and reported as "androidId".
-
setAlgorithmName
final Unit setAlgorithmName(String algorithmName)
Name of the algorithm that produced hash. For Android the hash is derived from Settings.Secure.ANDROID_ID and reported as "androidId".
-
getAlgorithmVersion
final String getAlgorithmVersion()
Version of the algorithmName. Bump only when the source or derivation of hash changes (not on routine SDK releases).
-
setAlgorithmVersion
final Unit setAlgorithmVersion(String algorithmVersion)
Version of the algorithmName. Bump only when the source or derivation of hash changes (not on routine SDK releases).
-
-
-
-