EmulationClientSetGeolocationOverrideAsync Method |
Version 130.1.90
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
unavailable.
Namespace: CefSharp.DevTools.EmulationAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.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 NullableDouble (Optional)
- Mock latitude
- longitude NullableDouble (Optional)
- Mock longitude
- accuracy NullableDouble (Optional)
- Mock accuracy
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also