InputMethodManager.StartConnectionlessStylusHandwriting Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Starts a connectionless stylus handwriting session.
[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
Parameters
- view
- View
the view receiving stylus events
- cursorAnchorInfo
- CursorAnchorInfo
positional information about the view receiving stylus events
- callbackExecutor
- IExecutor
the executor to run the callback on
- callback
- IConnectionlessHandwritingCallback
the callback to receive the result
- Attributes
Remarks
Starts a connectionless stylus handwriting session. A connectionless session differs from a regular stylus handwriting session in that the IME does not use an input connection to communicate with a text editor. Instead, the IME directly returns recognised handwritten text via a callback.
The {code cursorAnchorInfo} may be used by the IME to improve the handwriting recognition accuracy and user experience of the handwriting session. Usually connectionless handwriting is used for a view which appears like a text editor but does not really support text editing. For best results, the {code cursorAnchorInfo} should be populated as it would be for a real text editor (for example, the insertion marker location can be set to where the user would expect it to be, even if there is no visible cursor).
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.