Device info
Это содержимое пока не доступно на вашем языке.
getRandomUserId
Section titled “getRandomUserId”@objc public static func getRandomUserId() -> String?— AffiseAttributionLib/Classes/Affise.swift:163-170.
Verbatim:
Affise.getRandomUserId()Special return values
Section titled “Special return values”11111111-1111-1111-1111-111111111111— Affise SDK is not initialized.22222222-2222-2222-2222-222222222222— no valid methods to retrieve an id for the current device.
Constants: AffiseError.UUID_NOT_INITIALIZED and AffiseError.UUID_NO_VALID_METHOD — AffiseAttributionLib/Classes/errors/AffiseError.swift:14-15.
getRandomDeviceId
Section titled “getRandomDeviceId”@objc public static func getRandomDeviceId() -> String?— AffiseAttributionLib/Classes/Affise.swift:175-182.
Verbatim:
Affise.getRandomDeviceId()Same special-value behavior as getRandomUserId().
getProviders
Section titled “getProviders”Two entry points:
// Swiftpublic static func getProviders() -> [ProviderType: Any?]// Obj-C@objc(getProviders) public static func getProvidersObjc() -> NSDictionary— AffiseAttributionLib/Classes/Affise.swift:187-197.
Verbatim:
let providers: [ProviderType: Any?] = Affise.getProviders()let key = ProviderType.AFFISE_APP_TOKENlet value = providers[key]ProviderType categories
Section titled “ProviderType categories”@objc public enum ProviderType: Int — AffiseAttributionLib/Classes/parameters/ProviderType.swift:4. Cases at lines 5-124; string mapping in public var provider: String starting at line 126.
Attribution (core, from README)
Section titled “Attribution (core, from README)”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, REFERRAL_TIME, CREATED_TIME, CREATED_TIME_MILLI, CREATED_TIME_HOUR, UNINSTALL_TIME, REINSTALL_TIME, LAST_SESSION_TIME, DEEPLINK_CLICK, DEVICE_ATLAS_ID, AFFISE_DEVICE_ID, AFFISE_ALT_DEVICE_ID, ANDROID_ID, ANDROID_ID_MD5, MAC_SHA1, MAC_MD5, GAID_ADID, GAID_ADID_MD5, OAID, OAID_MD5, ALTSTR_ADID, FIREOS_ADID, COLOROS_ADID, REFTOKEN, REFTOKENS, REFERRER, PLATFORM, SDK_PLATFORM, API_LEVEL_OS, AFFISE_SDK_VERSION, RANDOM_USER_ID, AFFISE_SDK_POS, 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_EVENT_NAME, AFFISE_APP_TOKEN, LABEL, AFFISE_SDK_SECRET_ID, UUID, AFFISE_APP_OPENED, PUSHTOKEN, PUSHTOKEN_SERVICE, IS_EMULATOR, IDFV.
Hardware module (new in 1.7.18)
Section titled “Hardware module (new in 1.7.18)”USER_AGENT, CPU_TYPE, CPU_CORES, DEVICE, BUILD, DEVICE_NAME, PROXY_IP_ADDRESS, SCREEN_WIDTH, SCREEN_HEIGHT, DENSITY, HARDWARE_NAME, DEVICE_TYPE, OS_VERSION, OS_AND_VERSION, MCCODE, MNCODE, ISP, NETWORK_TYPE, CONNECTION_TYPE, TIMEZONE_DEV, LANGUAGE, COUNTRY, REGION, DEVICE_MANUFACTURER, OS_NAME.
— README ### Hardware; registered in AffiseModule/Hardware/Classes/HardwareModule.swift:18-43.
Physical-unit notes for the providers added in 1.7.9 (now in Hardware):
| ProviderType | Key | Value |
|---|---|---|
CPU_CORES | cpu_cores | Number of processor cores (ProcessInfo.processorCount) |
SCREEN_WIDTH | screen_width | Screen width in physical pixels (points × scale) |
SCREEN_HEIGHT | screen_height | Screen height in physical pixels (points × scale) |
DENSITY | density | Screen scale factor (UIScreen.main.scale, e.g. 2.0, 3.0) |
— ProviderType.swift:88-91; implementations in AffiseModule/Hardware/Classes/usecase/ScreenUseCaseImpl.swift, ProcessInfoUseCaseImpl.swift.
AdService module
Section titled “AdService module”AD_SERVICE_ATTRIBUTION.
Advertising module
Section titled “Advertising module”ADID, ADVERTISER_TRACKING_ENABLED, APPLICATION_TRACKING_ENABLED (the last two are new in 1.7.9 — see Advertising module).
Google module (new in 1.7.8)
Section titled “Google module (new in 1.7.8)”ODM_INFO → odm_info (AffiseAttributionLib/Classes/parameters/ProviderType.swift:114, mapped at :237). Contributed by the Google module from Google’s On-Device Conversion Measurement SDK. Not listed in the README’s per-module ProviderType collection, but present in the enum and in the dictionary returned by getProviders() when the module is linked.
AffiseAttributionLib/Classes/parameters/ProviderType.swift:5-124 contains additional cases beyond those listed in the README, including ODM_INFO, REFERRER_INSTALL_VERSION, REFERRER_CLICK_TIME, REFERRER_CLICK_TIME_SERVER, REFERRER_GOOGLE_PLAY_INSTANT, AFFISE_EVENTS_COUNT, AFFISE_SDK_EVENTS_COUNT, AFFISE_METRICS_EVENTS_COUNT, AFFISE_INTERNAL_EVENTS_COUNT, and IS_ROOTED. These may appear in the dictionary returned by getProviders().
isFirstRun
Section titled “isFirstRun”public static func isFirstRun() -> Bool— AffiseAttributionLib/Classes/Affise.swift:202-204. (Not @objc.)
Verbatim:
Affise.isFirstRun()