InputMethodService.GetTextForImeActionFormatted(ImeAction) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳可用作給定 EditorInfo#imeOptions EditorInfo.imeOptions按鈕標籤的文字。
[Android.Runtime.Register("getTextForImeAction", "(I)Ljava/lang/CharSequence;", "GetGetTextForImeAction_IHandler")]
public virtual Java.Lang.ICharSequence? GetTextForImeActionFormatted(Android.Views.InputMethods.ImeAction imeOptions);
[<Android.Runtime.Register("getTextForImeAction", "(I)Ljava/lang/CharSequence;", "GetGetTextForImeAction_IHandler")>]
abstract member GetTextForImeActionFormatted : Android.Views.InputMethods.ImeAction -> Java.Lang.ICharSequence
override this.GetTextForImeActionFormatted : Android.Views.InputMethods.ImeAction -> Java.Lang.ICharSequence
參數
- imeOptions
- ImeAction
該值由 EditorInfo#imeOptions EditorInfo.imeOptions。
傳回
回傳一個標籤以供使用,若無動作則回傳 null。
- 屬性
備註
回傳可用作給定 EditorInfo#imeOptions EditorInfo.imeOptions按鈕標籤的文字。 若未請求動作,則回傳 null。 請注意,回傳的文字不一定會很短,因此你大概不希望把它當作軟鍵標籤上的文字使用。
Java 文件 android.inputmethodservice.InputMethodService.getTextForImeAction(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。