@mapsindoors/react-native-maps-indoors-google-maps
    Preparing search index...

    Class default

    Main class for accessing data in the MapsIndoors SDK.

    MapsIndoors

    Index

    Methods

    • Add venues to the sync list.

      Parameters

      • venues: string[]

        list of venueIds to add to sync.

      Returns Promise<void>

    • Cache all data for the current solution. Including tiles and images if present on the solution.

      Parameters

      • apiKey: String

        The key to the MapsIndoors solution.

      Returns Promise<boolean>

      Promise True if the caching was successful, otherwise false.

    • 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>

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

      Invoke load to start the SDK anew.

      Returns Promise<void>

    • 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>

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

      Will return empty string if no key has been set.

      Returns Promise<string>

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

      Returns Promise<string[]>

    • Returns the default language for the current solution.

      Returns Promise<string>

    • Retrieve the display rule with a given [@link name}.

      Requires that load has successfully executed.

      Parameters

      • name: string

        The ID of the DisplayRule

      Returns Promise<MPDisplayRule>

    • Gets the language currently used in the SDK.

      Returns Promise<string>

    • Get a list of venueIds that are synced.

      Returns Promise<string[]>

      Promise<string[]> A list of venueIds that are synced.

    • Check if the current API key is valid.

      Returns Promise<boolean>

    • Check if load has been called.

      Returns Promise<boolean>

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

      Returns Promise<boolean>

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

      Parameters

      • apiKey: String

        The key to the MapsIndoors solution.

      • Optionalvenues: String[] = null

        An optional list of venueIds as strings.

      Returns Promise<void>

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

    • Remove venues from the sync list.

      Parameters

      • venues: string[]

        List of venueIds to remove from sync.

      Returns Promise<void>

    • 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>

    • Main data synchronization method.

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

      Returns Promise<void>