public class BEMapFragment
extends FrameLayout
In addition to this, BEView supports many standard user interactions for changing the position and zoom level of the map. In particular, map views support swipe and pinch gestures for scrolling around the map and zooming in and out. BEMapFragment also provides a floor switch button that enables the functionality to switch between floors.
Constructor and Description |
---|
BEMapFragment(Context context) |
BEMapFragment(Context context,
AttributeSet attrs) |
BEMapFragment(Context context,
AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
void |
clearPoint() |
void |
disableVoiceAssistance()
This method disable voice assistance during the navigation
By default Voice assistance is enabled.
|
void |
enableVoiceAssistance()
This method enables voice assistance during the navigation
By default Voice assistance is enabled.
|
void |
endPreview()
This method will end the route preview and clear the current route
|
void |
exitNavigation() |
void |
getMapAsync(Activity activity,
OnMapReadyCallback mapReadyCallback) |
java.util.List<BEPoint> |
getPoints() |
java.util.List<BERouteFloor> |
getRoute(BEPoint source,
BEPoint destination) |
boolean |
isMapLoaded()
Return the current status of the map view.
|
void |
navigate() |
void |
onCurrentLocationClick()
This method will be triggered when current location button clicked
|
void |
onDestroy() |
void |
onFloorSelected(BEFloor currentFloor)
This method will be triggered when a floor selected
|
void |
onNavigationExit() |
void |
onNextButtonClick() |
void |
onPreviousButtonClick() |
void |
selectPoint(BEPoint point)
Select a point on BEMapFragment
|
void |
setOnCurrentLocationChangeListener(OnCurrentLocationChangeListener onCurrentLocationChangeListener) |
void |
setOnNavigationListener(OnNavigationListener onNavigationListener) |
void |
setOnPointClickListener(OnPointClickListener onPointClickListener) |
void |
setOnReRouteClickListener(OnReRouteClickListener onReRouteClickListener) |
void |
setSite(BESite site)
This method sets the site for the BEMapFragment.
|
void |
showRouteOnFloor(int floorId) |
public BEMapFragment(Context context)
public BEMapFragment(Context context, AttributeSet attrs)
public BEMapFragment(Context context, AttributeSet attrs, int defStyleAttr)
public void setOnNavigationListener(OnNavigationListener onNavigationListener)
public void setOnCurrentLocationChangeListener(OnCurrentLocationChangeListener onCurrentLocationChangeListener)
public void setOnPointClickListener(OnPointClickListener onPointClickListener)
public void setOnReRouteClickListener(OnReRouteClickListener onReRouteClickListener)
public void selectPoint(BEPoint point)
point
- BEPointpublic void getMapAsync(Activity activity, OnMapReadyCallback mapReadyCallback)
public void setSite(BESite site)
BEErrorCode
site
- BESitepublic boolean isMapLoaded()
public java.util.List<BEPoint> getPoints() throws SiteNotSetException
SiteNotSetException
- raise exception if sites not setpublic void onFloorSelected(BEFloor currentFloor)
currentFloor
- BEFloorpublic void clearPoint()
public java.util.List<BERouteFloor> getRoute(BEPoint source, BEPoint destination) throws InvalidRouteRequestException
InvalidRouteRequestException
public void showRouteOnFloor(int floorId)
public void endPreview()
public void navigate() throws BeaconNotFoundException
BeaconNotFoundException
public void exitNavigation()
public void enableVoiceAssistance()
public void disableVoiceAssistance()
public void onCurrentLocationClick()
public void onNavigationExit()
public void onNextButtonClick()
public void onPreviousButtonClick()
public void onDestroy()