The parameters for creating paired fake W3C Permissions and Geolocation APIs that wrap the supplied APIs.
The W3C Geolocation API to wrap.
OptionallocationServicesParams?: LocationServicesParametersOptional parameters to use when creating the location services.
The W3C Permissions API to wrap.
OptionalpermissionStoreParams?: PermissionStoreParametersOptional parameters to use when creating the permission store.
OptionaluserParams?: 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.
Readonlygeolocation: GeolocationThe wrapped W3C Geolocation API.
Readonlyhandle: WrappedAPIsHandleA handle for controlling the wrapped APIs.
ReadonlylocationServices: MutableLocationServicesThe virtual location services.
Readonlyobserver: GeolocationObserverAn observer for geolocation changes.
Readonlypermissions: PermissionsThe wrapped W3C Permissions API.
ReadonlypermissionStore: PermissionStoreA store for managing permission access.
Readonlyuser: 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.