The parameters for creating paired fake W3C Permissions and Geolocation APIs.
Optional
locationServicesParams?: LocationServicesParametersOptional parameters to use when creating the location services.
Optional
permissionStoreParams?: PermissionStoreParametersOptional parameters to use when creating the permission store.
Optional
userParams?: Omit<UserParameters, "locationServices" | "permissionStore">Optional parameters to use when creating the user.
The paired APIs, along with other useful services.
Readonly
geolocation: GeolocationThe fake W3C Geolocation API.
Readonly
locationServices: MutableLocationServicesThe virtual location services.
Readonly
observer: GeolocationObserverAn observer for geolocation changes.
Readonly
permissions: PermissionsThe fake W3C Permissions API.
Readonly
permissionStore: PermissionStoreA store for managing permission access.
Readonly
user: Usera virtual user that can affect geolocation and permissions.
createWrappedAPIs to create paired fake APIs that wrap existing APIs.
Create paired fake W3C Permissions and Geolocation APIs.
The permission access state of the geolocation permission in the permission store is used by the fake Geolocation API. This allows you to simulate how real browser permissions affect the behavior of the Geolocation API.