Interface MessageReadListener

  • All Implemented Interfaces:

    
    public interface MessageReadListener
    
                        

    Listener to identify when a message was read.

    For example, if you want to add some custom handling when a message is read.

    You could implement a listener like this:

    class MyMessageReadListener: MessageReadListener {
    
    override onMessageRead(context: Context, message: Message) {
        // Handle read message
    }
    }

    Add your implementation using MessageStream.addMessageReadListener

    ...
    val marigold = Marigold()
    marigold.startEngine(getApplicationContext(), "your sdk key")
    marigold.addMessageReadListener(MyMessageReadListener())
    ...
    • 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 onMessageRead(Context context, Message message) Called when the message is read.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onMessageRead

         abstract Unit onMessageRead(Context context, Message message)

        Called when the message is read.

        Parameters:
        message - The message that was read.