Click or drag to resize

EmulationClientSetPressureSourceOverrideEnabledAsync Method

Version 130.1.90
Overrides a pressure source of a given type, as used by the Compute Pressure API, so that updates to PressureObserver.observe() are provided via setPressureStateOverride instead of being retrieved from platform-provided telemetry data.

Namespace: CefSharp.DevTools.Emulation
Assembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax
public Task<DevToolsMethodResponse> SetPressureSourceOverrideEnabledAsync(
	bool enabled,
	PressureSource source,
	PressureMetadata metadata = null
)

Parameters

enabled  Boolean
enabled
source  PressureSource
source
metadata  PressureMetadata  (Optional)
metadata

Return Value

TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also