createUserAgent

fun createUserAgent(applicationName: String = "UmamiKmpSdk", applicationVersion: String = "1.0.0", platform: String = getPlatform(), platformVersion: String = "1.0", architecture: String = "Unknown"): String

Creates a user agent string for HTTP requests.

Return

A formatted user agent string.

Parameters

applicationName

The name of the application.

applicationVersion

The version of the application.

platform

The operating system or platform.

platformVersion

The version of the platform.

architecture

The CPU architecture.