Class DeleteClickActions

  • All Implemented Interfaces:
    io.rong.imkit.conversation.extension.component.moreaction.IClickActions

    
    public class DeleteClickActions
     implements IClickActions
                        

    Created by zwfang on 2018/3/30.

    • 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
      Drawable obtainDrawable(Context context) 获取点击按钮的图标
      void onClick(Fragment curFragment) 图标按钮点击事件
      boolean filter(UiMessage message) UIMessage 过滤
      • Methods inherited from class java.lang.Object

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

      • DeleteClickActions

        DeleteClickActions()
    • Method Detail

      • obtainDrawable

         Drawable obtainDrawable(Context context)

        获取点击按钮的图标

        Parameters:
        context - 上下文
        Returns:

        图片的Drawable, 如需高亮或者置灰,则返回类型为selector, 分别显示enable或者disable状态下的drawable

      • onClick

         void onClick(Fragment curFragment)

        图标按钮点击事件

        Parameters:
        curFragment - 当前 Fragment, 请注意不要持有该 fragment, 否则容易引起内存泄露。
      • filter

         boolean filter(UiMessage message)

        UIMessage 过滤

        Parameters:
        message - 消息
        Returns:

        返回true,表示显示