Interface SendMessageInterceptor

  • All Implemented Interfaces:

    
    public interface SendMessageInterceptor
    
                        

    Interceptor for sending messages in the Stream Chat SDK. Allows overriding the default 'sendMessage' API call.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Result<Message> sendMessage(String channelType, String channelId, Message message) Sends a message to the server.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • sendMessage

         abstract Result<Message> sendMessage(String channelType, String channelId, Message message)

        Sends a message to the server.

        Parameters:
        channelType - The type of the channel to which the message is sent.
        channelId - The ID of the channel to which the message is sent.
        message - The message to be sent.
        Returns:

        The Result object containing an instance of Message in the case of a successful upload or a failure if the upload had failed.