getQuotaForOrigin method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebStorage.getQuotaForOrigin', apiUrl: 'https://developer.android.com/reference/android/webkit/WebStorage#getQuotaForOrigin(java.lang.String,%20android.webkit.ValueCallback%3Cjava.lang.Long%3E)')])
Future<int> getQuotaForOrigin({
  1. required String origin,
})

Gets the storage quota for the Web SQL Database API for the given origin. The quota is given in bytes and the origin is specified using its string representation. Note that a quota is not enforced on a per-origin basis for the Application Cache API.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • origin: all platforms

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

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'WebStorage.getQuotaForOrigin',
      apiUrl:
          'https://developer.android.com/reference/android/webkit/WebStorage#getQuotaForOrigin(java.lang.String,%20android.webkit.ValueCallback%3Cjava.lang.Long%3E)',
    ),
  ],
)
Future<int> getQuotaForOrigin({required String origin}) {
  throw UnimplementedError(
    'getQuotaForOrigin is not implemented on the current platform',
  );
}