Sdílet prostřednictvím


View.SetAllowedHandwritingDelegatorPackage(String) Method

Definition

Specifies that a view from the specified package may act as a handwriting delegator for this delegate editor view.

[Android.Runtime.Register("setAllowedHandwritingDelegatorPackage", "(Ljava/lang/String;)V", "GetSetAllowedHandwritingDelegatorPackage_Ljava_lang_String_Handler", ApiSince=34)]
public virtual void SetAllowedHandwritingDelegatorPackage (string? allowedPackageName);
[<Android.Runtime.Register("setAllowedHandwritingDelegatorPackage", "(Ljava/lang/String;)V", "GetSetAllowedHandwritingDelegatorPackage_Ljava_lang_String_Handler", ApiSince=34)>]
abstract member SetAllowedHandwritingDelegatorPackage : string -> unit
override this.SetAllowedHandwritingDelegatorPackage : string -> unit

Parameters

allowedPackageName
String

the package name of a delegator view linked to this delegate editor view, or null to restore the default behavior of only allowing delegator views from the same package as this delegate editor view

Attributes

Remarks

Specifies that a view from the specified package may act as a handwriting delegator for this delegate editor view. If this method is not called, only views from the same package as this delegate editor view may act as a handwriting delegator. This method allows specifying a different trusted package which may contain a delegator view linked to this delegate editor view.

This method has no effect unless #setIsHandwritingDelegate is also called to configure this view to act as a handwriting delegate.

If this method is called on the delegate editor view, then #setAllowedHandwritingDelegatePackage should also be called on the delegator view.

Java documentation for android.view.View.setAllowedHandwritingDelegatorPackage(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