androidOnPermissionRequest method

Future<PermissionRequestResponse?>? androidOnPermissionRequest(
  1. String origin,
  2. List<String> resources
)
inherited

Event fired when the WebView is requesting permission to access the specified resources and the permission currently isn't granted or denied.

origin represents the origin of the web page which is trying to access the restricted resources.

resources represents the array of resources the web content wants to access.

NOTE: available only on Android 21+.

Official Android API: https://developer.android.com/reference/android/webkit/WebChromeClient#onPermissionRequest(android.webkit.PermissionRequest)

Implementation

Future<PermissionRequestResponse?>? androidOnPermissionRequest(
    String origin, List<String> resources) {
  return null;
}