ActionMode

abstract class ActionMode(source)

Represents a contextual mode of the user interface. Action modes can be used to provide alternative interaction modes and replace parts of the normal UI until finished. Examples of good action modes include text selection and contextual actions.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
interface Callback
Callback interface for action modes.

Functions

Link copied to clipboard
abstract fun finish()
Finish and close this action mode.
Link copied to clipboard
abstract fun getCustomView(): View
Returns the current custom view for this action mode.
Link copied to clipboard
abstract 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
abstract fun getSubtitle(): CharSequence
Returns the current subtitle of this action mode.
Link copied to clipboard
open fun getTag(): Any
Retrieve the tag object associated with this ActionMode.
Link copied to clipboard
abstract fun getTitle(): CharSequence
Returns the current title of this action mode.
Link copied to clipboard
Link copied to clipboard
abstract 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
abstract fun setCustomView(view: View)
Set a custom view for this action mode.
Link copied to clipboard
abstract fun setSubtitle(resId: Int)
abstract fun setSubtitle(subtitle: CharSequence)
Set the subtitle of the action mode.
Link copied to clipboard
open fun setTag(tag: Any)
Set a tag object associated with this ActionMode.
Link copied to clipboard
abstract fun setTitle(resId: Int)
abstract 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.