言語

InputMethodService.OnStartStylusHandwriting メソッド

定義

アプリがスタイラス手書き InputMethodManager#startStylusHandwriting(View)を要求したときに呼び出されます。

[Android.Runtime.Register("onStartStylusHandwriting", "()Z", "GetOnStartStylusHandwritingHandler", ApiSince=33)]
public virtual bool OnStartStylusHandwriting();
[<Android.Runtime.Register("onStartStylusHandwriting", "()Z", "GetOnStartStylusHandwritingHandler", ApiSince=33)>]
abstract member OnStartStylusHandwriting : unit -> bool
override this.OnStartStylusHandwriting : unit -> bool

返品

true IME が要求を受け入れる場合は、現時点で IME が使用できない場合は false

属性

注釈

アプリがスタイラス手書き InputMethodManager#startStylusHandwriting(View)を要求したときに呼び出されます。

これは常に、スタイラスの手書きが要求されているEditorInfoInputConnection#onStartInput(EditorInfo, boolean)で先行します。

IME が現在の入力の手書きをサポートしている場合は、trueを返し、その手描き入力ビューが#getStylusHandwritingWindow()にアタッチされていることを確認し、#getCurrentInputConnection()経由で#getStylusHandwritingWindow()#onStylusHandwritingMotionEvent(MotionEvent)から受信したスタイラス入力を処理する必要があります。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象