EmulationClientSetGeolocationOverrideAsync Method |
Version 118.6.80
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
unavailable.
Namespace:
CefSharp.DevTools.Emulation
Assembly:
CefSharp.Core (in CefSharp.Core.dll) Version: 118.6.80.0
Syntax public Task<DevToolsMethodResponse> SetGeolocationOverrideAsync(
double? latitude = null,
double? longitude = null,
double? accuracy = null
)
public:
Task<DevToolsMethodResponse^>^ SetGeolocationOverrideAsync(
Nullable<double> latitude = nullptr,
Nullable<double> longitude = nullptr,
Nullable<double> accuracy = nullptr
)
Parameters
- latitude (Optional)
- Type: SystemNullableDouble
Mock latitude - longitude (Optional)
- Type: SystemNullableDouble
Mock longitude - accuracy (Optional)
- Type: SystemNullableDouble
Mock accuracy
Return Value
Type:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also