Package 

Class Popup

  • All Implemented Interfaces:

    
    public 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, int popupWidth, int popupHeight) This is the class constructor.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void show(Array<int> screenLoc) The function is used to show the popup
      void update(Array<int> screenLoc) The function is used to update the position of the popup
      void dismiss() The function is used to dismiss the popup
      void setVisibility(int visibility) The function is used to specify the visibility of popup.
      void setScreenLocked(boolean screenLocked) The function is used to lock the popup not beyond the bound of screen.
      • 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, 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