Main class for accessing data in the MapsIndoors SDK.

Export

Hierarchy

  • default

Constructors

Methods

  • Applies a list of MPUserRoles to the SDK which will get the UserRole specific locations..

    Parameters

    Returns Promise<void>

    Static

    Async

  • Checks if there is on device data (embedded/locally stored) available. For this to return true, data has to be available for all solution data types (MPLocation, MPBuilding...).

    Returns true if data is available, otherwise returns false.

    Returns Promise<boolean>

    Static

    Async

  • Clears the internal state of MapsIndoors SDK. Any loaded content is purged from memory.

    Invoke load to start the SDK anew.

    Returns Promise<void>

    Static

    Async

  • disable SDK event logging through MapsIndoors. No logs will be created or send with this disabled.

    By default it is enabled. But disabled in the CMS meaning logs will be created but never uploaded.

    Parameters

    • disable: boolean

    Returns Promise<void>

    Static

    Async

  • Retrieves the API key that was set when calling load.

    Will return empty string if no key has been set.

    Returns Promise<string>

    Static

    Async

  • Returns a list of the current solution's available languages.

    Returns Promise<string[]>

    Static

    Async

  • Returns the default language for the current solution.

    Returns Promise<string>

    Static

    Async

  • Gets the language currently used in the SDK.

    Returns Promise<string>

    Static

    Async

  • Check if the current API key is valid.

    Returns Promise<boolean>

    Static

    Async

  • Check if the SDK is initialized and ready for use.

    Returns Promise<boolean>

    Static

    Async

  • Loads content from the MapsIndoors solution matching the given API apiKey.

    Parameters

    • apiKey: String

      The key to the MapsIndoors solution.

    Returns Promise<void>

    If the load fails for any reason, it will reject with a MPError.

    Static

    Async

  • Sets the SDK's internal language.

    By default, the SDK language can be:

    • the solution's default language (MPSolutionInfo#getDefaultLanguage()).
    • the current device language, if the MapsIndoors data isn't available (ie: first app run without network access).

    Parameters

    • language: string

    Returns Promise<boolean>

    Static

    Async

  • Main data synchronization method.

    If not manually invoked, [MapControl.create(config, listener)] will invoke it.

    Returns Promise<void>

    Static

    Async

Generated using TypeDoc