isStartupFeatureSupported method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebViewFeature.isStartupFeatureSupported', apiUrl: 'https://developer.android.com/reference/androidx/webkit/WebViewFeature#isStartupFeatureSupported(android.content.Context,java.lang.String)')])
Future<bool> isStartupFeatureSupported(
  1. WebViewFeature startupFeature
)

Return whether a startup feature is supported at run-time. On devices running Android version Build.VERSION_CODES.LOLLIPOP and higher, this will check whether a startup feature is supported, depending on the combination of the desired feature, the Android version of device, and the WebView APK on the device. If running on a device with a lower API level, this will always return false.

Note: This method is different from isFeatureSupported and this method only accepts startup features. Please verify that the correct feature checking method is used for a particular feature.

Note: If this method returns false, it is not safe to invoke the methods requiring the desired feature. Furthermore, if this method returns false for a particular feature, any callback guarded by that feature will not be invoked.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • startupFeature: all platforms

Use the PlatformWebViewFeature.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'WebViewFeature.isStartupFeatureSupported',
      apiUrl:
          'https://developer.android.com/reference/androidx/webkit/WebViewFeature#isStartupFeatureSupported(android.content.Context,java.lang.String)',
    ),
  ],
)
Future<bool> isStartupFeatureSupported(WebViewFeature startupFeature) {
  throw UnimplementedError(
    'isStartupFeatureSupported is not implemented on the current platform',
  );
}