Hierarchy

  • default

Constructors

Properties

navigationIsRunning: (() => boolean) = ...

Type declaration

    • Whether the navigation is currently in execution.

      Returns boolean

      boolean

positioningIsRunning: (() => boolean) = ...

Type declaration

    • (): boolean
    • Whether the positioning is currently in execution.

      Returns boolean

      boolean

Methods

  • Checks if a point is inside a Geofence

    Parameters

    • request: any
    • Optional callback: ((response) => void)
        • (response): void
        • Parameters

          • response: {
                geofence: any;
                isInsideGeofence: boolean;
            }
            • geofence: any
            • isInsideGeofence: boolean

          Returns void

    Returns void

  • (Experimental) Downloads the tiled-map of a certain building

    Parameters

    Returns Promise<any>

  • Returns the device identifier that has generated the location

    Returns Promise<string>

  • Initializes default.

    This method must be called before invoking any other methods. This method can be safely called many times as it will only initialise the SDK if it is not already initialised.

    Returns void

    void

    Throw

    Exception

  • INTERNAL METHOD.

    Set a native MethodCall delegate. Do not use this method as it is intended for internal use by the map viewer module.

    Parameters

    • callback: ((internalCall) => void)
        • (internalCall): void
        • Parameters

          Returns void

    Returns void

  • Invalidate all the resources in the cache

    Returns void

    void

    Throw

    Exception

  • Callback that notifies when the user enters a Geofence.

    In order to use correctly these callbacks you must know the following:

    • Positioning geofences (with trainer_metadata custom field) won't be notified.
    • These callbacks only work with indoor locations. Any outdoor location will produce a call to onExitedGeofences with the last positioned geofences as argument.

    Parameters

    • callback: ((event) => void)

      the function called when the user enters a Geofence

        • (event): void
        • Parameters

          Returns void

    Returns void

  • Callback that notifies when the user exits a Geofence.

    In order to use correctly these callbacks you must know the following:

    • Positioning geofences (with trainer_metadata custom field) won't be notified.
    • These callbacks only work with indoor locations. Any outdoor location will produce a call to onExitedGeofences with the last positioned geofences as argument.

    Parameters

    • callback: ((event) => void)

      the function called when the user exits a Geofence

        • (event): void
        • Parameters

          Returns void

    Returns void

  • Callback that notifies when there is an error while the user is positioining.

    Parameters

    • callback: ((error) => void)

      the function called when there is an error

        • (error): void
        • Parameters

          Returns void

    Returns void

  • Callback that notifies when the user stops positioning.

    Parameters

    • callback: (() => void)

      the function called when the user stops positioning.

        • (): void
        • Returns void

    Returns void

  • Callback that notifies when the user Location changes.

    Parameters

    • callback: ((location) => void)

      the function called when the user Location changes

        • (location): void
        • Parameters

          Returns void

    Returns void

  • Callback that notifies when the user does cancel the navigation.

    Parameters

    • callback: (() => void)

      the function called when the user cancels the navigation.

        • (): void
        • Returns void

    Returns void

  • Callback that notifies when the user reaches the destination POI.

    Parameters

    • callback: ((route) => void)

      a function that returns the completed Route by parameters.

        • (route): void
        • Parameters

          Returns void

    Returns void

  • Callback that notifies when there is an error during navigation.

    Parameters

    • callback: ((error) => void)

      the function called when there is an error during navigation.

        • (error): void
        • Parameters

          • error: any

          Returns void

    Returns void

  • Parameters

    • callback: (() => void)

      the function called when the user finishes the route.

        • (): void
        • Returns void

    Returns void

    Deprecated

    DEPRECATED: Use instead onNavigationCancellation() and onNavigationDestinationReached() to determine why did the navigation end.

    Callback that notifies when the user finishes the route.

  • Callback that notifies when the user gets out of the current route.

    Parameters

    • callback: (() => void)

      the function called when the user gets out of the current route.

        • (): void
        • Returns void

    Returns void

  • Callback that notifies every progress the user makes while navigating.

    Parameters

    Returns void

  • Callback that notifies when navigation starts.

    Parameters

    • callback: ((route) => void)

      a function that returns the initial Route by parameters.

        • (route): void
        • Parameters

          Returns void

    Returns void

  • Stops positioning, removing all location updates

    Returns void

  • Removes all location updates. This removes the internal state of the manager, including the listener provided in requestNavigationUpdates(NavigationRequest, NavigationListener), so it won't receive more progress updates.

    Returns Promise<void>

  • Removes all real time updates listners.

    Parameters

    • Optional _callback: Function

    Returns void

  • Starts positioning.

    Parameters

    • Optional locationRequest: LocationRequest

      Positioning options to configure how positioning will behave

    Returns void

  • Set the navigation params, and the listener that receives the updated navigation progress.

    Can only exist one navigation with one listener at a time. If this method was previously invoked, but removeLocationUpdates() wasn't, removeLocationUpdates() is called internally.

    Parameters

    Returns void

  • Requests a real time devices positions

    Parameters

    • realtimeUpdates: ((event) => void)

      callback to use when new device positions are updated

        • (event): void
        • Parameters

          • event: any

          Returns void

    • Optional error: ((event) => void)

      callback to use when an error on navigation udpates raises

        • (event): void
        • Parameters

          • event: any

          Returns void

    • Optional options: any

      Represents the configuration for getting realtime devices positions in

    Returns void

  • Provides your API key to the Situm SDK.

    This key is generated for your application in the Dashboard. Old credentials will be removed.

    Parameters

    • apiKey: string

      user's apikey.

    Returns void

    void

    Throw

    Exception

  • Sets the API's base URL to retrieve the data.

    Parameters

    • url: string

      user's email.

    Returns void

    void

    Throw

    Exception

  • Sets the max seconds the cache is valid

    Parameters

    • cacheAge: number

    Returns void

    void

    Throw

    Exception

  • Set to true if you want the SDK to download the configuration from the Situm API and use it by default. Right now it only affects the LocationRequest. Default value is true from SDK version 2.83.5

    Parameters

    • useRemoteConfig: boolean

    Returns void

    void

    Throw

    Exception

  • Provides user's email and password. This credentials will be used to obtain a valid user token to authenticate the server request, when necessary. Token obtaining is not necessary done when this method is executed. Old credentials will be removed.

    Parameters

    • email: string

      user's email.

    • password: string

      user's password.

    Returns void

    void

    Throw

    Exception

  • INTERNAL METHOD.

    Update SDK with the viewer navigation states. Do not use this method as it is intended for internal use by the map viewer module.

    Parameters

    • externalNavigation: Map<string, any>

    Returns void

  • Informs NavigationManager object the change of the user's location

    Parameters

    Returns void

  • INTERNAL METHOD.

    Validate if the mapView internal settings have been properly configured Do not use this method as it is intended for internal use by the map viewer module.

    Returns void

Generated using TypeDoc