prefetchUrl method
- @SupportedPlatforms(platforms: [AndroidPlatform(apiName: 'Profile.prefetchUrlAsync', apiUrl: 'https://developer.android.com/reference/androidx/webkit/Profile#prefetchUrlAsync(java.lang.String,androidx.webkit.PrefetchParameters,java.util.concurrent.Executor,androidx.webkit.OutcomeReceiver)', available: '110', note: 'Requires [WebViewFeature.PROFILE_URL_PREFETCH].')])
Prefetches url into the Android profile HTTP cache.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'Profile.prefetchUrlAsync',
apiUrl:
'https://developer.android.com/reference/androidx/webkit/Profile#prefetchUrlAsync(java.lang.String,androidx.webkit.PrefetchParameters,java.util.concurrent.Executor,androidx.webkit.OutcomeReceiver)',
available: '110',
note: 'Requires [WebViewFeature.PROFILE_URL_PREFETCH].',
),
],
)
Future<bool> prefetchUrl({
required String containerId,
required String url,
}) {
throw UnimplementedError(
'prefetchUrl is not implemented on the current platform',
);
}