Click or drag to resize

EmulationClientSetGeolocationOverrideAsync Method

Version 103.0.120
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.

Namespace:  CefSharp.DevTools.Emulation
Assembly:  CefSharp (in CefSharp.dll) Version: 103.0.120.0 (103.0.120.0)
Syntax
public Task<DevToolsMethodResponse> SetGeolocationOverrideAsync(
	double? latitude = null,
	double? longitude = null,
	double? accuracy = null
)

Parameters

latitude (Optional)
Type: SystemNullableDouble
Mock latitude
longitude (Optional)
Type: SystemNullableDouble
Mock longitude
accuracy (Optional)
Type: SystemNullableDouble
Mock accuracy

Return Value

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