Enum DefaultToastType

    • Enum Constant Detail

      • DEFAULT

        public static final DefaultToastType DEFAULT
        Default toast type -    Toast content    
      • SUCCESS

        public static final DefaultToastType SUCCESS
        Success toast type -    Toast content    
      • WARNING

        public static final DefaultToastType WARNING
        Warning toast type -    Toast content    
      • ERROR

        public static final DefaultToastType ERROR
        Error toast type -    Toast content    
      • INFO

        public static final DefaultToastType INFO
        Info toast type -    Toast content    
      • DARK

        public static final DefaultToastType DARK
        Dark toast type -    Toast content    
    • Method Detail

      • values

        public static DefaultToastType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DefaultToastType c : DefaultToastType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DefaultToastType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()
        Description copied from interface: Key
        Returns the name value of property
        Specified by:
        value in interface Key
        Returns:
        the name value of property
      • getColor

        public IsColor getColor()
        Description copied from interface: IsToastType
        Returns the color of the text in the toast.
        Specified by:
        getColor in interface IsToastType
        Returns:
        the color of the text in the toast