# ConversationLongClickPopup

public class ConversationLongClickPopup

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

## Constructors

ConversationLongClickPopup
Link copied to clipboard
public void ConversationLongClickPopup(Context context, List<ConversationLongClickPopup.OptionItem> items)

## Types

OnOptionItemClickListener
Link copied to clipboard
public interface OnOptionItemClickListener
选项点击监听器
OptionItem
Link copied to clipboard
public class OptionItem
选项数据类

## Functions

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