Interface SendMessageHandler

  • All Implemented Interfaces:

    
    public interface SendMessageHandler
    
                        

    Send message callback.

    Listens for each stage of the normal (non-media) message sending process.

    Callback order:

    • 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 Unit onAttached(Message message) Called when the message is stored in the database.
      abstract Unit onResult(Message message, NCError error) Called when message sending completes (success or failure).
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onAttached

         abstract Unit onAttached(Message message)

        Called when the message is stored in the database.

        Before sending, the message is first saved to the local database. At this point, you can add the message to the UI list for display.

        Parameters:
        message - The message object stored in the database
      • onResult

         abstract Unit onResult(Message message, NCError error)

        Called when message sending completes (success or failure).

        Parameters:
        message - The message object; non-null on success, may be null on failure
        error - Error info on failure; null on success