Class PTRMapWidgetFragment
-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks
,android.view.View.OnCreateContextMenuListener
,androidx.activity.result.ActivityResultCaller
,androidx.lifecycle.HasDefaultViewModelProviderFactory
,androidx.lifecycle.LifecycleOwner
,androidx.lifecycle.ViewModelStoreOwner
,androidx.savedstate.SavedStateRegistryOwner
public final class PTRMapWidgetFragment extends PTRFragment
-
-
Field Summary
Fields Modifier and Type Field Description private PTRMapFragment
mapFragment
private SearchFragment
searchFragment
private final Site
site
private final Building
building
private final Level
level
private SearchEventsHandler
searchEventsHandler
private PoiDetailsEventsHandler
poiDetailEventsHandler
private RouteSummaryEventsHandler
routeSummaryEventsHandler
private LevelSelectorEventsHandler
levelSelectorEventsHandler
private PathFindingEventsHandler
pathFindingEventsHandler
private PathUpdatesEventHandler
pathUpdatesEventsHandler
private MapEventsHandler
mapEventsHandler
private ExitButtonEventsHandler
exitButtonEventsHandler
private LocationUpdatesEventsHandler
locationUpdatesEventsHandler
private TrackingModeEventsHandler
trackingModeEventsHandler
private ArEventsHandler
arEventsHandler
private PTRMapTrackingModeButton
mapTrackingModeButton
private Boolean
userInteractionOccurred
public final String
mPreviousWho
private final SavedStateRegistry
savedStateRegistry
-
Constructor Summary
Constructors Constructor Description PTRMapWidgetFragment()
-
Method Summary
Modifier and Type Method Description final PTRMapFragment
getMapFragment()
final Unit
setMapFragment(PTRMapFragment mapFragment)
final SearchFragment
getSearchFragment()
final Unit
setSearchFragment(SearchFragment searchFragment)
final Site
getSite()
final Building
getBuilding()
final Level
getLevel()
final SearchEventsHandler
getSearchEventsHandler()
final Unit
setSearchEventsHandler(SearchEventsHandler searchEventsHandler)
final PoiDetailsEventsHandler
getPoiDetailEventsHandler()
final Unit
setPoiDetailEventsHandler(PoiDetailsEventsHandler poiDetailEventsHandler)
final RouteSummaryEventsHandler
getRouteSummaryEventsHandler()
final Unit
setRouteSummaryEventsHandler(RouteSummaryEventsHandler routeSummaryEventsHandler)
final LevelSelectorEventsHandler
getLevelSelectorEventsHandler()
final Unit
setLevelSelectorEventsHandler(LevelSelectorEventsHandler levelSelectorEventsHandler)
final PathFindingEventsHandler
getPathFindingEventsHandler()
final Unit
setPathFindingEventsHandler(PathFindingEventsHandler pathFindingEventsHandler)
final PathUpdatesEventHandler
getPathUpdatesEventsHandler()
final Unit
setPathUpdatesEventsHandler(PathUpdatesEventHandler pathUpdatesEventsHandler)
final MapEventsHandler
getMapEventsHandler()
final Unit
setMapEventsHandler(MapEventsHandler mapEventsHandler)
final ExitButtonEventsHandler
getExitButtonEventsHandler()
final Unit
setExitButtonEventsHandler(ExitButtonEventsHandler exitButtonEventsHandler)
final LocationUpdatesEventsHandler
getLocationUpdatesEventsHandler()
final Unit
setLocationUpdatesEventsHandler(LocationUpdatesEventsHandler locationUpdatesEventsHandler)
final TrackingModeEventsHandler
getTrackingModeEventsHandler()
final Unit
setTrackingModeEventsHandler(TrackingModeEventsHandler trackingModeEventsHandler)
final ArEventsHandler
getArEventsHandler()
final Unit
setArEventsHandler(ArEventsHandler arEventsHandler)
final PTRMapTrackingModeButton
getMapTrackingModeButton()
final Unit
setMapTrackingModeButton(PTRMapTrackingModeButton mapTrackingModeButton)
final Boolean
getUserInteractionOccurred()
final Unit
setUserInteractionOccurred(Boolean userInteractionOccurred)
Unit
onCreate(Bundle savedInstanceState)
View
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
Unit
onViewCreated(View view, Bundle savedInstanceState)
Unit
onDestroyView()
Unit
onDestroy()
final Unit
showSite(Site site, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
final Unit
showSite(Integer siteInternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
final Unit
showSite(String siteExternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
final Unit
showBuilding(Building building, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
final Unit
showBuilding(Integer siteInternalIdentifier, Integer buildingInternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
final Unit
showBuilding(String siteExternalIdentifier, String buildingExternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
final Unit
showLevel(Level level, PTRMapAnimationType animationType, Boolean shouldZoomToLevel, Function1<String, Unit> onComplete)
final Unit
showLevel(Integer siteInternalIdentifier, Integer buildingInternalIdentifier, Integer levelIndex, PTRMapAnimationType animationType, Boolean shouldZoomToLevel, Function1<String, Unit> onComplete)
final Unit
showLevel(String siteExternalIdentifier, String buildingExternalIdentifier, Integer levelIndex, PTRMapAnimationType animationType, Boolean shouldZoomToLevel, Function1<String, Unit> onComplete)
final Unit
loadAndSet(Level level, Boolean shouldZoomToLevel)
When calling this method, the map widget will load the content for this level and related site, if necessary, and displays it. final Unit
loadAndSet(String siteExternalIdentifier, String buildingExternalIdentifier, Integer levelIndex, Boolean shouldZoomToLevel)
When calling this method, the map widget will load the content for this level and related site, if necessary, and displays it. final Unit
loadAndSet(Building building)
When calling this method, the map widget will load the content for this building and related site, if necessary, and displays it. final Unit
loadAndSet(String siteExternalIdentifier, String buildingExternalIdentifier)
When calling this method, the map widget will load the content for this building and related site, if necessary, and displays it. final Unit
loadAndSet(Site site)
When calling this method, the map widget will load the content for this site, if necessary, and displays it. final Unit
loadAndSet(String siteExternalIdentifier)
When calling this method, the map widget will load the content for this site, if necessary, and displays it. final Unit
addListener(PTRListener listener)
Add listener to listen map and mapWidget events. final Unit
removeListener(PTRListener listener)
Remove listener final PTRMapWidgetFragment
show(FragmentManager fragmentManager, @IdRes() Integer container)
Show PTRMapWidgetFragment final PTRMapWidgetFragment
show(FragmentManager fragmentManager, @IdRes() Integer container, Poi highlightPoi)
Show PTRMapWidgetFragment with highlighted poi final Unit
showPoiDetailsInternal(Poi poi, PTRMapAnimationType animationType, PTRPoiEventOrigin origin, Function1<String, Unit> onComplete)
final Unit
showPoiDetails(Poi poi, PTRMapAnimationType animationType, PTRPoiEventOrigin origin, Function1<String, Unit> onComplete)
Focuses and highlights the POI and shows details of it final Unit
showPoiDetails(Integer siteInternalIdentifier, String poiInternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
final Unit
showPoiDetails(Integer siteInternalIdentifier, String poiInternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete, PTRPoiEventOrigin origin)
final Unit
showPoiDetails(String siteExternalIdentifier, String poiExternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
Focuses and highlights the POI and shows details of it final Unit
showPathFinding(String siteExternalIdentifier, String poiExternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
final Unit
showPathFinding(Integer siteInternalIdentifier, String poiInternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
final Unit
showPathFinding(Site site, Poi poi, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
final Unit
showPathFinding(PathSession pathSession, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
Starts navigation with the given path session final Unit
showRouteSummary(Poi destination)
final Unit
addAnnotation(PTRMapViewMarker ptrMapViewMarker, Level level)
final Unit
addAnnotation(PTRMapViewMarker ptrMapViewMarker)
final Unit
addAnnotations(ArrayList<PTRMapViewMarker> ptrMapViewMarkerList, Level level)
final Unit
addAnnotations(ArrayList<PTRMapViewMarker> ptrMapViewMarker)
final Unit
removeAnnotation(PTRMapViewMarker ptrMapViewMarker)
final Unit
removeAllAnnotations()
final Unit
performDeepLinkAction(PTRDeepLinkAction deepLinkAction, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
final Unit
focusOnCoordinate(Integer siteInternalIdentifier, Integer buildingInternalIdentifier, Integer levelIndex, Double latitude, Double longitude, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
final Unit
showPoiCategory(Site site, PTRMapAnimationType animationType, String categoryName, Function1<String, Unit> onComplete)
final Unit
showPoiCategory(String siteExternalIdentifier, PTRMapAnimationType animationType, String categoryName, Function1<String, Unit> onComplete)
final Unit
showPoiCategory(Integer siteInternalIdentifier, PTRMapAnimationType animationType, String categoryName, Function1<String, Unit> onComplete)
final Unit
showDataLoadMessages(PtrDataLoadState ptrDataLoadState)
final Unit
setBottomMargin(Integer bottomMargin)
Arranges the bottom margins of the widget buttons. final static PTRMapWidgetFragment
newInstance(PTRMapWidgetConfiguration configuration)
-
Methods inherited from class androidx.fragment.app.Fragment
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelCreationExtras, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getParentFragmentManager, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSavedStateRegistry, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hasOptionsMenu, hashCode, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onSaveInstanceState, onStart, onViewStateRestored, postponeEnterTransition, postponeEnterTransition, registerForActivityResult, registerForActivityResult, registerForContextMenu, requestPermissions, requireActivity, requireArguments, requireContext, requireFragmentManager, requireHost, requireParentFragment, requireView, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
-
Methods inherited from class com.pointrlabs.core.map.views.helper_views.PTRFragment
getColor, hideKeyboard, onResume, onStop, showKeyboard, toast, toast
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMapFragment
final PTRMapFragment getMapFragment()
-
setMapFragment
final Unit setMapFragment(PTRMapFragment mapFragment)
-
getSearchFragment
final SearchFragment getSearchFragment()
-
setSearchFragment
final Unit setSearchFragment(SearchFragment searchFragment)
-
getBuilding
final Building getBuilding()
-
getSearchEventsHandler
final SearchEventsHandler getSearchEventsHandler()
-
setSearchEventsHandler
final Unit setSearchEventsHandler(SearchEventsHandler searchEventsHandler)
-
getPoiDetailEventsHandler
final PoiDetailsEventsHandler getPoiDetailEventsHandler()
-
setPoiDetailEventsHandler
final Unit setPoiDetailEventsHandler(PoiDetailsEventsHandler poiDetailEventsHandler)
-
getRouteSummaryEventsHandler
final RouteSummaryEventsHandler getRouteSummaryEventsHandler()
-
setRouteSummaryEventsHandler
final Unit setRouteSummaryEventsHandler(RouteSummaryEventsHandler routeSummaryEventsHandler)
-
getLevelSelectorEventsHandler
final LevelSelectorEventsHandler getLevelSelectorEventsHandler()
-
setLevelSelectorEventsHandler
final Unit setLevelSelectorEventsHandler(LevelSelectorEventsHandler levelSelectorEventsHandler)
-
getPathFindingEventsHandler
final PathFindingEventsHandler getPathFindingEventsHandler()
-
setPathFindingEventsHandler
final Unit setPathFindingEventsHandler(PathFindingEventsHandler pathFindingEventsHandler)
-
getPathUpdatesEventsHandler
final PathUpdatesEventHandler getPathUpdatesEventsHandler()
-
setPathUpdatesEventsHandler
final Unit setPathUpdatesEventsHandler(PathUpdatesEventHandler pathUpdatesEventsHandler)
-
getMapEventsHandler
final MapEventsHandler getMapEventsHandler()
-
setMapEventsHandler
final Unit setMapEventsHandler(MapEventsHandler mapEventsHandler)
-
getExitButtonEventsHandler
final ExitButtonEventsHandler getExitButtonEventsHandler()
-
setExitButtonEventsHandler
final Unit setExitButtonEventsHandler(ExitButtonEventsHandler exitButtonEventsHandler)
-
getLocationUpdatesEventsHandler
final LocationUpdatesEventsHandler getLocationUpdatesEventsHandler()
-
setLocationUpdatesEventsHandler
final Unit setLocationUpdatesEventsHandler(LocationUpdatesEventsHandler locationUpdatesEventsHandler)
-
getTrackingModeEventsHandler
final TrackingModeEventsHandler getTrackingModeEventsHandler()
-
setTrackingModeEventsHandler
final Unit setTrackingModeEventsHandler(TrackingModeEventsHandler trackingModeEventsHandler)
-
getArEventsHandler
final ArEventsHandler getArEventsHandler()
-
setArEventsHandler
final Unit setArEventsHandler(ArEventsHandler arEventsHandler)
-
getMapTrackingModeButton
final PTRMapTrackingModeButton getMapTrackingModeButton()
-
setMapTrackingModeButton
final Unit setMapTrackingModeButton(PTRMapTrackingModeButton mapTrackingModeButton)
-
getUserInteractionOccurred
final Boolean getUserInteractionOccurred()
-
setUserInteractionOccurred
final Unit setUserInteractionOccurred(Boolean userInteractionOccurred)
-
onCreateView
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-
onViewCreated
Unit onViewCreated(View view, Bundle savedInstanceState)
-
onDestroyView
Unit onDestroyView()
-
showSite
final Unit showSite(Site site, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
-
showSite
final Unit showSite(Integer siteInternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
-
showSite
final Unit showSite(String siteExternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
-
showBuilding
final Unit showBuilding(Building building, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
-
showBuilding
final Unit showBuilding(Integer siteInternalIdentifier, Integer buildingInternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
-
showBuilding
final Unit showBuilding(String siteExternalIdentifier, String buildingExternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
-
showLevel
final Unit showLevel(Level level, PTRMapAnimationType animationType, Boolean shouldZoomToLevel, Function1<String, Unit> onComplete)
-
showLevel
final Unit showLevel(Integer siteInternalIdentifier, Integer buildingInternalIdentifier, Integer levelIndex, PTRMapAnimationType animationType, Boolean shouldZoomToLevel, Function1<String, Unit> onComplete)
-
showLevel
final Unit showLevel(String siteExternalIdentifier, String buildingExternalIdentifier, Integer levelIndex, PTRMapAnimationType animationType, Boolean shouldZoomToLevel, Function1<String, Unit> onComplete)
-
loadAndSet
@Deprecated(message = "This method is going to be removed at version 9. `show` method is going to replace the functionality.", level = DeprecationLevel.WARNING, replaceWith = @ReplaceWith(imports = {}, expression = "show(level, shouldZoomToLevel)")) final Unit loadAndSet(Level level, Boolean shouldZoomToLevel)
When calling this method, the map widget will load the content for this level and related site, if necessary, and displays it.
- Parameters:
level
- to be displayedshouldZoomToLevel
- set true to zoom to the map
-
loadAndSet
@Deprecated(message = "This method is going to be removed at version 9. `show` method is going to replace the functionality.", level = DeprecationLevel.WARNING, replaceWith = @ReplaceWith(imports = {}, expression = "show(siteExternalIdentifier, buildingExternalIdentifier, levelIndex, shouldZoomToLevel)")) final Unit loadAndSet(String siteExternalIdentifier, String buildingExternalIdentifier, Integer levelIndex, Boolean shouldZoomToLevel)
When calling this method, the map widget will load the content for this level and related site, if necessary, and displays it.
- Parameters:
siteExternalIdentifier
- site external identifier for site inside which building is presentbuildingExternalIdentifier
- building external identifier for building to be displayedlevelIndex
- for level to be displayedshouldZoomToLevel
- set true to zoom to the map
-
loadAndSet
@Deprecated(message = "This method is going to be removed at version 9. `show` method is going to replace the functionality.", level = DeprecationLevel.WARNING, replaceWith = @ReplaceWith(imports = {}, expression = "show(building = building)")) final Unit loadAndSet(Building building)
When calling this method, the map widget will load the content for this building and related site, if necessary, and displays it. By default it displays the first level of the given building.
- Parameters:
building
- to be displayed
-
loadAndSet
@Deprecated(message = "This method is going to be removed at version 9. `show` method is going to replace the functionality.", level = DeprecationLevel.WARNING, replaceWith = @ReplaceWith(imports = {}, expression = "show(siteExternalIdentifier, buildingExternalIdentifier)")) final Unit loadAndSet(String siteExternalIdentifier, String buildingExternalIdentifier)
When calling this method, the map widget will load the content for this building and related site, if necessary, and displays it. By default it displays the first level of the given building.
- Parameters:
siteExternalIdentifier
- site external identifier inside which building is presentbuildingExternalIdentifier
- building external identifier to be displayed
-
loadAndSet
@Deprecated(message = "This method is going to be removed at version 9. `show` method is going to replace the functionality.", level = DeprecationLevel.WARNING, replaceWith = @ReplaceWith(imports = {}, expression = "show(site = site)")) final Unit loadAndSet(Site site)
When calling this method, the map widget will load the content for this site, if necessary, and displays it. By default it displays the first level of the first building of the given site.
- Parameters:
site
- to be displayed
-
loadAndSet
@Deprecated(message = "This method is going to be removed at version 9. `show` method is going to replace the functionality.", level = DeprecationLevel.WARNING, replaceWith = @ReplaceWith(imports = {}, expression = "show(siteExternalIdentifier)")) final Unit loadAndSet(String siteExternalIdentifier)
When calling this method, the map widget will load the content for this site, if necessary, and displays it. By default it displays the first level of the first building of the given site.
- Parameters:
siteExternalIdentifier
- site external identifier for site to be displayed
-
addListener
final Unit addListener(PTRListener listener)
Add listener to listen map and mapWidget events.
-
removeListener
final Unit removeListener(PTRListener listener)
Remove listener
- Parameters:
listener
- that was added with addListener method
-
show
final PTRMapWidgetFragment show(FragmentManager fragmentManager, @IdRes() Integer container)
Show PTRMapWidgetFragment
- Parameters:
fragmentManager
- To handle fragment transactioncontainer
- Layout to which PTRMapWidgetFragment will be put- Returns:
PTRMapWidgetFragment instance
-
show
final PTRMapWidgetFragment show(FragmentManager fragmentManager, @IdRes() Integer container, Poi highlightPoi)
Show PTRMapWidgetFragment with highlighted poi
- Parameters:
fragmentManager
- To handle fragment transactioncontainer
- Layout to which PTRMapWidgetFragment will be puthighlightPoi
- Poi to be highlighted- Returns:
PTRMapWidgetFragment instance
-
showPoiDetailsInternal
@UiThread() final Unit showPoiDetailsInternal(Poi poi, PTRMapAnimationType animationType, PTRPoiEventOrigin origin, Function1<String, Unit> onComplete)
-
showPoiDetails
final Unit showPoiDetails(Poi poi, PTRMapAnimationType animationType, PTRPoiEventOrigin origin, Function1<String, Unit> onComplete)
Focuses and highlights the POI and shows details of it
-
showPoiDetails
final Unit showPoiDetails(Integer siteInternalIdentifier, String poiInternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
-
showPoiDetails
final Unit showPoiDetails(Integer siteInternalIdentifier, String poiInternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete, PTRPoiEventOrigin origin)
-
showPoiDetails
final Unit showPoiDetails(String siteExternalIdentifier, String poiExternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
Focuses and highlights the POI and shows details of it
- Parameters:
siteExternalIdentifier
- site external identifier that poi residespoiExternalIdentifier
- poi external identifier (eid)
-
showPathFinding
final Unit showPathFinding(String siteExternalIdentifier, String poiExternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
-
showPathFinding
final Unit showPathFinding(Integer siteInternalIdentifier, String poiInternalIdentifier, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
-
showPathFinding
final Unit showPathFinding(Site site, Poi poi, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
-
showPathFinding
final Unit showPathFinding(PathSession pathSession, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
Starts navigation with the given path session
-
showRouteSummary
final Unit showRouteSummary(Poi destination)
-
addAnnotation
final Unit addAnnotation(PTRMapViewMarker ptrMapViewMarker, Level level)
-
addAnnotation
final Unit addAnnotation(PTRMapViewMarker ptrMapViewMarker)
-
addAnnotations
final Unit addAnnotations(ArrayList<PTRMapViewMarker> ptrMapViewMarkerList, Level level)
-
addAnnotations
final Unit addAnnotations(ArrayList<PTRMapViewMarker> ptrMapViewMarker)
-
removeAnnotation
final Unit removeAnnotation(PTRMapViewMarker ptrMapViewMarker)
-
removeAllAnnotations
final Unit removeAllAnnotations()
-
performDeepLinkAction
final Unit performDeepLinkAction(PTRDeepLinkAction deepLinkAction, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
-
focusOnCoordinate
final Unit focusOnCoordinate(Integer siteInternalIdentifier, Integer buildingInternalIdentifier, Integer levelIndex, Double latitude, Double longitude, PTRMapAnimationType animationType, Function1<String, Unit> onComplete)
-
showPoiCategory
final Unit showPoiCategory(Site site, PTRMapAnimationType animationType, String categoryName, Function1<String, Unit> onComplete)
-
showPoiCategory
final Unit showPoiCategory(String siteExternalIdentifier, PTRMapAnimationType animationType, String categoryName, Function1<String, Unit> onComplete)
-
showPoiCategory
final Unit showPoiCategory(Integer siteInternalIdentifier, PTRMapAnimationType animationType, String categoryName, Function1<String, Unit> onComplete)
-
showDataLoadMessages
final Unit showDataLoadMessages(PtrDataLoadState ptrDataLoadState)
-
setBottomMargin
final Unit setBottomMargin(Integer bottomMargin)
Arranges the bottom margins of the widget buttons. This is handled automatically within the SDK for different UI states, i.e. pathfinding, default search view, default view without search etc.
- Parameters:
bottomMargin
- the margin bottom for the widget buttons in dp.
-
newInstance
final static PTRMapWidgetFragment newInstance(PTRMapWidgetConfiguration configuration)
-
-
-
-