onPermissionRequestCanceled property
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebChromeClient.onPermissionRequestCanceled', apiUrl: 'https://developer.android.com/reference/android/webkit/WebChromeClient#onPermissionRequestCanceled(android.webkit.PermissionRequest)', available: '21')])
final
Notify the host application that the given permission request has been canceled. Any related UI should therefore be hidden.
permissionRequest represents the permission request that needs be canceled
with an array of resources the web content wants to access
and the origin of the web page which is trying to access the restricted resources.
Officially Supported Platforms/Implementations:
- Android WebView 21+ (Official API - WebChromeClient.onPermissionRequestCanceled)
Parameters - Officially Supported Platforms/Implementations:
permissionRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebChromeClient.onPermissionRequestCanceled',
apiUrl:
'https://developer.android.com/reference/android/webkit/WebChromeClient#onPermissionRequestCanceled(android.webkit.PermissionRequest)',
available: '21',
),
],
)
final void Function(T controller, PermissionRequest permissionRequest)?
onPermissionRequestCanceled;