The parameters for creating paired fake W3C Permissions and Geolocation APIs that wrap the supplied APIs.
The W3C Geolocation API to wrap.
Optional
locationServicesParams?: LocationServicesParametersOptional parameters to use when creating the location services.
The W3C Permissions API to wrap.
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 wrapped APIs, and a handle for controlling them, along with other useful services.
Readonly
geolocation: GeolocationThe wrapped W3C Geolocation API.
Readonly
handle: WrappedAPIsHandleA handle for controlling the wrapped APIs.
Readonly
locationServices: MutableLocationServicesThe virtual location services.
Readonly
observer: GeolocationObserverAn observer for geolocation changes.
Readonly
permissions: PermissionsThe wrapped W3C Permissions API.
Readonly
permissionStore: PermissionStoreA store for managing permission access.
Readonly
user: Usera virtual user that can affect geolocation and permissions.
createAPIs to create paired fake APIs without wrapping existing APIs.
Create paired fake W3C Permissions and Geolocation APIs that wrap the supplied APIs.
Internally, this function creates paired fake APIs using createAPIs. Then it wraps these APIs and the supplied APIs using createDelegatedPermissions and createDelegatedGeolocation to create delegated APIs that can switch between the fake and supplied APIs dynamically.