Compartir a través de


TextView.OnTextContextMenuItem(Int32) Method

Definition

Called when a context menu option for the text view is selected.

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

Parameters

id
Int32

Returns

true if the context menu item action was performed.

Attributes

Remarks

Called when a context menu option for the text view is selected. Currently this will be one of android.R.id#selectAll, android.R.id#cut, android.R.id#copy, android.R.id#paste, android.R.id#pasteAsPlainText (starting at API level 23) or android.R.id#shareText.

Java documentation for android.widget.TextView.onTextContextMenuItem(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