PlatformContextRetriever

data class PlatformContextRetriever(var osType: () -> String? = null, var osVersion: () -> String? = null, var deviceVendor: () -> String? = null, var deviceModel: () -> String? = null, var carrier: () -> String?? = null, var networkType: () -> String?? = null, var networkTechnology: () -> String?? = null, var androidIdfa: () -> String?? = null, var availableStorage: () -> Long?? = null, var totalStorage: () -> Long?? = null, var physicalMemory: () -> Long?? = null, var systemAvailableMemory: () -> Long?? = null, var batteryLevel: () -> Int?? = null, var batteryState: () -> String?? = null, var isPortrait: () -> Boolean?? = null, var resolution: () -> String?? = null, var scale: () -> Float?? = null, var language: () -> String? = null, var appSetId: () -> String? = null, var appSetIdScope: () -> String? = null)

Overrides for the values for properties of the platform context.

Constructors

Link copied to clipboard
constructor(osType: () -> String? = null, osVersion: () -> String? = null, deviceVendor: () -> String? = null, deviceModel: () -> String? = null, carrier: () -> String?? = null, networkType: () -> String?? = null, networkTechnology: () -> String?? = null, androidIdfa: () -> String?? = null, availableStorage: () -> Long?? = null, totalStorage: () -> Long?? = null, physicalMemory: () -> Long?? = null, systemAvailableMemory: () -> Long?? = null, batteryLevel: () -> Int?? = null, batteryState: () -> String?? = null, isPortrait: () -> Boolean?? = null, resolution: () -> String?? = null, scale: () -> Float?? = null, language: () -> String? = null, appSetId: () -> String? = null, appSetIdScope: () -> String? = null)

Properties

Link copied to clipboard
var androidIdfa: () -> String??

Advertising identifier on Android.

Link copied to clipboard
var appSetId: () -> String?

Android vendor ID scoped to the set of apps published under the same Google Play developer account (see https://developer.android.com/training/articles/app-set-id).

Link copied to clipboard
var appSetIdScope: () -> String?

Scope of the appSetId. Can be scoped to the app or to a developer account on an app store (all apps from the same developer on the same device will have the same ID).

Link copied to clipboard
var availableStorage: () -> Long??

Bytes of storage remaining.

Link copied to clipboard
var batteryLevel: () -> Int??

Remaining battery level as an integer percentage of total battery capacity.

Link copied to clipboard
var batteryState: () -> String??

Battery state for the device

Link copied to clipboard
var carrier: () -> String??

The carrier of the SIM inserted in the device.

Link copied to clipboard
var deviceModel: () -> String?

The end-user-visible name for the end product.

Link copied to clipboard
var deviceVendor: () -> String?

The manufacturer of the product/hardware.

Link copied to clipboard
var isPortrait: () -> Boolean??

A Boolean indicating whether the device orientation is portrait (either upright or upside down).

Link copied to clipboard
var language: () -> String?

System language currently used on the device (ISO 639).

Link copied to clipboard

Radio access technology that the device is using.

Link copied to clipboard
var networkType: () -> String??

Type of network the device is connected to.

Link copied to clipboard
var osType: () -> String?

Operating system type (e.g., ios, tvos, watchos, osx, android).

Link copied to clipboard
var osVersion: () -> String?
Link copied to clipboard
var physicalMemory: () -> Long??

Total physical system memory in bytes.

Link copied to clipboard
var resolution: () -> String??

Screen resolution in pixels. Arrives in the form of WIDTHxHEIGHT (e.g., 1200x900). Doesn't change when device orientation changes.

Link copied to clipboard
var scale: () -> Float??

Scale factor used to convert logical coordinates to device coordinates of the screen (uses UIScreen.scale on iOS).

Link copied to clipboard

Available memory on the system in bytes (Android only).

Link copied to clipboard
var totalStorage: () -> Long??

Total size of storage in bytes.