Package ai.nexconn.chatui.widget.dialog
Class ConversationLongClickPopup
-
- All Implemented Interfaces:
public class ConversationLongClickPopupConversation list long-press popup, implemented using PopupWindow with icon support
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classConversationLongClickPopup.OptionItemOption data class
public interfaceConversationLongClickPopup.OnOptionItemClickListenerOption click listener
-
Constructor Summary
Constructors Constructor Description ConversationLongClickPopup(Context context, List<ConversationLongClickPopup.OptionItem> items)
-
Method Summary
Modifier and Type Method Description static ConversationLongClickPopupnewInstance(Context context, List<ConversationLongClickPopup.OptionItem> items)ConversationLongClickPopupsetAnchorView(View anchorView)Set the anchor view; the popup will appear above it ConversationLongClickPopupsetOnOptionItemClickListener(ConversationLongClickPopup.OnOptionItemClickListener listener)Set the option click listener ConversationLongClickPopupsetOptionsPopupDialogListener(OnOptionsItemClickedListener itemListener)Set the option click listener (backward compatibility) voidsetOnDismissListener(OnDismissListener listener)Set the dismiss listener voidshow()Show the popup voiddismiss()Dismiss the popup booleanisShowing()Check whether the popup is currently showing -
-
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)
Set the anchor view; the popup will appear above it
- Parameters:
anchorView- the anchor view- Returns:
this
-
setOnOptionItemClickListener
ConversationLongClickPopup setOnOptionItemClickListener(ConversationLongClickPopup.OnOptionItemClickListener listener)
Set the option click listener
- Parameters:
listener- the listener- Returns:
this
-
setOptionsPopupDialogListener
@Deprecated() ConversationLongClickPopup setOptionsPopupDialogListener(OnOptionsItemClickedListener itemListener)
Set the option click listener (backward compatibility)
- Parameters:
itemListener- the listener- Returns:
this
-
setOnDismissListener
void setOnDismissListener(OnDismissListener listener)
Set the dismiss listener
- Parameters:
listener- the listener
-
show
void show()
Show the popup
-
dismiss
void dismiss()
Dismiss the popup
-
isShowing
boolean isShowing()
Check whether the popup is currently showing
- Returns:
true if currently showing
-
-
-
-