Interface KnownCustomEmojiAttachableListenerManager

    • Method Detail

      • getKnownCustomEmojiChangeNameListeners

        List<KnownCustomEmojiChangeNameListener> getKnownCustomEmojiChangeNameListeners​()
        Gets a list with all registered KnownCustomEmojiChangeNameListeners.
        Returns:
        A list with all registered KnownCustomEmojiChangeNameListeners.
      • getKnownCustomEmojiDeleteListeners

        List<KnownCustomEmojiDeleteListener> getKnownCustomEmojiDeleteListeners​()
        Gets a list with all registered KnownCustomEmojiDeleteListeners.
        Returns:
        A list with all registered KnownCustomEmojiDeleteListeners.
      • getKnownCustomEmojiChangeWhitelistedRolesListeners

        List<KnownCustomEmojiChangeWhitelistedRolesListener> getKnownCustomEmojiChangeWhitelistedRolesListeners​()
        Gets a list with all registered KnownCustomEmojiChangeWhitelistedRolesListeners.
        Returns:
        A list with all registered KnownCustomEmojiChangeWhitelistedRolesListeners.
      • addKnownCustomEmojiAttachableListener

        <T extends KnownCustomEmojiAttachableListener & ObjectAttachableListenerCollection<ListenerManager<T>> addKnownCustomEmojiAttachableListener​(T listener)
        Adds a listener that implements one or more KnownCustomEmojiAttachableListeners. Adding a listener multiple times will only add it once and return the same listener managers on each invocation. The order of invocation is according to first addition.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listener - The listener to add.
        Returns:
        The managers for the added listener.
      • removeKnownCustomEmojiAttachableListener

        <T extends KnownCustomEmojiAttachableListener & ObjectAttachableListener> void removeKnownCustomEmojiAttachableListener​(T listener)
        Removes a listener that implements one or more KnownCustomEmojiAttachableListeners.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listener - The listener to remove.
      • getKnownCustomEmojiAttachableListeners

        <T extends KnownCustomEmojiAttachableListener & ObjectAttachableListenerMap<T,List<Class<T>>> getKnownCustomEmojiAttachableListeners​()
        Gets a map with all registered listeners that implement one or more KnownCustomEmojiAttachableListeners and their assigned listener classes they listen to.
        Type Parameters:
        T - The type of the listeners.
        Returns:
        A map with all registered listeners that implement one or more KnownCustomEmojiAttachableListeners and their assigned listener classes they listen to.
      • removeListener

        <T extends KnownCustomEmojiAttachableListener & ObjectAttachableListener> void removeListener​(Class<T> listenerClass,
                                                                                                      T listener)
        Removes a listener from this object.
        Type Parameters:
        T - The type of the listener.
        Parameters:
        listenerClass - The listener class.
        listener - The listener to remove.