Device info
Get random user Id
Section titled “Get random user Id”Affise.getRandomUserId(): String? (attribution/src/main/java/com/affise/attribution/Affise.kt:202-208).
Affise.getRandomUserId()Sentinel values
Section titled “Sentinel values”When the SDK has not been initialized or cannot produce a valid identifier, getRandomUserId (and getRandomDeviceId) may return one of these constants from attribution/src/main/java/com/affise/attribution/errors/AffiseError.kt:10-11:
AffiseError.UUID_NOT_INITIALIZED = "11111111-1111-1111-1111-111111111111"AffiseError.UUID_NO_VALID_METHOD = "22222222-2222-2222-2222-222222222222"
Get Affise device Id
Section titled “Get Affise device Id”Affise.getRandomDeviceId(): String? (Affise.kt:213-219).
Affise.getRandomDeviceId()Get providers
Section titled “Get providers”Affise.getProviders(): Map<ProviderType, Any?> (Affise.kt:224-227). Returns an empty map when the SDK has not been initialized.
val providers: Map<ProviderType, Any?> = Affise.getProviders()val key = ProviderType.AFFISE_APP_TOKENval value = providers[key]ProviderType values
Section titled “ProviderType values”enum class ProviderType(val provider: String) at attribution/src/main/java/com/affise/attribution/parameters/ProviderType.kt:3-116. Companion ProviderType.from(name: String?): ProviderType? at ProviderType.kt:118-123.
Attribution group
Section titled “Attribution group”AFFISE_APP_ID, AFFISE_PKG_APP_NAME, AFF_APP_NAME_DASHBOARD, APP_VERSION, APP_VERSION_RAW, STORE, TRACKER_TOKEN, TRACKER_NAME, FIRST_TRACKER_TOKEN, FIRST_TRACKER_NAME, LAST_TRACKER_TOKEN, LAST_TRACKER_NAME, OUTDATED_TRACKER_TOKEN, INSTALLED_TIME, FIRST_OPEN_TIME, INSTALLED_HOUR, FIRST_OPEN_HOUR, INSTALL_FIRST_EVENT, INSTALL_BEGIN_TIME, INSTALL_FINISH_TIME, REFERRER_INSTALL_VERSION, REFERRAL_TIME, REFERRER_CLICK_TIME, REFERRER_CLICK_TIME_SERVER, REFERRER_GOOGLE_PLAY_INSTANT, CREATED_TIME, CREATED_TIME_MILLI, CREATED_TIME_HOUR, UNINSTALL_TIME, REINSTALL_TIME, LAST_SESSION_TIME, CPU_TYPE, HARDWARE_NAME, DEVICE_MANUFACTURER, DEEPLINK_CLICK, DEVICE_ATLAS_ID, AFFISE_DEVICE_ID, AFFISE_ALT_DEVICE_ID, REFTOKEN, REFTOKENS, REFERRER, REFERRER_UPDATED, USER_AGENT, MCCODE, MNCODE, REGION, COUNTRY, LANGUAGE, DEVICE_NAME, DEVICE_TYPE, OS_NAME, PLATFORM, SDK_PLATFORM, API_LEVEL_OS, AFFISE_SDK_VERSION, OS_VERSION, RANDOM_USER_ID, AFFISE_SDK_POS, TIMEZONE_DEV, AFFISE_EVENT_NAME, AFFISE_EVENT_TOKEN, LAST_TIME_SESSION, TIME_SESSION, AFFISE_SESSION_COUNT, LIFETIME_SESSION_COUNT, AFFISE_DEEPLINK, AFFISE_PART_PARAM_NAME, AFFISE_PART_PARAM_NAME_TOKEN, AFFISE_APP_TOKEN, LABEL, AFFISE_SDK_SECRET_ID, UUID, AFFISE_APP_OPENED, PUSHTOKEN, PUSHTOKEN_SERVICE, AFFISE_EVENTS_COUNT, AFFISE_SDK_EVENTS_COUNT, AFFISE_METRICS_EVENTS_COUNT, AFFISE_INTERNAL_EVENTS_COUNT, IS_ROOTED, IS_EMULATOR.
Advertising group
Section titled “Advertising group”GAID_ADID, GAID_ADID_MD5, ADID, ALTSTR_ADID, FIREOS_ADID, COLOROS_ADID, AD_PERSONALIZATION. Contributed (in part) by module-advertising.
AndroidId group
Section titled “AndroidId group”ANDROID_ID, ANDROID_ID_MD5. Contributed by module-androidid.
Huawei group
Section titled “Huawei group”OAID, OAID_MD5. Contributed by module-huawei.
Meta group
Section titled “Meta group”META. Contributed by module-meta.
Network group
Section titled “Network group”MAC_SHA1, MAC_MD5, CONNECTION_TYPE, PROXY_IP_ADDRESS. Contributed by module-network.
Phone group
Section titled “Phone group”NETWORK_TYPE, ISP. Contributed by module-phone.
Is first run
Section titled “Is first run”Affise.isFirstRun(): Boolean (Affise.kt:232-235). Returns true if the SDK has not been initialized.
Affise.isFirstRun()