preconnect method

  1. @SupportedPlatforms(platforms: [AndroidPlatform(apiName: 'Profile.preconnect', apiUrl: 'https://developer.android.com/reference/androidx/webkit/Profile#preconnect(java.lang.String)', available: '110', note: 'Requires [WebViewFeature.PRECONNECT].')])
Future<bool> preconnect({
  1. required String containerId,
  2. required String url,
})

Preconnects to the origin of url on the Android profile.

This can speed up a later navigation without starting a full prefetch.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'Profile.preconnect',
      apiUrl:
          'https://developer.android.com/reference/androidx/webkit/Profile#preconnect(java.lang.String)',
      available: '110',
      note: 'Requires [WebViewFeature.PRECONNECT].',
    ),
  ],
)
Future<bool> preconnect({
  required String containerId,
  required String url,
}) {
  throw UnimplementedError(
    'preconnect is not implemented on the current platform',
  );
}