語言

InputMethodManager.StartConnectionlessStylusHandwriting 方法

定義

啟動無連接觸控筆手寫會。

[Android.Runtime.Register("startConnectionlessStylusHandwriting", "(Landroid/view/View;Landroid/view/inputmethod/CursorAnchorInfo;Ljava/util/concurrent/Executor;Landroid/view/inputmethod/ConnectionlessHandwritingCallback;)V", "", ApiSince=35)]
public void StartConnectionlessStylusHandwriting(Android.Views.View view, Android.Views.InputMethods.CursorAnchorInfo? cursorAnchorInfo, Java.Util.Concurrent.IExecutor callbackExecutor, Android.Views.InputMethods.IConnectionlessHandwritingCallback callback);
[<Android.Runtime.Register("startConnectionlessStylusHandwriting", "(Landroid/view/View;Landroid/view/inputmethod/CursorAnchorInfo;Ljava/util/concurrent/Executor;Landroid/view/inputmethod/ConnectionlessHandwritingCallback;)V", "", ApiSince=35)>]
member this.StartConnectionlessStylusHandwriting : Android.Views.View * Android.Views.InputMethods.CursorAnchorInfo * Java.Util.Concurrent.IExecutor * Android.Views.InputMethods.IConnectionlessHandwritingCallback -> unit

參數

view
View

視圖接收觸控筆事件

cursorAnchorInfo
CursorAnchorInfo

關於視角接收觸控筆事件的位置資訊

callbackExecutor
IExecutor

執行者來執行回調

callback
IConnectionlessHandwritingCallback

回撥以接收結果

屬性

備註

啟動無連接觸控筆手寫會。 無連線會話與一般的觸控筆手寫會話不同,IME 不會使用輸入連線與文字編輯器溝通。 IME 會直接透過回調回傳可識別的手寫文字。

{code cursorAnchorInfo} 可被 IME 用來提升手寫辨識的準確度及手寫會話的使用者體驗。 通常使用無連線手寫來呈現看起來像文字編輯器但實際上不支援文字編輯的視圖。 為了達到最佳效果,{code cursorAnchorInfo} 應該像真實文字編輯器一樣填入(例如,插入標記的位置可以設定在使用者預期的位置,即使沒有可見游標)。

Java 文件 android.view.inputmethod.InputMethodManager.startConnectionlessStylusHandwriting(android.view.View, android.view.inputmethod.CursorAnchorInfo, java.util.concurrent.Executor, android.view.inputmethod.ConnectionlessHandwritingCallback)。

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

適用於