Engine Configuration

@Serializable
data class EngineConfiguration(val host: String, val serverSecret: String, val applicationId: String, val appVersion: String? = null, val androidConfig: AndroidConfig? = null, val iosConfig: IosConfig? = null, val desktopConfig: DesktopConfig? = null, val webConfig: WebConfig? = null)

The EngineConfiguration class is the container of the details of the configuration to use during the Engine's session

Author

N7ghtm4r3 - Tecknobit

Parameters

host

The host address value of the collector server

serverSecret

The server secret of the personal Ametista backend instance

applicationId

The identifier of the application to collect its data

appVersion

The current application version managed by the Engine

androidConfig

The specific configuration for the Android target

iosConfig

The specific configuration for the iOs target

desktopConfig

The specific configuration for the desktop target

webConfig

The specific configuration for the web target

Constructors

Link copied to clipboard
constructor(host: String, serverSecret: String, applicationId: String, appVersion: String? = null, androidConfig: AndroidConfig? = null, iosConfig: IosConfig? = null, desktopConfig: DesktopConfig? = null, webConfig: WebConfig? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

PerformanceAnalyticType -> the analytics available

Link copied to clipboard

Platform -> the platform target values

Properties

Link copied to clipboard
@SerialName(value = "android" )
val androidConfig: AndroidConfig? = null
Link copied to clipboard
@SerialName(value = "application_id" )
val applicationId: String
Link copied to clipboard
@SerialName(value = "app_version" )
val appVersion: String? = null
Link copied to clipboard
@SerialName(value = "desktop" )
val desktopConfig: DesktopConfig? = null
Link copied to clipboard
val host: String
Link copied to clipboard
@SerialName(value = "ios" )
val iosConfig: IosConfig? = null
Link copied to clipboard
@SerialName(value = "server_secret" )
val serverSecret: String
Link copied to clipboard
@SerialName(value = "web" )
val webConfig: WebConfig? = null

Functions

Link copied to clipboard

Method to get the correct TargetConfig for based on the platform