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.EmulationAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<DevToolsMethodResponse> SetPressureSourceOverrideEnabledAsync(
bool enabled,
PressureSource source,
PressureMetadata metadata = null
)
public:
Task<DevToolsMethodResponse^>^ SetPressureSourceOverrideEnabledAsync(
bool enabled,
PressureSource source,
PressureMetadata^ metadata = nullptr
)
Parameters
- enabled Boolean
- enabled
- source PressureSource
- source
- metadata PressureMetadata (Optional)
- metadata
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also