-
- All Implemented Interfaces:
public final class Popup
This is the popup class in the MapView SDK. When you want to show custom popup in your application, create an instance of this class while the annotationWasTapped notification is happening. Prerequisites: The instance of this class need be created in Popup annotationWasTapped(Annotation annotation) notification
-
-
Field Summary
Fields Modifier and Type Field Description private Integer
offsetX
private Integer
offsetY
private Annotation
annotation
-
Method Summary
Modifier and Type Method Description final Integer
getOffsetX()
final Unit
setOffsetX(Integer offsetX)
final Integer
getOffsetY()
final Unit
setOffsetY(Integer offsetY)
final Annotation
getAnnotation()
final Unit
setAnnotation(Annotation annotation)
final Unit
show(IntArray screenLoc)
The function is used to show the popup final Unit
update(IntArray screenLoc)
The function is used to update the position of the popup final Unit
dismiss()
The function is used to dismiss the popup final Unit
setScreenLocked(Boolean screenLocked)
The function is used to lock the popup not beyond the bound of screen. final Unit
setVisibility(Integer visibility)
The function is used to specify the visibility of popup. -
-
Method Detail
-
getOffsetX
final Integer getOffsetX()
-
setOffsetX
final Unit setOffsetX(Integer offsetX)
-
getOffsetY
final Integer getOffsetY()
-
setOffsetY
final Unit setOffsetY(Integer offsetY)
-
getAnnotation
final Annotation getAnnotation()
-
setAnnotation
final Unit setAnnotation(Annotation annotation)
-
show
final Unit show(IntArray screenLoc)
The function is used to show the popup
- Parameters:
screenLoc
- the position of the popup you want to show.
-
update
final Unit update(IntArray screenLoc)
The function is used to update the position of the popup
- Parameters:
screenLoc
- the position of the popup you want to update.
-
setScreenLocked
final Unit setScreenLocked(Boolean screenLocked)
The function is used to lock the popup not beyond the bound of screen.
- Parameters:
screenLocked
- true is to lock the popup, false is free lock the popup
-
setVisibility
final Unit setVisibility(Integer visibility)
The function is used to specify the visibility of popup.
- Parameters:
visibility
- View.VISIBLE is to make the popup visible, View.GONE is to make the popup invisible.
-
-
-
-