AnalyticsRequestV2Factory

class AnalyticsRequestV2Factory(context: Context, clientId: String, origin: String, pluginType: String = PluginDetector.pluginType ?: PLUGIN_NATIVE)

Factory to generate AnalyticsRequestV2, can be optionally configured to add the following standard SDK specific parameters. os_version - Android version sdk_platform - always "android" sdk_version - current SDK version device_type - MANUFACTURER, brand and model app_name - the host application name app_version - the host app version plugin_type - whether SDK is integrated natively or through other wrappers(e.g react native) platform_info - information about current platform

Constructors

Link copied to clipboard
constructor(context: Context, clientId: String, origin: String, pluginType: String = PluginDetector.pluginType ?: PLUGIN_NATIVE)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun createRequest(eventName: String, additionalParams: Map<String, Any?> = mapOf(), includeSDKParams: Boolean = true): AnalyticsRequestV2

Creates an AnalyticsRequestV2 with parameters.