Package 

Interface SendMessageInterceptor

  • All Implemented Interfaces:
    io.getstream.chat.android.client.interceptor.Interceptor

    
    public interface SendMessageInterceptor
     implements Interceptor
                        

    Intercepts the outgoing requests and potentially modifies the Message being sent to the API.

    • 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> interceptMessage(String channelType, String channelId, Message message, Boolean isRetrying, Function1<Message, Unit> onUpdate) Intercept the message before sending it to the API.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • interceptMessage

         abstract Result<Message> interceptMessage(String channelType, String channelId, Message message, Boolean isRetrying, Function1<Message, Unit> onUpdate)

        Intercept the message before sending it to the API.

        Parameters:
        channelType - The type of the channel in which message is sent.
        channelId - The id of the the channel in which message is sent.
        message - Message to be sent.
        isRetrying - If this message is being retried instead of a new message.
        onUpdate - Notifies about intermediate changes in message.