Storage.getUsageAndQuota

Returns usage and quota in bytes.

{
  "name": "getUsageAndQuota",
  "parameters": [
    {
      "name": "origin",
      "type": "string",
      "description": "Security origin."
    }
  ],
  "returns": [
    {
      "name": "usage",
      "type": "number",
      "description": "Storage usage (bytes)."
    },
    {
      "name": "quota",
      "type": "number",
      "description": "Storage quota (bytes)."
    },
    {
      "name": "usageBreakdown",
      "type": "array",
      "items": {
        "$ref": "UsageForType"
      },
      "description": "Storage usage per type (bytes)."
    }
  ],
  "description": "Returns usage and quota in bytes."
}