Maps Indoors
MapsIndoors
Author
Jose J Varó - Copyright © 2018 MapsPeople A/S. All rights reserved.
Types
Link copied to clipboard
Invoked in case of a INVALID_API_KEY error when performing an internal http request
Functions
Link copied to clipboard
open fun addLocationSourceOnStatusChangedListener(@Nullable listener: MPLocationSourceOnStatusChangedListener)
Content copied to clipboard
Adds the given listener that will be invoked each time a location source status changes
Link copied to clipboard
open fun addOnMapsIndoorsReadyListener(@NonNull listener: OnMapsIndoorsReadyListener)
Content copied to clipboard
Add a one time listener to be invoked when MapsIndoors is ready
Link copied to clipboard
Allows or not the SDK to access the network (online data) This will directly affect the online state of the SDK (isOnline} will return
false
if this method is set to false)Link copied to clipboard
Applies a list of UserRole to the user that will get the UserRole specific locations.
Link copied to clipboard
Checks if there is on device data (embedded/locally stored) available.
Link copied to clipboard
Clean up all solution related data stored in memory.
Link copied to clipboard
Disable SDK event logging through MapsIndoors.
Link copied to clipboard
Lets the SDK check for offline tile delta updates from MapsIndoors servers.
Link copied to clipboard
Retrieves the API Key that was set using either initialize or setAPIKey
Link copied to clipboard
Gets the AppConfig for the current API Key/language
Link copied to clipboard
Returns a list of UserRole that is applied to the user
Link copied to clipboard
open fun getAuthenticationDetails(apiKey: String, onAuthDetailsReadyListener: OnAuthDetailsReadyListener)
Content copied to clipboard
Link copied to clipboard
Gets the MapsIndoors authentication token, if any has been set.
Link copied to clipboard
Returns a list of the current available default languages - i.e.
Link copied to clipboard
Returns the list of the current solution's available languages
Link copied to clipboard
@Nullable
Content copied to clipboard
Returns an icon with an availability badge (checkmark or cross badge, with colors, usually green and red).
Link copied to clipboard
Gets the BuildingCollection for the current API Key/language
Link copied to clipboard
Gets the CategoryCollection for the current API Key/language
Link copied to clipboard
Link copied to clipboard
Returns the current solution's default language
Link copied to clipboard
Retrieves the Google API key set using setGoogleAPIKey
Link copied to clipboard
Get the current highlight color
Link copied to clipboard
Link copied to clipboard
Gets the current SDK language
Link copied to clipboard
Retrieves a MPLocation by its id
Link copied to clipboard
Gets all locations (a list of MPLocation objects) for the current API Key/language
Link copied to clipboard
@AnyThread
Content copied to clipboard
Link copied to clipboard
Gets the default location data source (MapsIndoors location data)
Link copied to clipboard
Gets a list of available map styles
Link copied to clipboard
Returns the current position provider, if any
Link copied to clipboard
Returns this SDK version string
Link copied to clipboard
Returns this SDK's version code
Link copied to clipboard
Gets the Solution for the current API Key/language
Link copied to clipboard
Get the SolutionInfo data for the current API Key/language
Link copied to clipboard
Gets the User Roles for the current solution Note that role names are localized
Link copied to clipboard
Gets the VenueCollection for the current API Key/language
Link copied to clipboard
Returns
true
if synchronizeContent() has been called at least onceLink copied to clipboard
open fun initialize(@NonNull appContext: Context, @NonNull apiKey: String): Boolean
Content copied to clipboard
open fun initialize( @NonNull appContext: Context, @NonNull apiKey: String, @NonNull onLoadingDataReadyListener: OnLoadingDataReadyListener): Boolean
Content copied to clipboard
Initializes the SDK
Link copied to clipboard
Checks if the SDK has been allowed to access the network
Link copied to clipboard
Checks if the current api key is a valid one
Link copied to clipboard
Returns
true
if at least, initialize has been already calledLink copied to clipboard
Checks if location data is available for offline mode Offline location data will available if
mapsindoors_offlinemode_locations_enabled
is set to true
in the mapsindoors_api
resource fileLink copied to clipboard
Checks if offline mode has been set Offline mode has to be set using
mapsindoors_offlinemode_enabled
in the mapsindoors_api.xml
resource fileLink copied to clipboard
Checks if offline routing has been enabled Offline Routing has to be set using
mapsindoors_offlinemode_routing_enabled
in the mapsindoors_api.xml
resource fileLink copied to clipboard
Checks if MapsIndoors tiles are present in offline mode Offline Tiles will available if
mapsindoors_offlinemode_tiles_enabled
is set to true
in the mapsindoors_api.xml
resource fileLink copied to clipboard
Returns true if synchronizeContent has been called and it hasn't yet finished
Link copied to clipboard
open fun onApplicationConfigurationChanged(@Nullable newConfig: Configuration)
Content copied to clipboard
Call this from your overridden onConfigurationChanged method
Link copied to clipboard
Call this from your overridden onLowMemory method
Link copied to clipboard
Call this from your overridden onTerminate method IMPORTANT: This will effectively remove the SDK data from memory.
Link copied to clipboard
Call this from your overridden onTrimMemory method
Link copied to clipboard
open fun removeLocationSourceOnStatusChangedListener(@Nullable listener: MPLocationSourceOnStatusChangedListener)
Content copied to clipboard
Removes the given listener
Link copied to clipboard
open fun removeOnMapsIndoorsReadyListener(@NonNull listener: OnMapsIndoorsReadyListener)
Content copied to clipboard
Remove a onMapsIndoorsReadyListener
Link copied to clipboard
open fun setAPIKey(@NonNull apiKey: String, @NonNull onLoadingDataReadyListener: OnLoadingDataReadyListener): Boolean
Content copied to clipboard
Sets the app's current MapsIndoors API Key When setting a new API key, current data will be cleared along with the active MapControl will have to be remade and initialized.
Link copied to clipboard
open fun setAPIKeyValidityListener(@Nullable onAPIKeyErrorListener: MapsIndoors.OnAPIKeyErrorListener)
Content copied to clipboard
Sets a callback for when a call to our servers has been rejected because of the use of an invalidated API Key
Link copied to clipboard
Sets the MapsIndoors authentication token.
Link copied to clipboard
Sets the Google API Key used by the MPRoutingProvider
Link copied to clipboard
Set the highlight color
Link copied to clipboard
Sets the SDK to use a custom ImageProvider implementation
Link copied to clipboard
Sets the SDK's internal language.
Link copied to clipboard
@AnyThread
Content copied to clipboard
Sets one or more location data sources Note that if this method is not invoked, a MapsIndoors data source will be usedWhen this method is invoked, getLocations() will be called on all the location sources registered
Link copied to clipboard
Sets a MPNetworkOptions to use for all internal Backend Requests.
Link copied to clipboard
Content copied to clipboard
Sets a one time listener to be invoked when MapsIndoors is ready
Link copied to clipboard
open fun setPositionProvider(@Nullable positionProvider: PositionProvider)
Content copied to clipboard
Link copied to clipboard
Starts the positioning service.
Link copied to clipboard
Stops the positioning service.
Link copied to clipboard
@AnyThread
Content copied to clipboard
Main data synchronization method If not manually invoked, MapControl.init() will