Livemap
Livemap
Type: public
class
This class represents a Livemap and allows the developer to interact with it.
centerTo(@NonNull Coordinates coordinates, double zoom)
Type: public
void
Center the map on the given position and set the zoom.
Parameter Name | Type | Description |
---|---|---|
coordinates | @NonNull | coordinates |
zoom | double | new zoom level |
openEvent(int eventId)
Type: public
void
Open an event on the map. This can only be used for maps which use events.
Parameter Name | Type | Description |
---|---|---|
eventId | int | eid Event ID |
openPinpoint(int pinpointId)
Type: public
void
Open a pinpoint on the map.
Parameter Name | Type | Description |
---|---|---|
pinpointId | int | id of the pinpoint to open |
closeEvent()
Type: public
void
Close the current opened event. Go to the search view.
closePinpoint()
Type: public
void
Close the current opened pinpoint. Go to the search view.
openList(int listId)
Type: public
void
Open a list on the map.
Parameter Name | Type | Description |
---|---|---|
listId | int | the list id |
closeList()
Type: public
void
Close the current opened list. Go to the search view.
closePopin()
Type: public
void
Close the current opened popin.
setFilters(@NonNull Filters filters)
Type: public
void
Update search filters (dates, tags, text).
Parameter Name | Type | Description |
---|---|---|
filters | @NonNull | filters to set |
navigateToPinpoint(int pinpointId)
Type: public
void
Start navigation to a pinpoint. The navigation will start with the user location.
Parameter Name | Type | Description |
---|---|---|
pinpointId | int | id of the destination pinpoint. |
navigateToPinpoint(int pinpointId, @NonNull Coordinates startLocation, int startHeading)
Type: @Deprecated
public
void
Start navigation to a pinpoint. Can be an absolute navigation (start location based on phone sensors) or a relative navigation (given start location & heading). If start location and initialHeading are not provided, the navigation will start with the user location.
Parameter Name | Type | Description |
---|---|---|
pinpointId | int | id of the destination pinpoint. |
startLocation | @NonNull | For relative navigation only. Navigation start location |
startHeading | int | For relative navigation only. Navigation start heading (in degrees). |
stopNavigation()
Type: public
void
Stop the currently running navigation.
signInByToken(@NonNull String accessToken)
Type: public
void
Sign in to UFE with wemap JWT token.
Parameter Name | Type | Description |
---|---|---|
accessToken | @NonNull | the JWT access token. |
enableSidebar()
Type: public
void
Activate the bar with several rows of content (of events, pinpoints, list, etc).
disableSidebar()
Type: public
void
Deactivate the bar with several rows of content (of events, pinpoints, list, etc).
signOut()
Type: public
void
Sign out the current user.
setSourceLists(@NonNull List <Integer > sourceLists)
Type: public
void
Define one or more lists to be displayed on the map in addition of the current pinpoints of the map.
Parameter Name | Type | Description |
---|---|---|
sourceLists | @NonNull | The id of the lists |
setPinpoints(@NonNull List <Pinpoint > pinpoints)
Type: public
void
Populates the map with given pinpoints.
Parameter Name | Type | Description |
---|---|---|
pinpoints | @NonNull | Pinpoints to populate the map. |
setPinpoints(@NonNull List <Pinpoint > pinpoints, @Nullable SetPinpointsCallback callback)
Type: public
void
Populates the map with given pinpoints.
Parameter Name | Type | Description |
---|---|---|
pinpoints | @NonNull | Pinpoints to populate the map. |
callback | @Nullable | the callback |
setPinpoints(@NonNull List <Pinpoint > pinpoints, String type)
Type: public
void
Populates the map with given pinpoints.
Parameter Name | Type | Description |
---|---|---|
pinpoints | @NonNull | Pinpoints to populate the map. |
type | String | the type of how the map is populated (replace or add) |
setPinpoints(@NonNull List <Pinpoint > pinpoints, @NonNull String type, @Nullable SetPinpointsCallback callback)
Type: public
void
Populates the map with given pinpoints.
Parameter Name | Type | Description |
---|---|---|
pinpoints | @NonNull | Pinpoints to populate the map. |
type | @NonNull | the type of how the map is populated (replace or add) |
callback | @Nullable | the callback |
setEvents(@NonNull List <Event > events)
Type: public
void
Populates the map with given events.
Parameter Name | Type | Description |
---|---|---|
events | @NonNull | Events to populate the map. |
setEvents(@NonNull List <Event > events, @Nullable SetEventsCallback callback)
Type: public
void
Populates the map with given events.
Parameter Name | Type | Description |
---|---|---|
events | @NonNull | Events to populate the map. |
callback | @Nullable | the callback |
aroundMe()
Type: public
void
Center the map on the user's location.
enableAnalytics()
Type: public
void
Enable analytics tracking
disableAnalytics()
Type: public
void
Disable analytics tracking
addPinpointOpenListener(@NonNull PinpointOpenListener listener)
Type: public
void
Register a listener for the event onPinpointOpen.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removePinpointOpenListener(@NonNull PinpointOpenListener listener)
Type: public
void
Remove a listener for the event onPinpointOpen.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove |
addPinpointCloseListener(@NonNull PinpointCloseListener listener)
Type: public
void
Register a listener for the event onPinpointClose.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removePinpointCloseListener(@NonNull PinpointCloseListener listener)
Type: public
void
Remove a listener for the event onPinpointClose.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove |
addMultipointOpenListener(@NonNull MultipointOpenListener listener)
Type: public
void
Register a listener for the event onMultipointOpen.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeMultipointOpenListener(@NonNull MultipointOpenListener listener)
Type: public
void
Remove a listener for the event onMultipointOpen.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove |
addMultipointCloseListener(@NonNull MultipointCloseListener listener)
Type: public
void
Register a listener for the event onMultipointClose.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeMultipointCloseListener(@NonNull MultipointCloseListener listener)
Type: public
void
Remove a listener for the event onMultipointClose.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove |
addEventOpenListener(@NonNull EventOpenListener listener)
Type: public
void
Register a listener for the event onEventOpen.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeEventOpenListener(@NonNull EventOpenListener listener)
Type: public
void
Remove a listener for the event onEventOpen.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove |
addEventCloseListener(@NonNull EventCloseListener listener)
Type: public
void
Register a listener for the event onEventClose.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeEventCloseListener(@NonNull EventCloseListener listener)
Type: public
void
Remove a listener for the event onEventClose.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove |
addGuidingStartedListener(@NonNull GuidingStartedListener listener)
Type: public
void
Register a listener for the event onGuidingStarted.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeGuidingStartedListener(@NonNull GuidingStartedListener listener)
Type: public
void
Remove a listener for the event onGuidingStarted.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove |
addGuidingUpdatedListener(@NonNull GuidingUpdatedListener listener)
Type: public
void
Register a listener for the event onGuidingUpdated.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeGuidingUpdatedListener(@NonNull GuidingUpdatedListener listener)
Type: public
void
Remove a listener for the event onGuidingUpdated.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove |
addGuidingStoppedListener(@NonNull GuidingStoppedListener listener)
Type: public
void
Register a listener for the event onGuidingStopped.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeGuidingStoppedListener(@NonNull GuidingStoppedListener listener)
Type: public
void
Remove a listener for the event onGuidingStopped.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove |
addUserLoginListener(@NonNull UserLoginListener listener)
Type: public
void
Register a listener for the event onUserLogin.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeUserLoginListener(@NonNull UserLoginListener listener)
Type: public
void
Remove a listener for the event onUserLogin.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addUserLogoutListener(@NonNull UserLogoutListener listener)
Type: public
void
Register a listener for the event onUserLogout.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeUserLogoutListener(@NonNull UserLogoutListener listener)
Type: public
void
Remove a listener for the event onUserLogout.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addInaccurateMagnetometerListener(@NonNull InaccurateMagnetometerListener listener)
Type: public
void
Register a listener for the event onInaccurateMagnetometer.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeInaccurateMagnetometerListener(@NonNull InaccurateMagnetometerListener listener)
Type: public
void
Remove a listener for the event onInaccurateMagnetometer.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addMapClickListener(@NonNull MapClickListener listener)
Type: public
void
Register a listener for the event mapClick.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeMapClickListener(@NonNull MapClickListener listener)
Type: public
void
Remove a listener for the event mapClick.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addMapLongClickListener(@NonNull MapLongClickListener listener)
Type: public
void
Register a listener for the event mapLongCLick.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeMapLongListener(@NonNull MapLongClickListener listener)
Type: public
void
Remove a listener for the event mapLongCLick.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addMapMovedListener(@NonNull MapMovedListener listener)
Type: public
void
Register a listener for the event mapMoved.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeMapMovedListener(@NonNull MapMovedListener listener)
Type: public
void
Remove a listener for the event mapMoved.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addActionButtonClickedListener(@NonNull ActionButtonClickListener listener)
Type: public
void
Register a listener for the events of action buttons.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeActionButtonClickedListener(@NonNull ActionButtonClickListener listener)
Type: public
void
Remove a listener for the events of action buttons.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addContentUpdatedListener(@NonNull ContentUpdatedListener listener)
Type: public
void
Register a listener for the events of contents updated.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeContentUpdatedListener(@NonNull ContentUpdatedListener listener)
Type: public
void
Remove a listener for the events of contents updated.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addFullscreenEnterListener(@NonNull FullscreenEnterListener listener)
Type: public
void
Register a listener for the fullscreen enter events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeFullscreenEnterListener(@NonNull FullscreenEnterListener listener)
Type: public
void
Remove a listener for the the fullscreen enter events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addFullscreenExitListener(@NonNull FullscreenExitListener listener)
Type: public
void
Register a listener for the fullscreen exit events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeFullscreenExitListener(@NonNull FullscreenExitListener listener)
Type: public
void
Remove a listener for the the fullscreen exit events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addListOpenListener(@NonNull ListOpenListener listener)
Type: public
void
Register a listener for the list open events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeListOpenListener(@NonNull ListOpenListener listener)
Type: public
void
Remove a listener for the the list open events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addListCloseListener(@NonNull ListCloseListener listener)
Type: public
void
Register a listener for the list close events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeListCloseListener(@NonNull ListCloseListener listener)
Type: public
void
Remove a listener for the the list close events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addDeviceAttitudeUpdatedListener(@NonNull DeviceAttitudeUpdatedListener listener)
Type: public
void
Register a listener for the device attitude update events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeDeviceAttitudeUpdatedListener(@NonNull DeviceAttitudeUpdatedListener listener)
Type: public
void
Remove a listener for the device attitude update events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addUserLocationUpdatedListener(@NonNull UserLocationUpdatedListener listener)
Type: public
void
Register a listener for the user location update events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeUserLocationUpdatedListener(@NonNull UserLocationUpdatedListener listener)
Type: public
void
Remove a listener for the user location update events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addPermissionsDeniedListener(@NonNull PermissionsDeniedListener listener)
Type: public
void
Register a listener for the permissions denied events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removePermissionsDeniedListener(@NonNull PermissionsDeniedListener listener)
Type: public
void
Remove a listener for the permissions denied events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addIndoorLevelChangedListener(@NonNull IndoorLevelChangedListener listener)
Type: public
void
Register a listener for the indoor level changed events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeIndoorLevelChangedListener(@NonNull IndoorLevelChangedListener listener)
Type: public
void
Remove a listener for the indoor level changed events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addIndoorLevelsChangedListener(@NonNull IndoorLevelsChangedListener listener)
Type: public
void
Register a listener for the indoor levels changed events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeIndoorLevelsChangedListener(@NonNull IndoorLevelsChangedListener listener)
Type: public
void
Remove a listener for the indoor levels changed events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
addIndoorFeatureClickListener(@NonNull IndoorFeatureClickListener listener)
Type: public
void
Register a listener for the indoor feature click events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to register. |
removeIndoorFeatureClickListener(@NonNull IndoorFeatureClickListener listener)
Type: public
void
Remove a listener for the indoor feature click events.
Parameter Name | Type | Description |
---|---|---|
listener | @NonNull | the listener to remove. |
drawPolyline(@NonNull List <Coordinates > coordinates, @Nullable PolylineOptions options, @Nullable DrawPolylineCallback callback)
Type: public
void
Draw a polyline.
Parameter Name | Type | Description |
---|---|---|
coordinates | @NonNull | coordinates of the polyline |
options | @Nullable | the polyline options |
callback | @Nullable | the callback of polyline creation |
drawPolyline(@NonNull List <Coordinates > coordinates, @Nullable PolylineOptions options)
Type: public
void
Draw a polyline.
Parameter Name | Type | Description |
---|---|---|
coordinates | @NonNull | coordinates of the polyline |
options | @Nullable | the polyline options |
drawPolyline(@NonNull List <Coordinates > coordinates)
Type: public
void
Draw a polyline.
Parameter Name | Type | Description |
---|---|---|
coordinates | @NonNull | coordinates of the polyline |
removePolyline(@NonNull String polylineId)
Type: public
void
Remove a previously drawn polyline
Parameter Name | Type | Description |
---|---|---|
polylineId | @NonNull | the polyline id sent by the PolylineDrawCallback during the creation |
addMarker(@NonNull Marker marker, @Nullable AddMarkerCallback callback)
Type: public
void
Add marker to the map.
Parameter Name | Type | Description |
---|---|---|
marker | @NonNull | the marker to add |
callback | @Nullable | the callback of marker creation |
addMarker(@NonNull Marker marker)
Type: public
void
Add marker to the map.
Parameter Name | Type | Description |
---|---|---|
marker | @NonNull | the marker to add |
removeMarker(@NonNull String markerId)
Type: public
void
Remove a previously drawn marker
Parameter Name | Type | Description |
---|---|---|
markerId | @NonNull | the marker id sent by the AddMarkerCallback during the creation |
findNearestPinpoints(@NonNull Coordinates center, @NonNull FindNearestPinpointsCallback callback)
Type: public
void
Find the nearest pinpoints from a point.
Parameter Name | Type | Description |
---|---|---|
center | @NonNull | center for the search. |
callback | @NonNull | the callback |
getCenter(@NonNull GetCenterCallback callback)
Type: public
void
Return the map's geographical center.
Parameter Name | Type | Description |
---|---|---|
callback | @NonNull | the map center |
getZoom(@NonNull GetZoomCallback callback)
Type: public
void
Return the map's zoom level.
Parameter Name | Type | Description |
---|---|---|
callback | @NonNull | the map's zoom level |
setCenter(@NonNull Coordinates center)
Type: public
void
Set the map's geographical center.
Parameter Name | Type | Description |
---|---|---|
center | @NonNull | the new map's center |
setZoom(float zoomLevel)
Type: public
void
Set the map's zoom level.
Parameter Name | Type | Description |
---|---|---|
zoomLevel | float | the new map's zoom level |
setBearing(float bearing)
Type: public
void
Set the map's bearing. Note: default duration is 500ms
Parameter Name | Type | Description |
---|---|---|
bearing | float | the new map's bearing (in degrees) |
setBearing(float bearing, float duration)
Type: public
void
Set the map's bearing.
Parameter Name | Type | Description |
---|---|---|
bearing | float | the new map's bearing (in degrees) |
duration | float | duration of animation in ms |
fitBounds(@NonNull BoundingBox boundingBox, @Nullable FitBoundsOptions options)
Type: public
void
Fit the map on given bounds.
Parameter Name | Type | Description |
---|---|---|
boundingBox | @NonNull | Coordinates bounds to fit on. |
options | @Nullable | Options for the action. |
fitBounds(@NonNull BoundingBox boundingBox)
Type: public
void
Fit the map on given bounds.
Parameter Name | Type | Description |
---|---|---|
boundingBox | @NonNull | Coordinates bounds to fit on. |
disablePositioningSystem()
Type: public
void
Disable the internal positioning system (user location and attitude). Please use setUserLocation and setDeviceAttitude to provide a position and an attitude to the livemap. This information will enable (1) the use of the blue dot on the map and (2) the use of Geo Augmented Reality
getUserLocation(@NonNull GetUserLocationCallback callback)
Type: public
void
Return user location.
Parameter Name | Type | Description |
---|---|---|
callback | @NonNull | the user location |
setUserLocation(@NonNull UserLocation userLocation)
Type: public
void
Set the user location.
Parameter Name | Type | Description |
---|---|---|
userLocation | @NonNull | the user location |
getDeviceAttitude(@NonNull GetDeviceAttitudeCallback callback)
Type: public
void
Return the device attitude in ENU coordinates system.
Parameter Name | Type | Description |
---|---|---|
callback | @NonNull | the user location |
setDeviceAttitude(@NonNull Attitude attitude)
Type: public
void
Set the device attitude in ENU coordinates system.
Parameter Name | Type | Description |
---|---|---|
attitude | @NonNull | the device attitude in ENU coordinates system |
highlightPinpoints(int[] pinpointsId)
Type: public
void
Highlight pinpoints on the map
Parameter Name | Type | Description |
---|---|---|
pinpointsId | int[] | Pinpoints to highlight the map. |
setIndoorLevel(float level)
Type: public
void
Set the current indoor level
Parameter Name | Type | Description |
---|---|---|
level | float | the level to target |
getIndoorLevel(@NonNull GetIndoorLevelCallback callback)
Type: public
void
Get the current indoor level
Parameter Name | Type | Description |
---|---|---|
callback | @NonNull | the current indoor level |
getIndoorLevels(@NonNull GetIndoorLevelsCallback callback)
Type: public
void
Get the list of building levels
Parameter Name | Type | Description |
---|---|---|
callback | @NonNull | the list of building levels |
setIndoorFeatureState(int id, @NonNull IndoorFeatureState state)
Type: public
void
Set the indoor feature state
Parameter Name | Type | Description |
---|---|---|
id | int | the id of the indoor feature |
state | @NonNull | the new state of the indoor feature |
easeTo(@NonNull EaseToOptions options)
Type: public
void
Ease the camera to the target location
Parameter Name | Type | Description |
---|---|---|
options | @NonNull | ease options |
forceARViewMode(ARMode mode)
Type: public
void
force the AR mode to 'ON', 'OFF' or default 'AUTO'
Parameter Name | Type | Description |
---|---|---|
mode | ARMode | the new mode of AR |