Language

InputConnectionWrapper.PerformContextMenuAction(Int32) Method

Definition

Perform a context menu action on the field.

[Android.Runtime.Register("performContextMenuAction", "(I)Z", "GetPerformContextMenuAction_IHandler")]
public virtual bool PerformContextMenuAction(int id);
[<Android.Runtime.Register("performContextMenuAction", "(I)Z", "GetPerformContextMenuAction_IHandler")>]
abstract member PerformContextMenuAction : int -> bool
override this.PerformContextMenuAction : int -> bool

Parameters

id
Int32

The resource identifier of the context menu action to request.

Returns

The result reported by the target connection. A true result does not guarantee that the text changed.

Implements

Attributes

Remarks

Perform a context menu action on the field. The given id may be one of: R.id.selectAll, R.id.startSelectingText, R.id.stopSelectingText, R.id.cut, R.id.copy, R.id.paste, R.id.copyUrl, or R.id.switchInputMethod

Java documentation for android.view.inputmethod.InputConnectionWrapper.performContextMenuAction(int).

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.

Applies to