UserAgentMetadata.BrandVersion


class UserAgentMetadata.BrandVersion


Class that holds brand name, major version and full version. Brand name and major version used to generated user-agent client hint sec-cu-ua. Brand name and full version used to generated user-agent client hint sec-ch-ua-full-version-list.

This class is functionally equivalent to NavigatorUABrandVersion.

Summary

Nested types

Builder used to create BrandVersion objects.

Public functions

Boolean
equals(o: Any!)

Two BrandVersion objects are equal only if brand name, major version and full version are equal.

String

Returns the brand of user-agent brand version tuple.

String

Returns the full version of user-agent brand version tuple.

String

Returns the major version of user-agent brand version tuple.

Int
String

Public functions

equals

fun equals(o: Any!): Boolean

Two BrandVersion objects are equal only if brand name, major version and full version are equal.

getBrand

Added in 1.9.0
fun getBrand(): String

Returns the brand of user-agent brand version tuple.

getFullVersion

Added in 1.9.0
fun getFullVersion(): String

Returns the full version of user-agent brand version tuple.

getMajorVersion

Added in 1.9.0
fun getMajorVersion(): String

Returns the major version of user-agent brand version tuple.

hashCode

fun hashCode(): Int

toString

fun toString(): String