prefetchUrl method

  1. @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({
  1. required String containerId,
  2. required String url,
})

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',
  );
}