Class NotificationMole

    • Constructor Detail

      • NotificationMole

        public NotificationMole()
    • Method Detail

      • hide

        public void hide()
        Hides the notification.
      • hideNow

        public void hideNow()
        Force mole to hide and discard outstanding show attempts.
      • setAnimationDuration

        public void setAnimationDuration​(int duration)
        Sets the animation duration in milliseconds. The animation duration defaults to 0 if this method is never called.
        Parameters:
        duration - the animation duration in milliseconds.
      • setMessage

        public void setMessage​(java.lang.String message)
        Sets the message text to be displayed.
        Parameters:
        message - the text to be displayed.
      • show

        public void show()
        Display the notification with the existing message.
      • show

        public void show​(java.lang.String message)
        Set the message text and then display the notification.
      • showDelayed

        public void showDelayed​(int delay)
        Display the notification, but after a delay.
        Parameters:
        delay - delay in milliseconds.