Android Guides | Samples

Android.Views.ActionMode Class

Represents a contextual mode of the user interface.

See Also: ActionMode

Syntax

[Android.Runtime.Register("android/view/ActionMode", DoNotGenerateAcw=true)]
public abstract class ActionMode : Object

Remarks

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.

Developer Guides

For information about how to provide contextual actions with ActionMode, read the Menus developer guide.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11

The members of Android.Views.ActionMode are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

abstract
CustomViewView. Returns the current custom view for this action mode.
[read-only]
IsTitleOptionalBoolean.
[read-only]
abstract
MenuIMenu. Returns the menu of actions that this action mode presents.
[read-only]
abstract
MenuInflaterMenuInflater. Returns a MenuInflater with the ActionMode's context.
SubtitleString.
abstract
SubtitleFormattedICharSequence. Returns the current subtitle of this action mode.
TagObject. Retrieve the tag object associated with this ActionMode.
TitleString.
abstract
TitleFormattedICharSequence. Returns the current title of this action mode.
TitleOptionalHintBoolean.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

abstract
Finish()
Finish and close this action mode.
abstract
Invalidate()
Invalidate the action mode and refresh menu content.
abstract
SetSubtitle(Int32)
Set the subtitle of the action mode.
abstract
SetTitle(Int32)
Set the title of the action mode.