Package 

Class AttachmentFilter


  • 
    public final class AttachmentFilter
    
                        

    A filter that is used to filter out attachments that will not be accepted by the backend.

    Clients are able to modify the upload configuration in the dashboard and specify what types of files and images they want to allow or block from being uploaded.

    • Constructor Summary

      Constructors 
      Constructor Description
      AttachmentFilter(ChatClient chatClient)
    • Method Summary

      Modifier and Type Method Description
      final List<AttachmentMetaData> filterAttachments(List<AttachmentMetaData> attachments) Filters out attachments that can be uploaded to the backend according to files and images upload configurations.
      final List<String> getSupportedMimeTypes() Returns the list of supported MIME types by the server according to the upload config values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AttachmentFilter

        AttachmentFilter(ChatClient chatClient)
        Parameters:
        chatClient - An instance of the low level chat client to fetch upload config.