react-native-tracker.platformcontextconfiguration
Home > @snowplow/react-native-tracker > PlatformContextConfiguration
PlatformContextConfiguration interface
Signature:export interface PlatformContextConfiguration
Properties
| Property | Type | Description |
|---|---|---|
| platformContext? | boolean | (Optional) Whether to track the mobile context with information about the device. Note: Only some properties (osType, osVersion, deviceManufacturer, deviceModel, resolution, language, scale) will be tracked by default. Other properties can be assigned using the PlatformContextRetriever. |
| platformContextProperties? | PlatformContextProperty[] | (Optional) List of properties of the platform context to track. If not passed and platformContext is enabled, all available properties will be tracked. The required osType, osVersion, deviceManufacturer, and deviceModel properties will be tracked in the entity regardless of this setting. |
| platformContextRetriever? | PlatformContextRetriever | (Optional) Set of callbacks to be used to retrieve properties of the platform context. Overrides the tracker implementation for setting the properties. |