DeviceHelper

Properties

Link copied to clipboard
Link copied to clipboard

The date the app was first installed, for consumers such as the Customer Center.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The kind of device, the counterpart to iOS's interface idiom.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The full screen height in dp, comparable to iOS points and a browser's CSS pixels.

Link copied to clipboard

The full screen width in dp, comparable to iOS points and a browser's CSS pixels.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The current offset from GMT, including daylight saving time.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun daysSince(date: Date): Int
Link copied to clipboard
suspend fun getDeviceAttributes(sinceEvent: EventData?, computedPropertyRequests: List<ComputedPropertyRequest>): Map<String, Any>
Link copied to clipboard
suspend fun getEnrichment(maxRetry: Int, timeout: Duration): Either<Enrichment, NetworkError>
Link copied to clipboard
suspend fun getTemplateDevice(): Map<String, Any>
Link copied to clipboard
fun hoursSince(date: Date): Int
Link copied to clipboard
fun minutesSince(date: Date): Int
Link copied to clipboard
fun monthsSince(date: Date): Int
Link copied to clipboard
suspend fun preloadFingerprint(): String

Stable fingerprint of the device/store/subscription/storage fields that can affect which paywalls IF_TRUE rules preload. Compared by value to decide whether to re-run preload after a state change. Excludes iOS-only fields (storeFrontId/Currency, appTransactionId) and configure-time localResourceIds.

Link copied to clipboard
suspend fun reviewRequestsTotal(): Int
Link copied to clipboard
fun startIpCollectionIfEnabled(config: Config? = null)

Starts the IP lookups once config turns the MMP on or an AppsFlyer ID is set. On a cold launch the first device-attributes read happens before config arrives, so without this the lookup would wait for some later read.