getAllowContentAccess method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'ServiceWorkerWebSettingsCompat.getAllowContentAccess', apiUrl: 'https://developer.android.com/reference/androidx/webkit/ServiceWorkerWebSettingsCompat#getAllowContentAccess()')])
Gets whether Service Workers support content URL access.
This method should only be called if WebViewFeature.isFeatureSupported returns true for WebViewFeature.SERVICE_WORKER_CONTENT_ACCESS.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - ServiceWorkerWebSettingsCompat.getAllowContentAccess)
Use the PlatformServiceWorkerController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'ServiceWorkerWebSettingsCompat.getAllowContentAccess',
apiUrl:
'https://developer.android.com/reference/androidx/webkit/ServiceWorkerWebSettingsCompat#getAllowContentAccess()',
),
],
)
Future<bool> getAllowContentAccess() {
throw UnimplementedError(
'getAllowContentAccess is not implemented on the current platform',
);
}