import React from "react"; import { type StyleProp, type ViewStyle } from "react-native"; import { type MapViewError, type MapViewRef, type OnExternalLinkClickedResult, type OnFavoritePoisUpdatedResult, type OnFloorChangedResult, type OnPoiDeselectedResult, type OnPoiSelectedResult } from "../types"; export type MapViewConfiguration = { /** * A String parameter that allows you to choose the API you will be retrieving our cartography from. Default is "api.situm.com". * In most cases this parameter shouldn't be changed. */ apiDomain?: string; /** * A String parameter that allows you to specify which domain will be displayed inside our webview. Defaults to "https://maps.situm.com/". * In most cases this parameter shouldn't be changed. */ viewerDomain?: string; /** * Your Situm API key. Find your API key at your [Situm dashboard's profile](https://dashboard.situm.com/accounts/profile) * * Since 3.17.0 version this parameter is not required. Instead, you should specify your apiKey * at the root of your app with `SitumProvider.apiKey` for the correct usage of the plugin. * If {@link MapViewConfiguration.situmApiKey} is specified, this API key takes precedence over * authentication provided through `SitumProvider` or `SitumPlugin`. */ situmApiKey?: string; /** * @deprecated Use `profile` instead. * A String identifier that allows you to remotely configure all map settings. */ remoteIdentifier?: string; /** * A String that specifies the selected profile name for configuring the MapView with its corresponding remote settings. */ profile?: string; /** * ** Required ** * The building that will be loaded on the map. * In case you set a buildingIdentifier in your remote configuration, it will be prioritized over {@link MapViewConfiguration.buildingIdentifier} parameter. */ buildingIdentifier: string; /** * Sets the directionality of the texts that will be displayed inside MapView. Default is "ltr". */ directionality?: string; /** * Sets the UI language based on the given ISO 639-1 code. Checkout the [Situm docs](https://situm.com/docs/query-params/) to see the list of supported languages. */ language?: string; }; export interface MapViewProps { /** * The required basic configuration to use our MapView. */ configuration: MapViewConfiguration; style?: StyleProp; /** * Get notified when a POI is selected. * @param event {@link OnPoiSelectedResult} object. */ onPoiSelected?: (event: OnPoiSelectedResult) => void; /** * Get notified when the selected POI is deselected. * @param event {@link OnPoiDeselectedResult} object. */ onPoiDeselected?: (event: OnPoiDeselectedResult) => void; /** * Get notified when the MapView has been loaded and is ready to receive actions. */ onLoad?: (event: any) => void; /** * Get notified when an error has occurred during the MapView load process. * @param event {@link MapViewError} object. */ onLoadError?: (event: MapViewError) => void; /** * Get notified when the current floor displayed on the map has changed. * @param event {@link OnFloorChangedResult} object. */ onFloorChanged?: (event: OnFloorChangedResult) => void; /** * Callback invoked when the user clicks on a link in the MapView that leads to a website different from the MapView's domain. * For example some POI description may contain a link to a video or a website, and if this callback is not set, * the link will be opened in the system's default browser by default. * @param event {@link OnExternalLinkClickedResult} object. */ onExternalLinkClicked?: (event: OnExternalLinkClickedResult) => void; /** * Callback invoked when the list of favoritePois is updated * @param event {@link OnFavoritePoisUpdatedResult} object. */ onFavoritePoisUpdated?: (event: OnFavoritePoisUpdatedResult) => void; } declare const MapView: React.ForwardRefExoticComponent>; export default MapView; //# sourceMappingURL=MapView.d.ts.map