Class ReferenceContentInputBarProvider

  • All Implemented Interfaces:

    
    public abstract class ReferenceContentInputBarProvider<T extends MessageContent>
    
                        

    输入框上方引用展示区的自定义内容 Provider。

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      View onCreateView(Context context, ViewGroup parent, ReferenceInputBarAction action) 创建聊天输入框上方的自定义引用展示 View。
      void onBindView(View view, Message quotedMessage, T quotedContent) 绑定聊天输入框上方的引用展示 View。
      abstract boolean isReferenceContentType(MessageContent content) 当前 Provider 是否支持该消息内容。
      • Methods inherited from class java.lang.Object

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

      • ReferenceContentInputBarProvider

        ReferenceContentInputBarProvider()
    • Method Detail

      • onCreateView

         View onCreateView(Context context, ViewGroup parent, ReferenceInputBarAction action)

        创建聊天输入框上方的自定义引用展示 View。

        Returns:

        返回 null 时使用默认引用条展示

      • onBindView

         void onBindView(View view, Message quotedMessage, T quotedContent)

        绑定聊天输入框上方的引用展示 View。

      • isReferenceContentType

         abstract boolean isReferenceContentType(MessageContent content)

        当前 Provider 是否支持该消息内容。