次の方法で共有


PermissionRequest.Grant(String[]) Method

Definition

Call this method to grant origin the permission to access the given resources.

[Android.Runtime.Register("grant", "([Ljava/lang/String;)V", "GetGrant_arrayLjava_lang_String_Handler")]
public abstract void Grant (string[]? resources);
[<Android.Runtime.Register("grant", "([Ljava/lang/String;)V", "GetGrant_arrayLjava_lang_String_Handler")>]
abstract member Grant : string[] -> unit

Parameters

resources
String[]

the resources granted to be accessed by origin, to grant request, the requested resources returned by #getResources() must be equals or a subset of granted resources. This parameter is designed to avoid granting permission by accident especially when new resources are requested by web content.

Attributes

Remarks

Call this method to grant origin the permission to access the given resources. The granted permission is only valid for this WebView.

Java documentation for android.webkit.PermissionRequest.grant(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