Sdílet prostřednictvím


View.OnCheckIsTextEditor Method

Definition

Check whether the called view is a text editor, in which case it would make sense to automatically display a soft input window for it.

[Android.Runtime.Register("onCheckIsTextEditor", "()Z", "GetOnCheckIsTextEditorHandler")]
public virtual bool OnCheckIsTextEditor ();
[<Android.Runtime.Register("onCheckIsTextEditor", "()Z", "GetOnCheckIsTextEditorHandler")>]
abstract member OnCheckIsTextEditor : unit -> bool
override this.OnCheckIsTextEditor : unit -> bool

Returns

Returns true if this view is a text editor, else false.

Attributes

Remarks

Check whether the called view is a text editor, in which case it would make sense to automatically display a soft input window for it. Subclasses should override this if they implement #onCreateInputConnection(EditorInfo) to return true if a call on that method would return a non-null InputConnection, and they are really a first-class editor that the user would normally start typing on when the go into a window containing your view.

The default implementation always returns false. This does <em>not</em> mean that its #onCreateInputConnection(EditorInfo) will not be called or the user can not otherwise perform edits on your view; it is just a hint to the system that this is not the primary purpose of this view.

Java documentation for android.view.View.onCheckIsTextEditor().

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