InputMethodService.OnStartConnectionlessStylusHandwriting 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.
Called when an app requests to start a connectionless stylus handwriting session using one of InputMethodManager.startConnectionlessStylusHandwriting(View,CursorAnchorInfo,Executor,ConnectionlessHandwritingCallback), InputMethodManager.startConnectionlessStylusHandwritingForDelegation(View,CursorAnchorInfo,Executor,ConnectionlessHandwritingCallback), or InputMethodManager.startConnectionlessStylusHandwritingForDelegation(View,CursorAnchorInfo,String,Executor,ConnectionlessHandwritingCallback).
[Android.Runtime.Register("onStartConnectionlessStylusHandwriting", "(ILandroid/view/inputmethod/CursorAnchorInfo;)Z", "GetOnStartConnectionlessStylusHandwriting_ILandroid_view_inputmethod_CursorAnchorInfo_Handler", ApiSince=35)]
public virtual bool OnStartConnectionlessStylusHandwriting(int inputType, Android.Views.InputMethods.CursorAnchorInfo? cursorAnchorInfo);
[<Android.Runtime.Register("onStartConnectionlessStylusHandwriting", "(ILandroid/view/inputmethod/CursorAnchorInfo;)Z", "GetOnStartConnectionlessStylusHandwriting_ILandroid_view_inputmethod_CursorAnchorInfo_Handler", ApiSince=35)>]
abstract member OnStartConnectionlessStylusHandwriting : int * Android.Views.InputMethods.CursorAnchorInfo -> bool
override this.OnStartConnectionlessStylusHandwriting : int * Android.Views.InputMethods.CursorAnchorInfo -> bool
Parameters
- inputType
- Int32
The input type supplied to the callback; the base request path passes the text class.
- cursorAnchorInfo
- CursorAnchorInfo
Optional cursor-anchor information forwarded from the handwriting request.
Returns
true to signal that the service is ready for the request; otherwise, false. The base implementation returns false.
- Attributes
Remarks
Called when an app requests to start a connectionless stylus handwriting session using one of InputMethodManager.startConnectionlessStylusHandwriting(View,CursorAnchorInfo,Executor,ConnectionlessHandwritingCallback), InputMethodManager.startConnectionlessStylusHandwritingForDelegation(View,CursorAnchorInfo,Executor,ConnectionlessHandwritingCallback), or InputMethodManager.startConnectionlessStylusHandwritingForDelegation(View,CursorAnchorInfo,String,Executor,ConnectionlessHandwritingCallback).
A connectionless stylus handwriting session differs from a regular session in that an input connection is not used to communicate with a text editor. Instead, the recognised text is delivered when the IME finishes the connectionless session using finishConnectionlessStylusHandwriting(CharSequence).
If the IME can start the connectionless handwriting session, it should return true, ensure its inking views are attached to the getStylusHandwritingWindow(), and handle stylus input received from onStylusHandwritingMotionEvent(MotionEvent) on the getStylusHandwritingWindow().
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.