Constructors

  • Constructor for GeoXpWeb Class

    Parameters

    • config: GeoXpWebConfig

      GeoXpWeb configuration

    • Optionaloptions: { throwErrors?: boolean }

      Options for GeoXpWeb

      • OptionalthrowErrors?: boolean

        Whether errors should be throw or not. Throw is default behavior

    Returns GeoXpWeb

    GeoXpWeb singleton instance

Properties

audio: GeoXpWebAudio

Web Audio instance

core: GeoXpCore

Core instance

geolocation: GeoXpWebGeolocation

Web Geolocation instance

storage?: GeoXpWebStorage

Web Storage instance

Methods

  • Event wrapper off

    Type Parameters

    • K

    Parameters

    • eventName: Key<K, GeoXpWebEvent>

      'incoming' | 'active' | 'inactive' | 'visited' | 'last' | 'complete' | 'playing' | 'stopped' | 'ended' | 'ready' | 'location'

    • listener: Listener<K, GeoXpWebEvent>

      event listener

    Returns void

  • Event wrapper on

    Type Parameters

    • K

    Parameters

    • eventName: Key<K, GeoXpWebEvent>

      'incoming' | 'active' | 'inactive' | 'visited' | 'last' | 'complete' | 'playing' | 'stopped' | 'ended' | 'ready' | 'location'

    • listener: Listener<K, GeoXpWebEvent>

      event listener

    Returns void

  • Event wrapper once

    Type Parameters

    • K

    Parameters

    • eventName: Key<K, GeoXpWebEvent>

      'incoming' | 'active' | 'inactive' | 'visited' | 'last' | 'complete' | 'playing' | 'stopped' | 'ended' | 'ready' | 'location'

    • listener: Listener<K, GeoXpWebEvent>

      event listener

    Returns void

  • Unlocks web audio and web geolocation

    Returns void