Package 

Class Popup

  • 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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Popup(ViewGroup parent, View view, Integer popupWidth, Integer popupHeight)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Popup

        Popup(ViewGroup parent, View view, Integer popupWidth, Integer popupHeight)
    • Method Detail

      • setOffsetX

         final Unit setOffsetX(Integer offsetX)
      • setOffsetY

         final Unit setOffsetY(Integer offsetY)
      • 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.
      • dismiss

         final Unit dismiss()

        The function is used to dismiss the popup

      • 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.