Skip to main content
Sets the geolocation of the browser context. Example: setGeolocation(options: { latitude: 37.7749, longitude: -122.4194, accuracy: 100 }) Returns true if the geolocation was successfully set.

Definition

Arguments

options

GeolocationOptions! Options specifying the latitude, longitude, and optionally accuracy of the geolocation.

Returns

Boolean! The Boolean scalar type represents true or false.