Livemap

Livemap

Type: public class

This class represents a Livemap and allows the developer to interact with it.

centerTo(LatLngAlt latLngAlt, double zoom)

Type: public void

Center the map on the given position and set the zoom.

Parameter NameTypeDescription
latLngAltLatLngAltcoordinates
zoomdoublenew 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 NameTypeDescription
eventIdinteid Event ID

openPinpoint(int pinpointId)

Type: public void

Open a pinpoint on the map.

Parameter NameTypeDescription
pinpointIdintid 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.

setFilters(Filters filters)

Type: public void

Update search filters (dates, tags, text).

Parameter NameTypeDescription
filtersFiltersfilters to set

navigateToPinpoint(int pinpointId)

Type: public void

Start navigation to a pinpoint. The navigation will start with the user location.

Parameter NameTypeDescription
pinpointIdintid of the destination pinpoint.

navigateToPinpoint(int pinpointId, LatLngAlt 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 NameTypeDescription
pinpointIdintid of the destination pinpoint.
startLocationLatLngAltFor relative navigation only. Navigation start location
startHeadingintFor relative navigation only. Navigation start heading (in degrees).

stopNavigation()

Type: public void

Stop the currently running navigation.

signInByToken(String accessToken, String refreshToken)

Type: public void

Sign in to UFE with wemap JWT token.

Parameter NameTypeDescription
accessTokenStringthe JWT access token.
refreshTokenStringthe JWT refresh token.

addPinpointOpenListener(PinpointOpenListener listener)

Type: public void

Register a listener for the event onPinPointOpen.

Parameter NameTypeDescription
listenerPinpointOpenListenerthe listener to register.

removePinpointOpenListener(PinpointOpenListener listener)

Type: public void

Remove a listener for the event onPinPointOpen.

Parameter NameTypeDescription
listenerPinpointOpenListenerthe listener to remove

addPinpointCloseListener(PinpointCloseListener listener)

Type: public void

Register a listener for the event onPinpointClose.

Parameter NameTypeDescription
listenerPinpointCloseListenerthe listener to register.

removePinpointCloseListener(PinpointCloseListener listener)

Type: public void

Remove a listener for the event onPinpointOpen.

Parameter NameTypeDescription
listenerPinpointCloseListenerthe listener to remove

addEventOpenListener(EventOpenListener listener)

Type: public void

Register a listener for the event onEventOpen.

Parameter NameTypeDescription
listenerEventOpenListenerthe listener to register.

removeEventOpenListener(EventOpenListener listener)

Type: public void

Remove a listener for the event onEventOpen.

Parameter NameTypeDescription
listenerEventOpenListenerthe listener to remove

addEventCloseListener(EventCloseListener listener)

Type: public void

Register a listener for the event onEventClose.

Parameter NameTypeDescription
listenerEventCloseListenerthe listener to register.

removeEventCloseListener(EventCloseListener listener)

Type: public void

Remove a listener for the event onEventClose.

Parameter NameTypeDescription
listenerEventCloseListenerthe listener to remove

addGuidingStartedListener(GuidingStartedListener listener)

Type: public void

Register a listener for the event onGuidingStarted.

Parameter NameTypeDescription
listenerGuidingStartedListenerthe listener to register.

removeGuidingStartedListener(GuidingStartedListener listener)

Type: public void

Remove a listener for the event onGuidingStarted.

Parameter NameTypeDescription
listenerGuidingStartedListenerthe listener to remove

addGuidingStoppedListener(GuidingStoppedListener listener)

Type: public void

Register a listener for the event onGuidingStopped.

Parameter NameTypeDescription
listenerGuidingStoppedListenerthe listener to register.

removeGuidingStoppedListener(GuidingStoppedListener listener)

Type: public void

Remove a listener for the event onGuidingStopped.

Parameter NameTypeDescription
listenerGuidingStoppedListenerthe listener to remove

addUserLoginListener(UserLoginListener listener)

Type: public void

Register a listener for the event onUserLogin.

Parameter NameTypeDescription
listenerUserLoginListenerthe listener to register.

removeUserLoginListener(UserLoginListener listener)

Type: public void

Remove a listener for the event onUserLogin.

Parameter NameTypeDescription
listenerUserLoginListenerthe listener to remove.

addUserLogoutListener(UserLogoutListener listener)

Type: public void

Register a listener for the event onUserLogout.

Parameter NameTypeDescription
listenerUserLogoutListenerthe listener to register.

removeUserLogoutListener(UserLogoutListener listener)

Type: public void

Remove a listener for the event onUserLogout.

Parameter NameTypeDescription
listenerUserLogoutListenerthe listener to remove.