Skip to content

Class: DeviceSettings<T>

@appium/base-driver.DeviceSettings

Implements

Type parameters

Name
T

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DeviceSettings<T>(defaultSettings?, onSettingsUpdate?)

Creates a shallow copy of the defaultSettings parameter!

Type parameters

Name
T

Parameters

Name Type
defaultSettings? Record<string, T>
onSettingsUpdate? SettingsUpdateListener<T>

Defined in

packages/base-driver/lib/basedriver/device-settings.js:33

Properties

_onSettingsUpdate

Protected _onSettingsUpdate: SettingsUpdateListener<T>

Defined in

packages/base-driver/lib/basedriver/device-settings.js:26


_settings

Protected _settings: Record<string, T>

Defined in

packages/base-driver/lib/basedriver/device-settings.js:20

Methods

getSettings

getSettings(): Record<string, T>

Returns

Record<string, T>

Defined in

packages/base-driver/lib/basedriver/device-settings.js:70


update

update(newSettings): Promise<void>

calls updateSettings from implementing driver every time a setting is changed.

Parameters

Name Type
newSettings Record<string, T>

Returns

Promise<void>

Defined in

packages/base-driver/lib/basedriver/device-settings.js:42