Interface IConversationUIRenderer

    • 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 void init(ConversationFragment fragment, RongExtension extension, ConversationType conversationType, String targetId) 进入会话页面后,初始化各 UI 渲染器。
      abstract boolean handlePageEvent(PageEvent event) 会话页面渲染事件回调。
      abstract boolean onBackPressed() 按返回键时的回调
      abstract void onDestroy() 退出会话页面时回调。
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • init

         abstract void init(ConversationFragment fragment, RongExtension extension, ConversationType conversationType, String targetId)

        进入会话页面后,初始化各 UI 渲染器。

        Parameters:
        fragment - 会话 fragment
        extension - 会话扩展栏
        conversationType - 会话类型
        targetId - 会话 id
      • handlePageEvent

         abstract boolean handlePageEvent(PageEvent event)

        会话页面渲染事件回调。

        Parameters:
        event - 渲染事件
        Returns:

        事件是否被消费。true 事件被本渲染器消费,会话页面不再处理; false 未被消费,会话页面默认处理。

      • onBackPressed

         abstract boolean onBackPressed()

        按返回键时的回调

        Returns:

        事件是否被消费

      • onDestroy

         abstract void onDestroy()

        退出会话页面时回调。