fake-geolocation
    Preparing search index...

    Interface WrappedAPIsHandle

    A handle for controlling wrapped Permissions and Geolocation APIs.

    interface WrappedAPIsHandle {
        isUsingSuppliedAPIs: () => boolean;
        selectAPIs: (useSuppliedAPIs: boolean) => void;
    }
    Index

    Properties

    isUsingSuppliedAPIs: () => boolean

    Check if the wrapped APIs are using the originally supplied APIs, or the fake APIs.

    Type declaration

      • (): boolean
      • Returns boolean

        true if the wrapped APIs are using the originally supplied APIs, or false if they are using the fake APIs.

    selectAPIs: (useSuppliedAPIs: boolean) => void

    Select the APIs to use.

    Type declaration

      • (useSuppliedAPIs: boolean): void
      • Parameters

        • useSuppliedAPIs: boolean

          If true, the originally supplied APIs are used. If false, the fake APIs are used.

        Returns void