Aracılığıyla paylaş


EditorInfo Class

Definition

An EditorInfo describes several attributes of a text editing object that an input method is communicating with (typically an EditText), most importantly the type of text content it contains and the current cursor position.

[Android.Runtime.Register("android/view/inputmethod/EditorInfo", DoNotGenerateAcw=true)]
public class EditorInfo : Java.Lang.Object, Android.OS.IParcelable, Android.Text.IInputType, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/view/inputmethod/EditorInfo", DoNotGenerateAcw=true)>]
type EditorInfo = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    interface IInputType
Inheritance
EditorInfo
Attributes
Implements

Remarks

An EditorInfo describes several attributes of a text editing object that an input method is communicating with (typically an EditText), most importantly the type of text content it contains and the current cursor position.

Java documentation for android.view.inputmethod.EditorInfo.

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

EditorInfo()
EditorInfo(IntPtr, JniHandleOwnership)

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

Properties

ActionId

If #actionLabel has been given, this is the id for that command when the user presses its button that is delivered back with InputConnection#performEditorAction(int) InputConnection.performEditorAction().

ActionLabel

In some cases an IME may be able to display an arbitrary label for a command the user can perform, which you can specify here.

Class

Returns the runtime class of this Object.

(Inherited from Object)
ContentMimeTypes

List of acceptable MIME types for InputConnection#commitContent(InputContentInfo, int, Bundle).

Creator

Used to make this class parcelable.

Extras

Any extra data to supply to the input method.

FieldId

Identifier for the editor's field.

FieldName

Additional name for the editor's field.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
HintLocales

List of the languages that the user is supposed to switch to no matter what input method subtype is currently used.

HintText

The "hint" text of the text view, typically shown in-line when the text is empty to tell the user what to enter.

ImeOptions

Extended type information for the editor, to help the IME better integrate with it.

InitialCapsMode

The capitalization mode of the first character being edited in the text.

InitialSelEnd

The text offset of the end of the selection at the time editing begins; -1 if not known.

InitialSelStart

The text offset of the start of the selection at the time editing begins; -1 if not known.

InitialToolType

Returns the initial MotionEvent#ACTION_UP tool type MotionEvent#getToolType(int) responsible for focus on the current editor. -or- Set the initial MotionEvent#ACTION_UP tool type MotionEvent#getToolType(int).

InputType

The content type of the text box, whose bits are defined by InputType.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Label

A label to show to the user describing the text they are writing.

PackageName

Name of the package that owns this editor.

PeerReference (Inherited from Object)
PrivateImeOptions

A string supplying additional information options that are private to a particular IME implementation.

SupportedHandwritingGesturePreviews

Returns the combination of Stylus handwriting gesture preview types supported by the current Editor. -or- Set the Handwriting gesture previews supported by the current Editor.

SupportedHandwritingGestures

Returns the combination of Stylus handwriting gesture types supported by the current Editor. -or- Set the Handwriting gestures supported by the current Editor.

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.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Dump(IPrinter, String)

Write debug output of this object.

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetInitialSelectedText(Int32)

Gets the selected text, if any.

GetInitialSelectedTextFormatted(Int32)

Gets the selected text, if any.

GetInitialSurroundingText(Int32, Int32, Int32)

Gets the surrounding text around the current cursor, with <var>beforeLength</var> characters of text before the cursor (start of the selection), <var>afterLength</var> characters of text after the cursor (end of the selection), and all of the selected text.

GetInitialTextAfterCursor(Int32, Int32)

Get <var>length</var> characters of text after the current cursor position.

GetInitialTextAfterCursorFormatted(Int32, Int32)

Get <var>length</var> characters of text after the current cursor position.

GetInitialTextBeforeCursor(Int32, Int32)

Get <var>length</var> characters of text before the current cursor position.

GetInitialTextBeforeCursorFormatted(Int32, Int32)

Get <var>length</var> characters of text before the current cursor position.

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)
MakeCompatible(BuildVersionCodes)

Ensure that the data in this EditorInfo is compatible with an application that was developed against the given target API version.

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)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetInitialSurroundingSubText(ICharSequence, Int32)

Editors may use this method to provide initial input text to IMEs.

SetInitialSurroundingSubText(String, Int32)

Editors may use this method to provide initial input text to IMEs.

SetInitialSurroundingText(ICharSequence)

Editors may use this method to provide initial input text to IMEs.

SetInitialSurroundingText(String)

Editors may use this method to provide initial input text to IMEs.

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)
WriteToParcel(Parcel, ParcelableWriteFlags)

Used to package this object into a Parcel.

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