Package com.massifmaps.vectorelements
Class CustomPopupHandler
java.lang.Object
com.massifmaps.vectorelements.CustomPopupHandler
A handler class for custom popups. The handler is responsible for drawing the popup
and reponding to click events.
and reponding to click events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononDrawPopup(PopupDrawInfo popupDrawInfo) Handler method that gets called when the popup needs to be drawn to a bitmap.booleanonPopupClicked(PopupClickInfo popupClickInfo) Handler method that gets called when the popup is clicked
-
Constructor Details
-
CustomPopupHandler
public CustomPopupHandler()
-
-
Method Details
-
onDrawPopup
Handler method that gets called when the popup needs to be drawn to a bitmap.- Parameters:
popupDrawInfo- The information about the popup to be rendered.- Returns:
- The drawn bitmap.
-
onPopupClicked
Handler method that gets called when the popup is clicked- Parameters:
popupClickInfo- The information about the popup click event.- Returns:
- True if the click was handled. False otherwise.
-