getQuotaForOrigin method
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:
- Android native WebView (Official API - WebStorage.getQuotaForOrigin)
Implementation
@override
Future<int> getQuotaForOrigin({required String origin}) async {
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent("origin", () => origin);
return await channel?.invokeMethod<int>('getQuotaForOrigin', args) ?? 0;
}