InputMethodManager.PrepareStylusHandwritingDelegation Method

Definition

Overloads

PrepareStylusHandwritingDelegation(View)

Prepares delegation of starting stylus handwriting session to a different editor in same or different window than the view on which initial handwriting stroke was detected.

PrepareStylusHandwritingDelegation(View, String)

Prepares delegation of starting stylus handwriting session to a different editor in same or a different window in a different package than the view on which initial handwriting stroke was detected.

PrepareStylusHandwritingDelegation(View)

Prepares delegation of starting stylus handwriting session to a different editor in same or different window than the view on which initial handwriting stroke was detected.

[Android.Runtime.Register("prepareStylusHandwritingDelegation", "(Landroid/view/View;)V", "", ApiSince=34)]
public void PrepareStylusHandwritingDelegation (Android.Views.View delegatorView);
[<Android.Runtime.Register("prepareStylusHandwritingDelegation", "(Landroid/view/View;)V", "", ApiSince=34)>]
member this.PrepareStylusHandwritingDelegation : Android.Views.View -> unit

Parameters

delegatorView
View

the view that receives initial stylus stroke and delegates it to the actual editor. Its window must View#hasWindowFocus have focus.

Attributes

Remarks

Prepares delegation of starting stylus handwriting session to a different editor in same or different window than the view on which initial handwriting stroke was detected.

Delegation can be used to start stylus handwriting session before the Editor view or its InputConnection is started. Calling this method starts buffering of stylus motion events until #acceptStylusHandwritingDelegation(View) is called, at which point the handwriting session can be started and the buffered stylus motion events will be delivered to the IME. e.g. Delegation can be used when initial handwriting stroke is on a pseudo Editor like widget (with no InputConnection) but actual Editor is on a different window.

Note: If an actual Editor capable of InputConnection is being scribbled upon using stylus, use #startStylusHandwriting(View) instead.

Java documentation for android.view.inputmethod.InputMethodManager.prepareStylusHandwritingDelegation(android.view.View).

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.

Applies to

PrepareStylusHandwritingDelegation(View, String)

Prepares delegation of starting stylus handwriting session to a different editor in same or a different window in a different package than the view on which initial handwriting stroke was detected.

[Android.Runtime.Register("prepareStylusHandwritingDelegation", "(Landroid/view/View;Ljava/lang/String;)V", "", ApiSince=34)]
public void PrepareStylusHandwritingDelegation (Android.Views.View delegatorView, string delegatePackageName);
[<Android.Runtime.Register("prepareStylusHandwritingDelegation", "(Landroid/view/View;Ljava/lang/String;)V", "", ApiSince=34)>]
member this.PrepareStylusHandwritingDelegation : Android.Views.View * string -> unit

Parameters

delegatorView
View

the view that receives initial stylus stroke and delegates it to the actual editor. Its window must View#hasWindowFocus have focus.

delegatePackageName
String

package name that contains actual Editor which should start stylus handwriting session by calling #acceptStylusHandwritingDelegation.

Attributes

Remarks

Prepares delegation of starting stylus handwriting session to a different editor in same or a different window in a different package than the view on which initial handwriting stroke was detected.

Delegation can be used to start stylus handwriting session before the Editor view or its InputConnection is started. Calling this method starts buffering of stylus motion events until #acceptStylusHandwritingDelegation(View, String) is called, at which point the handwriting session can be started and the buffered stylus motion events will be delivered to the IME. e.g. Delegation can be used when initial handwriting stroke is on a pseudo Editor like widget (with no InputConnection) but actual Editor is on a different window in the given package.

Note: If delegator and delegate are in same package use #prepareStylusHandwritingDelegation(View) instead.

Java documentation for android.view.inputmethod.InputMethodManager.prepareStylusHandwritingDelegation(android.view.View, java.lang.String).

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.

Applies to