hasContainer method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'ProfileStore.getProfile', apiUrl: 'https://developer.android.com/reference/androidx/webkit/ProfileStore', available: '110'), IOSPlatform(apiName: 'WKWebsiteDataStore.fetchAllDataStoreIdentifiers', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/4041132-fetchalldatastoreidentifiers', available: '17.0'), MacOSPlatform(apiName: 'WKWebsiteDataStore.fetchAllDataStoreIdentifiers', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/4041132-fetchalldatastoreidentifiers', available: '14.0'), WindowsPlatform(apiName: 'CoreWebView2Environment userDataFolder', apiUrl: 'https://learn.microsoft.com/microsoft-edge/webview2/concepts/user-data-folder'), LinuxPlatform(apiName: 'WebKitWebsiteDataManager persistent directories', apiUrl: 'https://webkitgtk.org/reference/webkit2gtk/stable/class.WebsiteDataManager.html')])
Future<bool> hasContainer(
  1. String containerId
)

Returns whether containerId exists.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'ProfileStore.getProfile',
      apiUrl:
          'https://developer.android.com/reference/androidx/webkit/ProfileStore',
      available: '110',
    ),
    IOSPlatform(
      apiName: 'WKWebsiteDataStore.fetchAllDataStoreIdentifiers',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/4041132-fetchalldatastoreidentifiers',
      available: '17.0',
    ),
    MacOSPlatform(
      apiName: 'WKWebsiteDataStore.fetchAllDataStoreIdentifiers',
      apiUrl:
          'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/4041132-fetchalldatastoreidentifiers',
      available: '14.0',
    ),
    WindowsPlatform(
      apiName: 'CoreWebView2Environment userDataFolder',
      apiUrl:
          'https://learn.microsoft.com/microsoft-edge/webview2/concepts/user-data-folder',
    ),
    LinuxPlatform(
      apiName: 'WebKitWebsiteDataManager persistent directories',
      apiUrl:
          'https://webkitgtk.org/reference/webkit2gtk/stable/class.WebsiteDataManager.html',
    ),
  ],
)
Future<bool> hasContainer(String containerId) {
  throw UnimplementedError(
    'hasContainer is not implemented on the current platform',
  );
}