getIABStandardUserAgent

fun getIABStandardUserAgent(appName: String, appVersion: String): String

Constructs a default HTTP User-Agent string in the format: AppName/AppVersion (Linux; U; Android osVersion; deviceModel Build/buildId)

Example: MyApp/1.0.0 (Linux; U; Android 13; Pixel 6 Build/TP1A.220624.014)

Return

A String representing the formatted User-Agent header value.

Parameters

appName

The name of the application (see getAppName).

appVersion

The version of the application (see getAppInfo).