Package io.rong.imkit.widget.dialog

## Class MessageLongClickPopup

- All Implemented Interfaces:

      public class MessageLongClickPopup

  消息长按操作弹窗，使用 PopupWindow 实现，支持图标显示

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public class` | `MessageLongClickPopup.OptionItem` |

  - ### Field Summary

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

  - ### Constructor Summary

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

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static MessageLongClickPopup` | `newInstance(Context context, List<MessageLongClickPopup.OptionItem> items)` |
    `MessageLongClickPopup` | `setAnchorView(View anchorView)` | 设置锚点视图，弹窗将显示在锚点视图上方
    `MessageLongClickPopup` | `setOptionsPopupDialogListener(OnOptionsItemClickedListener itemListener)` | 设置点击监听器
    `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

    - #### MessageLongClickPopup

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

  - ### Method Detail

    - #### newInstance

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

    - #### setAnchorView

           MessageLongClickPopup setAnchorView(View anchorView)

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

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

        this

    - #### setOptionsPopupDialogListener

           MessageLongClickPopup setOptionsPopupDialogListener(OnOptionsItemClickedListener itemListener)

      设置点击监听器

      Parameters:
        `itemListener` - 监听器
      Returns:

        this

    - #### setOnDismissListener

           void setOnDismissListener(OnDismissListener listener)

      设置 dismiss 监听器

      Parameters:
        `listener` - 监听器

    - #### show

           void show()

      显示弹窗

    - #### dismiss

           void dismiss()

      关闭弹窗

    - #### isShowing

           boolean isShowing()

      判断弹窗是否正在显示

      Returns:

        true 如果正在显示