Sprache

InputMethodService.OnStartConnectionlessStylusHandwriting Methode

Definition

Wird aufgerufen, wenn eine App anfordert, eine verbindungslose Eingabestift-Handschriftsitzung mit einer der EingabemethodenManager.startConnectionlessStylusHandwriting(View,CursorAnchorInfo,Executor,ConnectionlessHandwritingCallback), InputMethodManager.startConnectionlessStylusHandwritingForDelegation(View,CursorAnchorInfo,Executor,ConnectionlessHandwritingCallback) oder 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

Parameter

inputType
Int32
cursorAnchorInfo
CursorAnchorInfo

Gibt zurück

Attribute

Hinweise

Wird aufgerufen, wenn eine App anfordert, eine verbindungslose Eingabestift-Handschriftsitzung mit einer der EingabemethodenManager.startConnectionlessStylusHandwriting(View,CursorAnchorInfo,Executor,ConnectionlessHandwritingCallback), InputMethodManager.startConnectionlessStylusHandwritingForDelegation(View,CursorAnchorInfo,Executor,ConnectionlessHandwritingCallback) oder InputMethodManager.startConnectionlessStylusHandwritingForDelegation(View,CursorAnchorInfo,String,Executor, ConnectionlessHandwritingCallback).

Eine verbindungslose Eingabestift-Handschriftsitzung unterscheidet sich von einer normalen Sitzung, bei der eine Eingabeverbindung nicht für die Kommunikation mit einem Text-Editor verwendet wird. Stattdessen wird der erkannte Text übermittelt, wenn der IME die verbindungslose Sitzung mit finishConnectionlessStylusHandwriting(CharSequence) beendet.

Wenn der IME die verbindungslose Handschriftsitzung starten kann, sollte sie "true" zurückgeben, stellen Sie sicher, dass die Freihandansichten an die getStylusHandwritingWindow() angefügt sind, und behandeln Sie Eingabestifteingaben, die von onStylusHandwritingMotionEvent(MotionEvent) auf dem getStylusHandwritingWindow() empfangen wurden.

Android-Referenz für android.inputmethodservice.InputMethodService.onStartConnectionlessStylusHandwriting.

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: