語言

CompletionInfo 建構函式

定義

多載

名稱 Description
CompletionInfo(Int64, Int32, ICharSequence)

建立一個簡單的完成文,只用文字,不要標籤。

CompletionInfo(Int64, Int32, String)

建立一個簡單的完成文,只用文字,不要標籤。

CompletionInfo(Int64, Int32, ICharSequence, ICharSequence)

建立包含文字與標籤的完整完成文件。

CompletionInfo(Int64, Int32, String, String)

建立包含文字與標籤的完整完成文件。

CompletionInfo(Int64, Int32, ICharSequence)

建立一個簡單的完成文,只用文字,不要標籤。

[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

參數

id
Int64

一個可以依照原貌通過的 ID(由編輯者自行決定)

index
Int32

一個被直接傳遞的索引。 通常這是編輯器內完成列表中的索引。

text
ICharSequence

選擇此補全時應插入編輯器的文字。

屬性

備註

建立一個簡單的完成文,只用文字,不要標籤。

的 android.view.inputmethod.CompletionInfo.CompletionInfo(long, int, java.lang.CharSequence)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

CompletionInfo(Int64, Int32, String)

建立一個簡單的完成文,只用文字,不要標籤。

[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

參數

id
Int64

識別碼可由編輯自行決定不更改地通過。

index
Int32

此補全的原始位置,通常是其在編輯器補全列表中的索引。

text
String

當選擇此補全時,插入到編輯器中的文字。

屬性

備註

的 android.view.inputmethod.CompletionInfo.CompletionInfo(long, int, java.lang.CharSequence)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

CompletionInfo(Int64, Int32, ICharSequence, ICharSequence)

建立包含文字與標籤的完整完成文件。

[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

參數

id
Int64

一個可以依照原貌通過的 ID(由編輯者自行決定)

index
Int32

一個被直接傳遞的索引。 通常這是編輯器內完成列表中的索引。

text
ICharSequence

選擇此補全時應插入編輯器的文字。

label
ICharSequence

IME 應該顯示在完成清單中的文字。

屬性

備註

建立包含文字與標籤的完整完成文件。 文字會入編輯器,而標籤則是 IME 應該顯示的。 如果兩者相同,則使用沒有「標籤」參數的建構子版本。

的 android.view.inputmethod.CompletionInfo.CompletionInfo(long, int, java.lang.CharSequence, java.lang.CharSequence)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

CompletionInfo(Int64, Int32, String, String)

建立包含文字與標籤的完整完成文件。

[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

參數

id
Int64

識別碼可由編輯自行決定不更改地通過。

index
Int32

此補全的原始位置,通常是其在編輯器補全列表中的索引。

text
String

當選擇此補全時,插入到編輯器中的文字。

label
String

輸入法編輯器應在完成清單中顯示的文字。

屬性

備註

的 android.view.inputmethod.CompletionInfo.CompletionInfo(long, int, java.lang.CharSequence, java.lang.CharSequence)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於