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 | Type |
---|---|
T |
extends StringRecord |
Parameters
Name | Type |
---|---|
defaultSettings? |
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: T
Defined in
packages/base-driver/lib/basedriver/device-settings.js:20
Methods
getSettings
▸ getSettings(): T
Returns
T
Defined in
packages/base-driver/lib/basedriver/device-settings.js:69
update
▸ update(newSettings
): Promise
<void
>
calls updateSettings from implementing driver every time a setting is changed.
Parameters
Name | Type |
---|---|
newSettings |
T |
Returns
Promise
<void
>