Taal

InputConnectionWrapper.SetComposingRegion Method

Definition

Overloads

Name Description
SetComposingRegion(Int32, Int32)

Mark a certain region of text as composing text.

SetComposingRegion(Int32, Int32, TextAttribute)

Marks a region as composing text and supplies optional text metadata.

SetComposingRegion(Int32, Int32)

Mark a certain region of text as composing text.

[Android.Runtime.Register("setComposingRegion", "(II)Z", "GetSetComposingRegion_IIHandler")]
public virtual bool SetComposingRegion(int start, int end);
[<Android.Runtime.Register("setComposingRegion", "(II)Z", "GetSetComposingRegion_IIHandler")>]
abstract member SetComposingRegion : int * int -> bool
override this.SetComposingRegion : int * int -> bool

Parameters

start
Int32

the position in the text at which the composing region begins

end
Int32

the position in the text at which the composing region ends

Returns

The value returned by the target connection.

Implements

Attributes

Remarks

The editor should remove any previous composing span without changing its characters and use the default style for the new region. A BaseInputConnection in fallback mode may send the buffered text as key events and clear the buffer.

Java documentation for android.view.inputmethod.InputConnectionWrapper.setComposingRegion(int, 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

SetComposingRegion(Int32, Int32, TextAttribute)

Marks a region as composing text and supplies optional text metadata.

[Android.Runtime.Register("setComposingRegion", "(IILandroid/view/inputmethod/TextAttribute;)Z", "GetSetComposingRegion_IILandroid_view_inputmethod_TextAttribute_Handler", ApiSince=33)]
public virtual bool SetComposingRegion(int start, int end, Android.Views.InputMethods.TextAttribute? textAttribute);
[<Android.Runtime.Register("setComposingRegion", "(IILandroid/view/inputmethod/TextAttribute;)Z", "GetSetComposingRegion_IILandroid_view_inputmethod_TextAttribute_Handler", ApiSince=33)>]
abstract member SetComposingRegion : int * int * Android.Views.InputMethods.TextAttribute -> bool
override this.SetComposingRegion : int * int * Android.Views.InputMethods.TextAttribute -> bool

Parameters

start
Int32

the position in the text at which the composing region begins

end
Int32

the position in the text at which the composing region ends

textAttribute
TextAttribute

Optional text metadata passed to the target connection.

Returns

The value returned by the target connection.

Implements

Attributes

Remarks

The target may ignore the metadata. The default Android interface implementation calls the two-argument overload.

Java documentation for android.view.inputmethod.InputConnectionWrapper.setComposingRegion(int, int, android.view.inputmethod.TextAttribute).

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