InputMethodService.GetTextForImeAction(ImeAction) 方法

定義

回傳可用作給定 EditorInfo#imeOptions EditorInfo.imeOptions按鈕標籤的文字。

public string? GetTextForImeAction(Android.Views.InputMethods.ImeAction imeOptions);
member this.GetTextForImeAction : Android.Views.InputMethods.ImeAction -> string

參數

imeOptions
ImeAction

該值由 EditorInfo#imeOptions EditorInfo.imeOptions

傳回

回傳一個標籤以供使用,若無動作則回傳 null。

備註

回傳可用作給定 EditorInfo#imeOptions EditorInfo.imeOptions按鈕標籤的文字。 若未請求動作,則回傳 null。 請注意,回傳的文字不一定會很短,因此你大概不希望把它當作軟鍵標籤上的文字使用。

Java 文件 android.inputmethodservice.InputMethodService.getTextForImeAction(int)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於