Język

CompletionInfo Constructors

Definition

Overloads

Name Description
CompletionInfo(Int64, Int32, ICharSequence)

Create a simple completion with just text, no label.

CompletionInfo(Int64, Int32, String)

Create a simple completion with just text, no label.

CompletionInfo(Int64, Int32, ICharSequence, ICharSequence)

Create a full completion with both text and label.

CompletionInfo(Int64, Int32, String, String)

Create a full completion with both text and label.

CompletionInfo(Int64, Int32, ICharSequence)

Create a simple completion with just text, no label.

[Android.Runtime.Register(".ctor", "(JILjava/lang/CharSequence;)V", "")]
public CompletionInfo(long id, int index, Java.Lang.ICharSequence? text);
[<Android.Runtime.Register(".ctor", "(JILjava/lang/CharSequence;)V", "")>]
new Android.Views.InputMethods.CompletionInfo : int64 * int * Java.Lang.ICharSequence -> Android.Views.InputMethods.CompletionInfo

Parameters

id
Int64

An id that get passed as is (to the editor's discretion)

index
Int32

An index that get passed as is. Typically this is the index in the list of completions inside the editor.

text
ICharSequence

The text that should be inserted into the editor when this completion is chosen.

Attributes

Remarks

Create a simple completion with just text, no label.

Java documentation for android.view.inputmethod.CompletionInfo.CompletionInfo(long, int, java.lang.CharSequence).

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

CompletionInfo(Int64, Int32, String)

Create a simple completion with just text, no label.

[Android.Runtime.Register(".ctor", "(JILjava/lang/CharSequence;)V", "")]
public CompletionInfo(long id, int index, string? text);
[<Android.Runtime.Register(".ctor", "(JILjava/lang/CharSequence;)V", "")>]
new Android.Views.InputMethods.CompletionInfo : int64 * int * string -> Android.Views.InputMethods.CompletionInfo

Parameters

id
Int64

An identifier passed through unchanged at the editor's discretion.

index
Int32

The original position of this completion, typically its index in the editor's completion list.

text
String

The text inserted into the editor when this completion is selected.

Attributes

Remarks

Java documentation for android.view.inputmethod.CompletionInfo.CompletionInfo(long, int, java.lang.CharSequence).

Create a simple completion with just text, no label.

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

CompletionInfo(Int64, Int32, ICharSequence, ICharSequence)

Create a full completion with both text and label.

[Android.Runtime.Register(".ctor", "(JILjava/lang/CharSequence;Ljava/lang/CharSequence;)V", "")]
public CompletionInfo(long id, int index, Java.Lang.ICharSequence? text, Java.Lang.ICharSequence? label);
[<Android.Runtime.Register(".ctor", "(JILjava/lang/CharSequence;Ljava/lang/CharSequence;)V", "")>]
new Android.Views.InputMethods.CompletionInfo : int64 * int * Java.Lang.ICharSequence * Java.Lang.ICharSequence -> Android.Views.InputMethods.CompletionInfo

Parameters

id
Int64

An id that get passed as is (to the editor's discretion)

index
Int32

An index that get passed as is. Typically this is the index in the list of completions inside the editor.

text
ICharSequence

The text that should be inserted into the editor when this completion is chosen.

label
ICharSequence

The text that the IME should be showing among the completions list.

Attributes

Remarks

Create a full completion with both text and label. The text is what will get inserted into the editor, while the label is what the IME should display. If they are the same, use the version of the constructor without a `label' argument.

Java documentation for android.view.inputmethod.CompletionInfo.CompletionInfo(long, int, java.lang.CharSequence, java.lang.CharSequence).

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

CompletionInfo(Int64, Int32, String, String)

Create a full completion with both text and label.

[Android.Runtime.Register(".ctor", "(JILjava/lang/CharSequence;Ljava/lang/CharSequence;)V", "")]
public CompletionInfo(long id, int index, string? text, string? label);
[<Android.Runtime.Register(".ctor", "(JILjava/lang/CharSequence;Ljava/lang/CharSequence;)V", "")>]
new Android.Views.InputMethods.CompletionInfo : int64 * int * string * string -> Android.Views.InputMethods.CompletionInfo

Parameters

id
Int64

An identifier passed through unchanged at the editor's discretion.

index
Int32

The original position of this completion, typically its index in the editor's completion list.

text
String

The text inserted into the editor when this completion is selected.

label
String

The text that the input method editor should display in its completion list.

Attributes

Remarks

Java documentation for android.view.inputmethod.CompletionInfo.CompletionInfo(long, int, java.lang.CharSequence, java.lang.CharSequence).

Create a full completion with both text and label. The text is what will get inserted into the editor, while the label is what the IME should display. If they are the same, use the version of the constructor without a `label' argument.

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