-
- All Implemented Interfaces:
public 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 public intoffsetXpublic intoffsetYpublic Annotationannotation
-
Method Summary
Modifier and Type Method Description voidshow(Array<int> screenLoc)The function is used to show the popup voidupdate(Array<int> screenLoc)The function is used to update the position of the popup voiddismiss()The function is used to dismiss the popup voidsetVisibility(int visibility)The function is used to specify the visibility of popup. voidsetScreenLocked(boolean screenLocked)The function is used to lock the popup not beyond the bound of screen. -
-
Constructor Detail
-
Popup
Popup(ViewGroup parent, View view, int popupWidth, int popupHeight)
This is the class constructor.- Parameters:
parent- the container to put this popup.view- the native popup object.popupWidth- the width of the popup you want to specify.popupHeight- the height of the popup you want to specify.
-
-
Method Detail
-
show
void show(Array<int> screenLoc)
The function is used to show the popup
- Parameters:
screenLoc- the position of the popup you want to show.
-
update
void update(Array<int> screenLoc)
The function is used to update the position of the popup
- Parameters:
screenLoc- the position of the popup you want to update.
-
dismiss
void dismiss()
The function is used to dismiss the popup
-
setVisibility
void setVisibility(int 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.
-
setScreenLocked
void 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
-
-
-
-