Taal

IInputConnectionExtensions Class

Definition

Provides string overloads for input connection methods.

public static class IInputConnectionExtensions
type IInputConnectionExtensions = class
Inheritance
IInputConnectionExtensions

Remarks

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.

Methods

Name Description
CommitText(IInputConnection, String, Int32, TextAttribute)

Commits text with additional text attributes.

CommitText(IInputConnection, String, Int32)

Commit text to the text box and set the new cursor position.

GetSelectedText(IInputConnection, GetTextFlags)

Gets the selected text, if any.

GetTextAfterCursor(IInputConnection, Int32, GetTextFlags)

Get n characters of text after the current cursor position.

GetTextBeforeCursor(IInputConnection, Int32, GetTextFlags)

Get n characters of text before the current cursor position.

ReplaceText(IInputConnection, Int32, Int32, String, Int32, TextAttribute)

Replace the specific range in the editor with suggested text.

SetComposingText(IInputConnection, String, Int32, TextAttribute)

Sets composing text with additional text attributes.

SetComposingText(IInputConnection, String, Int32)

Replace the currently composing text with the given text, and set the new cursor position.

Applies to