Dela via


WebChromeClient.OnPermissionRequest(PermissionRequest) Method

Definition

Notify the host application that web content is requesting permission to access the specified resources and the permission currently isn't granted or denied.

[Android.Runtime.Register("onPermissionRequest", "(Landroid/webkit/PermissionRequest;)V", "GetOnPermissionRequest_Landroid_webkit_PermissionRequest_Handler")]
public virtual void OnPermissionRequest (Android.Webkit.PermissionRequest? request);
[<Android.Runtime.Register("onPermissionRequest", "(Landroid/webkit/PermissionRequest;)V", "GetOnPermissionRequest_Landroid_webkit_PermissionRequest_Handler")>]
abstract member OnPermissionRequest : Android.Webkit.PermissionRequest -> unit
override this.OnPermissionRequest : Android.Webkit.PermissionRequest -> unit

Parameters

request
PermissionRequest

the PermissionRequest from current web content.

Attributes

Remarks

Notify the host application that web content is requesting permission to access the specified resources and the permission currently isn't granted or denied. The host application must invoke PermissionRequest#grant(String[]) or PermissionRequest#deny().

If this method isn't overridden, the permission is denied.

Java documentation for android.webkit.WebChromeClient.onPermissionRequest(android.webkit.PermissionRequest).

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