-
- All Implemented Interfaces:
public final class PopupThis 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 IntegeroffsetXprivate IntegeroffsetYprivate Annotationannotation
-
Method Summary
Modifier and Type Method Description final IntegergetOffsetX()final UnitsetOffsetX(Integer offsetX)final IntegergetOffsetY()final UnitsetOffsetY(Integer offsetY)final AnnotationgetAnnotation()final UnitsetAnnotation(Annotation annotation)final Unitshow(IntArray screenLoc)The function is used to show the popup final Unitupdate(IntArray screenLoc)The function is used to update the position of the popup final Unitdismiss()The function is used to dismiss the popup final UnitsetScreenLocked(Boolean screenLocked)The function is used to lock the popup not beyond the bound of screen. final UnitsetVisibility(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.
-
-
-
-