isBlockedByScreenTime method

  1. @SupportedPlatforms(platforms: [IOSPlatform(available: '26.0', apiName: 'WKWebView.isBlockedByScreenTime', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebview/isblockedbyscreentime'), MacOSPlatform(available: '26.0', apiName: 'WKWebView.isBlockedByScreenTime', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebview/isblockedbyscreentime')])
Future<bool> isBlockedByScreenTime()

Returns whether Screen Time is currently blocking this WebView.

Officially Supported Platforms/Implementations:

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

Implementation

@SupportedPlatforms(
  platforms: [
    IOSPlatform(
      available: '26.0',
      apiName: 'WKWebView.isBlockedByScreenTime',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wkwebview/isblockedbyscreentime',
    ),
    MacOSPlatform(
      available: '26.0',
      apiName: 'WKWebView.isBlockedByScreenTime',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wkwebview/isblockedbyscreentime',
    ),
  ],
)
Future<bool> isBlockedByScreenTime() {
  throw UnimplementedError(
    '${PlatformInAppWebViewControllerMethod.isBlockedByScreenTime.name} is not implemented on the current platform',
  );
}