InputMethodManager.AcceptStylusHandwritingDelegation Method

Definition

Overloads

AcceptStylusHandwritingDelegation(View)

Accepts and starts a stylus handwriting session on the delegate view, if handwriting initiation delegation was previously requested using #prepareStylusHandwritingDelegation(View) from the delegator.

AcceptStylusHandwritingDelegation(View, String)

Accepts and starts a stylus handwriting session on the delegate view, if handwriting initiation delegation was previously requested using #prepareStylusHandwritingDelegation(View, String) from the delegator and the view belongs to a specified delegate package.

AcceptStylusHandwritingDelegation(View, String, IExecutor, IConsumer)

Accepts and starts a stylus handwriting session on the delegate view, if handwriting initiation delegation was previously requested using #prepareStylusHandwritingDelegation(View, String) from the delegator and the view belongs to a specified delegate package.

AcceptStylusHandwritingDelegation(View, String, HandwritingDelegateFlag, IExecutor, IConsumer)

Accepts and starts a stylus handwriting session on the delegate view, if handwriting initiation delegation was previously requested using #prepareStylusHandwritingDelegation(View, String) from the delegator and the view belongs to a specified delegate package.

AcceptStylusHandwritingDelegation(View)

Accepts and starts a stylus handwriting session on the delegate view, if handwriting initiation delegation was previously requested using #prepareStylusHandwritingDelegation(View) from the delegator.

[Android.Runtime.Register("acceptStylusHandwritingDelegation", "(Landroid/view/View;)Z", "", ApiSince=34)]
public bool AcceptStylusHandwritingDelegation (Android.Views.View delegateView);
[<Android.Runtime.Register("acceptStylusHandwritingDelegation", "(Landroid/view/View;)Z", "", ApiSince=34)>]
member this.AcceptStylusHandwritingDelegation : Android.Views.View -> bool

Parameters

delegateView
View

delegate view capable of receiving input via InputConnection

Returns

true if view belongs to same application package as used in #prepareStylusHandwritingDelegation(View) and delegation is accepted

Attributes

Remarks

Accepts and starts a stylus handwriting session on the delegate view, if handwriting initiation delegation was previously requested using #prepareStylusHandwritingDelegation(View) from the delegator.

Note: If delegator and delegate are in different application packages, use #acceptStylusHandwritingDelegation(View, String) instead.

Java documentation for android.view.inputmethod.InputMethodManager.acceptStylusHandwritingDelegation(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

AcceptStylusHandwritingDelegation(View, String)

Accepts and starts a stylus handwriting session on the delegate view, if handwriting initiation delegation was previously requested using #prepareStylusHandwritingDelegation(View, String) from the delegator and the view belongs to a specified delegate package.

[Android.Runtime.Register("acceptStylusHandwritingDelegation", "(Landroid/view/View;Ljava/lang/String;)Z", "", ApiSince=34)]
public bool AcceptStylusHandwritingDelegation (Android.Views.View delegateView, string delegatorPackageName);
[<Android.Runtime.Register("acceptStylusHandwritingDelegation", "(Landroid/view/View;Ljava/lang/String;)Z", "", ApiSince=34)>]
member this.AcceptStylusHandwritingDelegation : Android.Views.View * string -> bool

Parameters

delegateView
View

delegate view capable of receiving input via InputConnection

delegatorPackageName
String

package name of the delegator that handled initial stylus stroke.

Returns

true if view belongs to allowed delegate package declared in #prepareStylusHandwritingDelegation(View, String) and delegation is accepted

Attributes

Remarks

Accepts and starts a stylus handwriting session on the delegate view, if handwriting initiation delegation was previously requested using #prepareStylusHandwritingDelegation(View, String) from the delegator and the view belongs to a specified delegate package.

Note: If delegator and delegate are in the same application package, use #acceptStylusHandwritingDelegation(View) instead.

Java documentation for android.view.inputmethod.InputMethodManager.acceptStylusHandwritingDelegation(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

AcceptStylusHandwritingDelegation(View, String, IExecutor, IConsumer)

Accepts and starts a stylus handwriting session on the delegate view, if handwriting initiation delegation was previously requested using #prepareStylusHandwritingDelegation(View, String) from the delegator and the view belongs to a specified delegate package.

[Android.Runtime.Register("acceptStylusHandwritingDelegation", "(Landroid/view/View;Ljava/lang/String;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=35)]
public void AcceptStylusHandwritingDelegation (Android.Views.View delegateView, string delegatorPackageName, Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer callback);
[<Android.Runtime.Register("acceptStylusHandwritingDelegation", "(Landroid/view/View;Ljava/lang/String;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=35)>]
member this.AcceptStylusHandwritingDelegation : Android.Views.View * string * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

delegateView
View

delegate view capable of receiving input via InputConnection on which #startStylusHandwriting(View) will be called.

delegatorPackageName
String

package name of the delegator that handled initial stylus stroke.

executor
IExecutor

The executor to run the callback on.

callback
IConsumer

Consumer callback that provides true if view belongs to allowed delegate package declared in #prepareStylusHandwritingDelegation(View, String) and handwriting session can start.

Attributes

Remarks

Accepts and starts a stylus handwriting session on the delegate view, if handwriting initiation delegation was previously requested using #prepareStylusHandwritingDelegation(View, String) from the delegator and the view belongs to a specified delegate package.

Java documentation for android.view.inputmethod.InputMethodManager.acceptStylusHandwritingDelegation(android.view.View, java.lang.String, java.util.concurrent.Executor, java.util.function.Consumer<java.lang.Boolean>).

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

AcceptStylusHandwritingDelegation(View, String, HandwritingDelegateFlag, IExecutor, IConsumer)

Accepts and starts a stylus handwriting session on the delegate view, if handwriting initiation delegation was previously requested using #prepareStylusHandwritingDelegation(View, String) from the delegator and the view belongs to a specified delegate package.

[Android.Runtime.Register("acceptStylusHandwritingDelegation", "(Landroid/view/View;Ljava/lang/String;ILjava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=35)]
public void AcceptStylusHandwritingDelegation (Android.Views.View delegateView, string delegatorPackageName, Android.Views.InputMethods.HandwritingDelegateFlag flags, Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer callback);
[<Android.Runtime.Register("acceptStylusHandwritingDelegation", "(Landroid/view/View;Ljava/lang/String;ILjava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "", ApiSince=35)>]
member this.AcceptStylusHandwritingDelegation : Android.Views.View * string * Android.Views.InputMethods.HandwritingDelegateFlag * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

delegateView
View

delegate view capable of receiving input via InputConnection

delegatorPackageName
String

package name of the delegator that handled initial stylus stroke.

flags
HandwritingDelegateFlag

#HANDWRITING_DELEGATE_FLAG_HOME_DELEGATOR_ALLOWED or 0

executor
IExecutor

The executor to run the callback on.

callback
IConsumer

true> would be received if delegation was accepted.

Attributes

Remarks

Accepts and starts a stylus handwriting session on the delegate view, if handwriting initiation delegation was previously requested using #prepareStylusHandwritingDelegation(View, String) from the delegator and the view belongs to a specified delegate package.

Note: If delegator and delegate are in the same application package, use #acceptStylusHandwritingDelegation(View) instead.

Java documentation for android.view.inputmethod.InputMethodManager.acceptStylusHandwritingDelegation(android.view.View, java.lang.String, int, java.util.concurrent.Executor, java.util.function.Consumer<java.lang.Boolean>).

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