androidOnPermissionRequest method Null safety

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

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 23+.

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

Implementation

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