UAComponents

open class UAComponents : Serializable

UAComponents holds Application and SDK information for generating User-Agent string. The UA string itself is broken down into four components: 1. Application Name and version - appName/appVersion. 2. Application Identifier and OS Information - (appIdentifier; appBuildNumber; osName osVersion). This will be skipped from UA string, if any one of the field is empty or unknown. 3. SDK Name and Version - sdkName/sdkVersion. 4. SDK Identifier - (sdkIdentifier; sdkBuildNumber). This will be skipped from UA string, if any one of the field is empty or unknown. User Agent String Example: AppName/1.0 (app.bundle.identifier; v1; iOS 13.0.1) MapboxFramework/1.0 (framework.bundle.identifier; v1) Mapbox Common Library/v1.0.0 Note that if the User-Agent is already part of the HTTP request headers, we skip the generation using the information provided through the UserAgentComponents.

Types

Builder
Link copied to clipboard
class Builder

Functions

equals
Link copied to clipboard
open fun equals(object: Any): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toBuilder
Link copied to clipboard
open fun toBuilder(): UAComponents.Builder
toString
Link copied to clipboard
open fun toString(): String

Properties

appBuildNumberComponent
Link copied to clipboard
private val appBuildNumberComponent: String
appIdentifierComponent
Link copied to clipboard
private val appIdentifierComponent: String
appNameComponent
Link copied to clipboard
private val appNameComponent: String
appVersionComponent
Link copied to clipboard
private val appVersionComponent: String
osNameComponent
Link copied to clipboard
private val osNameComponent: String
osVersionComponent
Link copied to clipboard
private val osVersionComponent: String
sdkBuildNumberComponent
Link copied to clipboard
private val sdkBuildNumberComponent: String
sdkIdentifierComponent
Link copied to clipboard
private val sdkIdentifierComponent: String
sdkNameComponent
Link copied to clipboard
private val sdkNameComponent: String
sdkVersionComponent
Link copied to clipboard
private val sdkVersionComponent: String