Class AlertGroup

    • Method Detail

      • alertGroup

        public static AlertGroup alertGroup​(AlertGroupType type)
        Creates a new alert group of the given type without timeout.

        If the type is AlertGroupType.toast the alert group is added to the body or if it already has been added the existing alert group is returned (singleton pattern).

      • alertGroup

        public static AlertGroup alertGroup​(AlertGroupType type,
                                            int timeout)
        Creates a new alert group of the given type and timeout.

        If the type is AlertGroupType.toast the alert group is added to the body or if it already has been added the existing alert group is returned (singleton pattern).