Interface NotificationStack

  • All Known Implementing Classes:
    DefaultNotificationStack

    public interface NotificationStack
    Interface which helps find notification id of topmost Notification Widget. When widget is a template it is displayed in popup. We can display many widget templates and in such case it is important to know where to send notifications
    • Method Detail

      • onNewTemplateDisplayed

        void onNewTemplateDisplayed​(WidgetInstance widgetInstance)
        This method is called when new widget template is displayed
        Parameters:
        widgetInstance -
      • onTemplateClosed

        void onTemplateClosed​(WidgetInstance widgetInstance)
        This method is called when widget template is closed
        Parameters:
        widgetInstance -
      • getTopmostId

        java.lang.String getTopmostId()
        Returns:
        notification id of topmost Notification Widget or null if stack is empty
      • getPreviousId

        java.lang.String getPreviousId()
        Returns:
        notification id of second topmost Notification Widget or null if stack's has one or no elements
      • resetNotifierStack

        void resetNotifierStack()
        Resets notifier stack - removes all notification widget's ids