Package io.rong.imkit.widget.dialog

## Class ConversationLongClickPopup

- All Implemented Interfaces:

      public class ConversationLongClickPopup

  会话列表长按操作弹窗，使用 PopupWindow 实现，支持图标显示

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public class` | `ConversationLongClickPopup.OptionItem` | 选项数据类
    `public interface` | `ConversationLongClickPopup.OnOptionItemClickListener` | 选项点击监听器

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ConversationLongClickPopup(Context context, List<ConversationLongClickPopup.OptionItem> items)` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static ConversationLongClickPopup` | `newInstance(Context context, List<ConversationLongClickPopup.OptionItem> items)` |
    `ConversationLongClickPopup` | `setAnchorView(View anchorView)` | 设置锚点视图，弹窗将显示在锚点视图上方
    `ConversationLongClickPopup` | `setOnOptionItemClickListener(ConversationLongClickPopup.OnOptionItemClickListener listener)` | 设置选项点击监听器
    `ConversationLongClickPopup` | `setOptionsPopupDialogListener(OnOptionsItemClickedListener itemListener)` | 设置选项点击监听器（兼容旧版本 API）
    `void` | `setOnDismissListener(OnDismissListener listener)` | 设置 dismiss 监听器
    `void` | `show()` | 显示弹窗
    `void` | `dismiss()` | 关闭弹窗
    `boolean` | `isShowing()` | 判断弹窗是否正在显示

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ConversationLongClickPopup

          ConversationLongClickPopup(Context context, List<ConversationLongClickPopup.OptionItem> items)

  - ### Method Detail

    - #### newInstance

           static ConversationLongClickPopup newInstance(Context context, List<ConversationLongClickPopup.OptionItem> items)

    - #### setAnchorView

           ConversationLongClickPopup setAnchorView(View anchorView)

      设置锚点视图，弹窗将显示在锚点视图上方

      Parameters:
        `anchorView` - 锚点视图
      Returns:

        this

    - #### setOnOptionItemClickListener

           ConversationLongClickPopup setOnOptionItemClickListener(ConversationLongClickPopup.OnOptionItemClickListener listener)

      设置选项点击监听器

      Parameters:
        `listener` - 监听器
      Returns:

        this

    - #### setOptionsPopupDialogListener

          @Deprecated() ConversationLongClickPopup setOptionsPopupDialogListener(OnOptionsItemClickedListener itemListener)

      设置选项点击监听器（兼容旧版本 API）

      Parameters:
        `itemListener` - 监听器
      Returns:

        this

    - #### setOnDismissListener

           void setOnDismissListener(OnDismissListener listener)

      设置 dismiss 监听器

      Parameters:
        `listener` - 监听器

    - #### show

           void show()

      显示弹窗

    - #### dismiss

           void dismiss()

      关闭弹窗

    - #### isShowing

           boolean isShowing()

      判断弹窗是否正在显示

      Returns:

        true 如果正在显示