ActionMode Class

Definition

Represents a contextual mode of the user interface.

[Android.Runtime.Register("android/view/ActionMode", DoNotGenerateAcw=true)]
public abstract class ActionMode : Java.Lang.Object
[<Android.Runtime.Register("android/view/ActionMode", DoNotGenerateAcw=true)>]
type ActionMode = class
    inherit Object
Inheritance
ActionMode
Attributes

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. <div class="special reference"> <h3>Developer Guides</h3>

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

</div>

Java documentation for android.view.ActionMode.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

ActionMode()
ActionMode(IntPtr, JniHandleOwnership)

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

Fields

DefaultHideDuration

Default value to hide the action mode for ViewConfiguration#getDefaultActionModeHideDuration().

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
CustomView

Returns the current custom view for this action mode.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
IsTitleOptional
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Menu

Returns the menu of actions that this action mode presents.

MenuInflater

Returns a MenuInflater with the ActionMode's context.

PeerReference (Inherited from Object)
Subtitle
SubtitleFormatted

Returns the current subtitle of this action mode.

Tag

Retrieve the tag object associated with this ActionMode. -or- Set a tag object associated with this ActionMode.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Title
TitleFormatted

Returns the current title of this action mode.

TitleOptionalHint

Set whether or not the title/subtitle display for this action mode is optional.

Type

Returns the type for this action mode. -or- Set a type for this action mode.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
Finish()

Finish and close this action mode.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
Hide(Int64)

Hide the action mode view from obstructing the content below for a short duration.

Invalidate()

Invalidate the action mode and refresh menu content.

InvalidateContentRect()

Invalidate the content rect associated to this ActionMode.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
OnWindowFocusChanged(Boolean)

Called when the window containing the view that started this action mode gains or loses focus.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetSubtitle(Int32)

Set the subtitle of the action mode.

SetTitle(Int32)

Set the title of the action mode.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to