Constructors

Link copied to clipboard
constructor(context: Context, view: ActionBarContextView, callback: ActionMode.Callback, isFocusable: Boolean)

Functions

Link copied to clipboard
open fun finish()
Finish and close this action mode.
Link copied to clipboard
open fun getCustomView(): View
Returns the current custom view for this action mode.
Link copied to clipboard
open fun getMenu(): Menu
Returns the menu of actions that this action mode presents.
Link copied to clipboard
Returns a MenuInflater with the ActionMode's context.
Link copied to clipboard
Returns the current subtitle of this action mode.
Link copied to clipboard
Returns the current title of this action mode.
Link copied to clipboard
open fun invalidate()
Invalidate the action mode and refresh menu content.
Link copied to clipboard
Link copied to clipboard
Returns whether the UI presenting this action mode can take focus or not.
Link copied to clipboard
open fun onCloseMenu(menu: MenuBuilder, allMenusAreClosing: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun onMenuItemSelected(@NonNull menu: @NonNull MenuBuilder, @NonNull item: @NonNull MenuItem): Boolean
Called when a menu item is selected.
Link copied to clipboard
open fun onMenuModeChange(@NonNull menu: @NonNull MenuBuilder)
Called when the mode of the menu changes (for example, from icon to expanded).
Link copied to clipboard
Link copied to clipboard
open fun setCustomView(view: View)
Set a custom view for this action mode.
Link copied to clipboard
open fun setSubtitle(resId: Int)
open fun setSubtitle(subtitle: CharSequence)
Set the subtitle of the action mode.
Link copied to clipboard
open fun setTitle(resId: Int)
open fun setTitle(title: CharSequence)
Set the title of the action mode.
Link copied to clipboard
open fun setTitleOptionalHint(titleOptional: Boolean)
Set whether or not the title/subtitle display for this action mode is optional.