Skip to main content

Class: UserAgent

Defined in: WAProto/index.d.ts:2867

Implements

Constructors

new UserAgent()

new UserAgent(p?): UserAgent

Defined in: WAProto/index.d.ts:2868

Parameters

p?

IUserAgent

Returns

UserAgent

Properties

appVersion?

optional appVersion: null | IAppVersion

Defined in: WAProto/index.d.ts:2870

Implementation of

IUserAgent.appVersion


device?

optional device: null | string

Defined in: WAProto/index.d.ts:2875

Implementation of

IUserAgent.device


deviceBoard?

optional deviceBoard: null | string

Defined in: WAProto/index.d.ts:2881

Implementation of

IUserAgent.deviceBoard


deviceExpId?

optional deviceExpId: null | string

Defined in: WAProto/index.d.ts:2882

Implementation of

IUserAgent.deviceExpId


deviceModelType?

optional deviceModelType: null | string

Defined in: WAProto/index.d.ts:2884

Implementation of

IUserAgent.deviceModelType


deviceType?

optional deviceType: null | DeviceType

Defined in: WAProto/index.d.ts:2883

Implementation of

IUserAgent.deviceType


localeCountryIso31661Alpha2?

optional localeCountryIso31661Alpha2: null | string

Defined in: WAProto/index.d.ts:2880

Implementation of

IUserAgent.localeCountryIso31661Alpha2


localeLanguageIso6391?

optional localeLanguageIso6391: null | string

Defined in: WAProto/index.d.ts:2879

Implementation of

IUserAgent.localeLanguageIso6391


manufacturer?

optional manufacturer: null | string

Defined in: WAProto/index.d.ts:2874

Implementation of

IUserAgent.manufacturer


mcc?

optional mcc: null | string

Defined in: WAProto/index.d.ts:2871

Implementation of

IUserAgent.mcc


mnc?

optional mnc: null | string

Defined in: WAProto/index.d.ts:2872

Implementation of

IUserAgent.mnc


osBuildNumber?

optional osBuildNumber: null | string

Defined in: WAProto/index.d.ts:2876

Implementation of

IUserAgent.osBuildNumber


osVersion?

optional osVersion: null | string

Defined in: WAProto/index.d.ts:2873

Implementation of

IUserAgent.osVersion


phoneId?

optional phoneId: null | string

Defined in: WAProto/index.d.ts:2877

Implementation of

IUserAgent.phoneId


platform?

optional platform: null | Platform

Defined in: WAProto/index.d.ts:2869

Implementation of

IUserAgent.platform


releaseChannel?

optional releaseChannel: null | ReleaseChannel

Defined in: WAProto/index.d.ts:2878

Implementation of

IUserAgent.releaseChannel

Methods

toJSON()

toJSON(): object

Defined in: WAProto/index.d.ts:2890

Returns

object


create()

static create(properties?): UserAgent

Defined in: WAProto/index.d.ts:2885

Parameters

properties?

IUserAgent

Returns

UserAgent


decode()

static decode(r, l?): UserAgent

Defined in: WAProto/index.d.ts:2887

Parameters

r

Uint8Array<ArrayBufferLike> | Reader

l?

number

Returns

UserAgent


encode()

static encode(m, w?): Writer

Defined in: WAProto/index.d.ts:2886

Parameters

m

IUserAgent

w?

Writer

Returns

Writer


fromObject()

static fromObject(d): UserAgent

Defined in: WAProto/index.d.ts:2888

Parameters

d

Returns

UserAgent


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

Defined in: WAProto/index.d.ts:2891

Parameters

typeUrlPrefix?

string

Returns

string


toObject()

static toObject(m, o?): object

Defined in: WAProto/index.d.ts:2889

Parameters

m

UserAgent

o?

IConversionOptions

Returns

object