public class

CustomPopupHandler

extends Object
java.lang.Object
   ↳ com.carto.vectorelements.CustomPopupHandler

Class Overview

A handler class for custom popups. The handler is responsible for drawing the popup
and reponding to click events.

Summary

Public Constructors
CustomPopupHandler()
Public Methods
synchronized void delete()
Bitmap onDrawPopup(PopupDrawInfo popupDrawInfo)
Handler method that gets called when the popup needs to be drawn to a bitmap.
boolean onPopupClicked(PopupClickInfo popupClickInfo)
Handler method that gets called when the popup is clicked
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CustomPopupHandler ()

Public Methods

public synchronized void delete ()

public Bitmap onDrawPopup (PopupDrawInfo popupDrawInfo)

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.

public boolean onPopupClicked (PopupClickInfo popupClickInfo)

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.