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