{
  "api": {
    "name": "DevicePlugin",
    "slug": "deviceplugin",
    "docs": "Public JavaScript API for the Device Capacitor plugin.\n\nThis interface defines a stable, platform-agnostic API.\nAll methods behave consistently across Android, iOS, and Web.",
    "tags": [],
    "methods": [
      {
        "name": "getId",
        "signature": "() => Promise<DeviceId>",
        "parameters": [],
        "returns": "Promise<DeviceId>",
        "tags": [
          {
            "text": "A promise resolving to the device identifier.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst { identifier } = await Device.getId();\nconsole.log('Device ID:', identifier);\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Return an unique identifier for the device.",
        "complexTypes": [
          "DeviceId"
        ],
        "slug": "getid"
      },
      {
        "name": "getInfo",
        "signature": "() => Promise<DeviceInfo>",
        "parameters": [],
        "returns": "Promise<DeviceInfo>",
        "tags": [
          {
            "text": "A promise resolving to comprehensive device information.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst info = await Device.getInfo();\nconsole.log(`${info.manufacturer} ${info.model}`);\nconsole.log(`${info.operatingSystem} ${info.osVersion}`);\nconsole.log(`Virtual: ${info.isVirtual}`);\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Return information about the underlying device/os/platform.",
        "complexTypes": [
          "DeviceInfo"
        ],
        "slug": "getinfo"
      },
      {
        "name": "getBatteryInfo",
        "signature": "() => Promise<BatteryInfo>",
        "parameters": [],
        "returns": "Promise<BatteryInfo>",
        "tags": [
          {
            "text": "A promise resolving to the current battery level and charging state.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst battery = await Device.getBatteryInfo();\nconst percent = Math.round((battery.batteryLevel ?? 0) * 100);\nconsole.log(`Battery: ${percent}% — ${battery.isCharging ? 'charging' : 'on battery'}`);\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Return information about the battery.",
        "complexTypes": [
          "BatteryInfo"
        ],
        "slug": "getbatteryinfo"
      },
      {
        "name": "getLanguageCode",
        "signature": "() => Promise<GetLanguageCodeResult>",
        "parameters": [],
        "returns": "Promise<GetLanguageCodeResult>",
        "tags": [
          {
            "text": "A promise resolving to the two-character language code.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst { value } = await Device.getLanguageCode();\nconsole.log('Language:', value); // \"en\", \"es\", \"it\"\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Get the device's current language locale code.",
        "complexTypes": [
          "GetLanguageCodeResult"
        ],
        "slug": "getlanguagecode"
      },
      {
        "name": "getLanguageTag",
        "signature": "() => Promise<LanguageTag>",
        "parameters": [],
        "returns": "Promise<LanguageTag>",
        "tags": [
          {
            "text": "A promise resolving to the BCP 47 language tag.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst { value } = await Device.getLanguageTag();\nconsole.log('Language tag:', value); // \"en-US\", \"es-ES\", \"it-IT\"\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Get the device's current language locale tag.",
        "complexTypes": [
          "LanguageTag"
        ],
        "slug": "getlanguagetag"
      },
      {
        "name": "getBatteryExtras",
        "signature": "() => Promise<BatteryExtras>",
        "parameters": [],
        "returns": "Promise<BatteryExtras>",
        "tags": [
          {
            "text": "A promise resolving to battery charge source, detailed state, and platform-specific extras.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst extras = await Device.getBatteryExtras();\nconsole.log(`Charging via: ${extras.chargeSource}`); // \"ac\", \"usb\", \"wireless\"\nconsole.log(`State: ${extras.detailedState}`);       // \"charging\", \"full\", \"unplugged\"\n\n// Android-only fields\nif (extras.health) {\n  console.log(`Battery health: ${extras.health}`);   // \"good\", \"overheat\", \"dead\"\n}\nif (extras.temperature) {\n  console.log(`Temperature: ${extras.temperature}°C`);\n}\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Return extended battery information including charge source and detailed state.\n\nThe `health` and `temperature` fields are only available on Android.\nOn web, throws `unavailable`.",
        "complexTypes": [
          "BatteryExtras"
        ],
        "slug": "getbatteryextras"
      },
      {
        "name": "getDisplayInfo",
        "signature": "() => Promise<DisplayInfo>",
        "parameters": [],
        "returns": "Promise<DisplayInfo>",
        "tags": [
          {
            "text": "A promise resolving to screen dimensions and display properties.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst display = await Device.getDisplayInfo();\nconsole.log(`Screen: ${display.widthPx}×${display.heightPx}`);\nconsole.log(`Density: ${display.densityDpi} DPI (${display.scale}x)`);\nconsole.log(`Refresh rate: ${display.refreshRateHz} Hz`);\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Return display characteristics (resolution, density, refresh rate).\n\nOn web, returns partial data from `window.screen`. Refresh rate defaults to 60 Hz\nas web does not reliably expose this value.",
        "complexTypes": [
          "DisplayInfo"
        ],
        "slug": "getdisplayinfo"
      },
      {
        "name": "getConfiguration",
        "signature": "() => Promise<DeviceConfiguration>",
        "parameters": [],
        "returns": "Promise<DeviceConfiguration>",
        "tags": [
          {
            "text": "A promise resolving to the current device configuration and accessibility settings.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst config = await Device.getConfiguration();\nconsole.log(`Orientation: ${config.orientation}`);\nconsole.log(`Dark mode: ${config.isDarkMode}`);\nconsole.log(`Font scale: ${config.fontScale}x`);\nconsole.log(`Device type: ${config.idiom}`);       // \"phone\", \"tablet\", \"desktop\"\nconsole.log(`Screen size: ${config.screenSize}`);  // \"small\", \"normal\", \"large\", \"xlarge\"\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Return device configuration and user preferences (orientation, dark mode, font scale).\n\nOn web, returns partial data from `matchMedia` and `screen.orientation`.\n`idiom` defaults to `\"phone\"` and `screenSize` defaults to `\"normal\"` on web.",
        "complexTypes": [
          "DeviceConfiguration"
        ],
        "slug": "getconfiguration"
      },
      {
        "name": "getPowerState",
        "signature": "() => Promise<PowerState>",
        "parameters": [],
        "returns": "Promise<PowerState>",
        "tags": [
          {
            "text": "A promise resolving to the current power and thermal state.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst power = await Device.getPowerState();\nif (power.isLowPowerMode) {\n  // Reduce animations, defer background sync, lower frame rate\n  console.log('Low power mode active — reducing workload');\n}\nif (power.thermalState === 'serious' || power.thermalState === 'critical') {\n  // Pause heavy computation, skip video processing\n  console.log(`Thermal throttling detected: ${power.thermalState}`);\n}\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Return power and thermal state information.\n\nUse this to adapt app behavior when the device is in power-saving mode\nor experiencing thermal throttling.\n\nOnly available on iOS and Android. On web, throws `unavailable`.",
        "complexTypes": [
          "PowerState"
        ],
        "slug": "getpowerstate"
      },
      {
        "name": "getMemoryInfo",
        "signature": "() => Promise<MemoryInfo>",
        "parameters": [],
        "returns": "Promise<MemoryInfo>",
        "tags": [
          {
            "text": "A promise resolving to device memory and CPU information.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst memory = await Device.getMemoryInfo();\nconst ramMB = Math.round(memory.physicalRam / (1024 * 1024));\nconsole.log(`RAM: ${ramMB} MB — ${memory.cpuCores} cores`);\nconsole.log(`Memory budget: ${memory.memoryClassMb} MB`);\n\nif (memory.isLowRamDevice) {\n  // Reduce image cache, skip animations, use smaller thumbnails\n  console.log('Low RAM device — using reduced features');\n}\n\n// CPU usage (delta-based, null on first call)\nif (memory.cpuUsagePercent != null) {\n  console.log(`CPU usage: ${memory.cpuUsagePercent.toFixed(1)}%`);\n}\n\n// Memory pressure\nif (memory.memoryPressure === 'critical') {\n  console.log('Critical memory pressure — release cached resources');\n}\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Return memory information (physical RAM, CPU cores, memory class) and\noptional CPU usage and memory pressure readings.\n\nUse this to adapt cache sizes, parallelism, and feature gating based on\ndevice capabilities. `cpuUsagePercent` requires two calls to produce a\nvalue (delta-based); the first call returns `null`.\n\nOn web, returns partial data from `navigator.deviceMemory` and\n`performance.memory` (Chrome only). `cpuUsagePercent` and `memoryPressure`\nare always `null`/`\"unknown\"` on web.",
        "complexTypes": [
          "MemoryInfo"
        ],
        "slug": "getmemoryinfo"
      },
      {
        "name": "getStorageInfo",
        "signature": "() => Promise<StorageInfo>",
        "parameters": [],
        "returns": "Promise<StorageInfo>",
        "tags": [
          {
            "text": "A promise resolving to total, free, and used storage in bytes.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst storage = await Device.getStorageInfo();\nconst freeGB = (storage.freeBytes / (1024 * 1024 * 1024)).toFixed(1);\nconsole.log(`Free storage: ${freeGB} GB (${storage.usedPercent.toFixed(0)}% used)`);\n\nif (storage.usedPercent > 90) {\n  console.log('Storage almost full — suggest cleanup to user');\n}\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Return disk storage information for the primary data volume.\n\nOn web, uses `navigator.storage.estimate()` which is available in\nmost modern browsers. Returns zeros if unavailable.",
        "complexTypes": [
          "StorageInfo"
        ],
        "slug": "getstorageinfo"
      },
      {
        "name": "getSystemUptime",
        "signature": "() => Promise<SystemUptime>",
        "parameters": [],
        "returns": "Promise<SystemUptime>",
        "tags": [
          {
            "text": "A promise resolving to the system uptime in seconds.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst { uptimeSeconds } = await Device.getSystemUptime();\nconst days = Math.floor(uptimeSeconds / 86400);\nconsole.log(`Device uptime: ${days} day(s)`);\n\nif (uptimeSeconds > 7 * 86400) {\n  // Suggest restarting the device after 7+ days\n  console.log('Device has been running for over a week');\n}\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Return system uptime (time since last boot).\n\nUseful for analytics, performance heuristics, and detecting long uptimes\nthat may correlate with degraded performance.\n\nOnly available on iOS and Android. On web, throws `unavailable`.",
        "complexTypes": [
          "SystemUptime"
        ],
        "slug": "getsystemuptime"
      },
      {
        "name": "getAppVersion",
        "signature": "() => Promise<AppVersion>",
        "parameters": [],
        "returns": "Promise<AppVersion>",
        "tags": [
          {
            "text": "A promise resolving to the app version and build number.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst app = await Device.getAppVersion();\nconsole.log(`App version: ${app.version} (build ${app.buildNumber})`);\n\n// Use for update checks or analytics\nanalytics.setAppVersion(app.version);\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Return application version information (version string + build number).",
        "complexTypes": [
          "AppVersion"
        ],
        "slug": "getappversion"
      },
      {
        "name": "addListener",
        "signature": "(eventName: \"batteryChargingStateChange\", listenerFunc: BatteryChargingStateChangeListener) => Promise<PluginListenerHandle>",
        "parameters": [
          {
            "name": "eventName",
            "docs": "",
            "type": "'batteryChargingStateChange'"
          },
          {
            "name": "listenerFunc",
            "docs": "",
            "type": "BatteryChargingStateChangeListener"
          }
        ],
        "returns": "Promise<PluginListenerHandle>",
        "tags": [
          {
            "text": "```ts\nconst handle = await Device.addListener('batteryChargingStateChange', (info) => {\n  console.log(`Charging: ${info.isCharging ? 'yes' : 'no'}`);\n});\n\n// Later, remove the listener\nawait handle.remove();\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Listen for changes to whether the device is charging (including when the battery becomes full while plugged in).\n\nThe listener fires only when the charging state **changes**. It is not invoked at subscription time.",
        "complexTypes": [
          "PluginListenerHandle",
          "BatteryChargingStateChangeListener"
        ],
        "slug": "addlistenerbatterychargingstatechange-"
      },
      {
        "name": "removeAllListeners",
        "signature": "() => Promise<void>",
        "parameters": [],
        "returns": "Promise<void>",
        "tags": [
          {
            "text": "```ts\nawait Device.removeAllListeners();\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Remove all listeners for this plugin.",
        "complexTypes": [],
        "slug": "removealllisteners"
      },
      {
        "name": "getPluginVersion",
        "signature": "() => Promise<PluginVersionResult>",
        "parameters": [],
        "returns": "Promise<PluginVersionResult>",
        "tags": [
          {
            "text": "A promise resolving to the plugin version.",
            "name": "returns"
          },
          {
            "text": "```ts\nconst { version } = await Device.getPluginVersion();\nconsole.log('Plugin version:', version);\n```",
            "name": "example"
          },
          {
            "text": "8.0.0",
            "name": "since"
          }
        ],
        "docs": "Returns the native plugin version.\n\nThe returned version corresponds to the native implementation\nbundled with the application.",
        "complexTypes": [
          "PluginVersionResult"
        ],
        "slug": "getpluginversion"
      }
    ],
    "properties": []
  },
  "interfaces": [
    {
      "name": "DeviceId",
      "slug": "deviceid",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "identifier",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The identifier of the device as available to the app. This identifier may change\non modern mobile platforms that only allow per-app install ids.\n\nOn iOS, the identifier is a UUID that uniquely identifies a device to the app's vendor\n([read more](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor)).\n\nOn Android 8+, __the identifier is a 64-bit number (expressed as a hexadecimal string)__, unique to each combination\nof app-signing key, user, and device\n([read more](https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID)).\n\nOn web, a random identifier is generated and stored on localStorage for subsequent calls.\nIf localStorage is not available a new random identifier will be generated on every call.",
          "complexTypes": [],
          "type": "string"
        }
      ]
    },
    {
      "name": "DeviceInfo",
      "slug": "deviceinfo",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "name",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The name of the device. For example, \"John's iPhone\".\n\nThis is only supported on iOS and Android 7.1 or above.\n\nOn iOS 16+ this will return a generic device name without the appropriate\n[entitlements](https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_device-information_user-assigned-device-name).",
          "complexTypes": [],
          "type": "string | undefined"
        },
        {
          "name": "model",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The device model. For example, \"iPhone13,4\".",
          "complexTypes": [],
          "type": "string"
        },
        {
          "name": "platform",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The device platform (lowercase).",
          "complexTypes": [],
          "type": "'ios' | 'android' | 'web'"
        },
        {
          "name": "operatingSystem",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The operating system of the device.",
          "complexTypes": [
            "OperatingSystem"
          ],
          "type": "OperatingSystem"
        },
        {
          "name": "osVersion",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The version of the device OS.",
          "complexTypes": [],
          "type": "string"
        },
        {
          "name": "iOSVersion",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The iOS version number.\n\nOnly available on iOS.\n\nMulti-part version numbers are crushed down into an integer padded to two-digits, ex: `\"16.3.1\"` -> `160301`",
          "complexTypes": [],
          "type": "number | undefined"
        },
        {
          "name": "androidSDKVersion",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The Android SDK version number.\n\nOnly available on Android.",
          "complexTypes": [],
          "type": "number | undefined"
        },
        {
          "name": "manufacturer",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The manufacturer of the device.",
          "complexTypes": [],
          "type": "string"
        },
        {
          "name": "isVirtual",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Whether the app is running in a simulator/emulator.",
          "complexTypes": [],
          "type": "boolean"
        },
        {
          "name": "memUsed",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Approximate memory used by the current app, in bytes. Divide by\n1048576 to get the number of MBs used.",
          "complexTypes": [],
          "type": "number | undefined"
        },
        {
          "name": "diskFree",
          "tags": [
            {
              "text": "Use `realDiskFree`.",
              "name": "deprecated"
            },
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "How much free disk space is available on the normal data storage\npath for the os, in bytes.\n\nOn Android it returns the free disk space on the \"system\"\npartition holding the core Android OS.\nOn iOS this value is not accurate.",
          "complexTypes": [],
          "type": "number | undefined"
        },
        {
          "name": "diskTotal",
          "tags": [
            {
              "text": "Use `realDiskTotal`.",
              "name": "deprecated"
            },
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The total size of the normal data storage path for the OS, in bytes.\n\nOn Android it returns the disk space on the \"system\"\npartition holding the core Android OS.",
          "complexTypes": [],
          "type": "number | undefined"
        },
        {
          "name": "realDiskFree",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "How much free disk space is available on the normal data storage, in bytes.",
          "complexTypes": [],
          "type": "number | undefined"
        },
        {
          "name": "realDiskTotal",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The total size of the normal data storage path, in bytes.",
          "complexTypes": [],
          "type": "number | undefined"
        },
        {
          "name": "webViewVersion",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The web view browser version",
          "complexTypes": [],
          "type": "string"
        }
      ]
    },
    {
      "name": "BatteryInfo",
      "slug": "batteryinfo",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "batteryLevel",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "A percentage (0 to 1) indicating how much the battery is charged.",
          "complexTypes": [],
          "type": "number | undefined"
        },
        {
          "name": "isCharging",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Whether the device is charging.",
          "complexTypes": [],
          "type": "boolean | undefined"
        }
      ]
    },
    {
      "name": "GetLanguageCodeResult",
      "slug": "getlanguagecoderesult",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "value",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Two character language code.",
          "complexTypes": [],
          "type": "string"
        }
      ]
    },
    {
      "name": "LanguageTag",
      "slug": "languagetag",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "value",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Returns a well-formed IETF BCP 47 language tag.",
          "complexTypes": [],
          "type": "string"
        }
      ]
    },
    {
      "name": "BatteryExtras",
      "slug": "batteryextras",
      "docs": "Extended battery information including charge source and detailed state.",
      "tags": [
        {
          "text": "8.0.0",
          "name": "since"
        }
      ],
      "methods": [],
      "properties": [
        {
          "name": "chargeSource",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The current charge source.\n\n- `\"ac\"` — AC adapter\n- `\"usb\"` — USB port\n- `\"wireless\"` — Wireless charging\n- `\"unknown\"` — Charge source not determinable",
          "complexTypes": [],
          "type": "'unknown' | 'ac' | 'usb' | 'wireless'"
        },
        {
          "name": "detailedState",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "The detailed battery state.\n\n- `\"unknown\"` — Battery state is unknown\n- `\"unplugged\"` — Not connected to a power source\n- `\"charging\"` — Connected and charging\n- `\"full\"` — Connected and fully charged\n- `\"not-charging\"` — Connected but not charging (e.g. battery temperature limit)",
          "complexTypes": [],
          "type": "'unknown' | 'unplugged' | 'charging' | 'full' | 'not-charging'"
        },
        {
          "name": "health",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Battery health status.\n\nOnly available on Android.\n\n- `\"good\"` — Battery is in good condition\n- `\"overheat\"` — Battery is overheating\n- `\"dead\"` — Battery is dead\n- `\"unknown\"` — Health status not available\n- `\"cold\"` — Battery is too cold\n- `\"unspecified\"` — Health status not reported",
          "complexTypes": [],
          "type": "'unknown' | 'good' | 'overheat' | 'dead' | 'cold' | 'unspecified' | undefined"
        },
        {
          "name": "temperature",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Battery temperature in degrees Celsius.\n\nOnly available on Android. iOS does not expose battery temperature\nthrough public APIs.",
          "complexTypes": [],
          "type": "number | undefined"
        }
      ]
    },
    {
      "name": "DisplayInfo",
      "slug": "displayinfo",
      "docs": "Display characteristics of the device screen.",
      "tags": [
        {
          "text": "8.0.0",
          "name": "since"
        }
      ],
      "methods": [],
      "properties": [
        {
          "name": "widthPx",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Screen width in physical pixels.",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "heightPx",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Screen height in physical pixels.",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "densityDpi",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Screen density in DPI (dots per inch).\n\nCommon values: 160 (mdpi), 240 (hdpi), 320 (xhdpi), 480 (xxhdpi), 640 (xxxhdpi).",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "scale",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Display scale factor.\n\nOn iOS this corresponds to `UIScreen.main.scale` (e.g. 2.0, 3.0).\nOn Android this is `DisplayMetrics.density` (e.g. 1.0, 1.5, 2.0, 3.0).",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "refreshRateHz",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Maximum display refresh rate in Hz.\n\nOn iOS this corresponds to `UIScreen.main.maximumFramesPerWindow`.\nOn Android this corresponds to `Display.getRefreshRate()`.",
          "complexTypes": [],
          "type": "number"
        }
      ]
    },
    {
      "name": "DeviceConfiguration",
      "slug": "deviceconfiguration",
      "docs": "Device configuration and user preferences.",
      "tags": [
        {
          "text": "8.0.0",
          "name": "since"
        }
      ],
      "methods": [],
      "properties": [
        {
          "name": "orientation",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Current interface orientation.\n\n- `\"portrait\"` — Device is in portrait orientation\n- `\"landscape\"` — Device is in landscape orientation\n- `\"unknown\"` — Orientation cannot be determined",
          "complexTypes": [],
          "type": "'unknown' | 'portrait' | 'landscape'"
        },
        {
          "name": "isDarkMode",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Whether the device is in dark mode.\n\nOn iOS this corresponds to `UITraitCollection.userInterfaceStyle`.\nOn Android this corresponds to `Configuration.uiMode`.",
          "complexTypes": [],
          "type": "boolean"
        },
        {
          "name": "fontScale",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "User's preferred text size multiplier.\n\nA value of `1.0` means default text size. Values above 1.0 indicate\nthe user has increased text size for accessibility.\n\nOn iOS this corresponds to `UIContentSizeCategory` converted to a numeric scale.\nOn Android this corresponds to `Configuration.fontScale`.",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "idiom",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Device form factor / idiom.\n\n- `\"phone\"` — iPhone or small Android phone\n- `\"tablet\"` — iPad or Android tablet\n- `\"desktop\"` — Mac Catalyst or desktop mode\n- `\"unknown\"` — Cannot determine form factor",
          "complexTypes": [],
          "type": "'desktop' | 'unknown' | 'phone' | 'tablet'"
        },
        {
          "name": "screenSize",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Screen size category relative to standard phone dimensions.\n\n- `\"small\"` — Smaller than normal phone\n- `\"normal\"` — Standard phone\n- `\"large\"` — Large phone / small tablet\n- `\"xlarge\"` — Tablet or larger\n- `\"unknown\"` — Cannot determine",
          "complexTypes": [],
          "type": "'unknown' | 'small' | 'normal' | 'large' | 'xlarge'"
        }
      ]
    },
    {
      "name": "PowerState",
      "slug": "powerstate",
      "docs": "Device power and thermal state.",
      "tags": [
        {
          "text": "8.0.0",
          "name": "since"
        }
      ],
      "methods": [],
      "properties": [
        {
          "name": "isLowPowerMode",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Whether the device is in low power / battery saver mode.\n\nOn iOS this corresponds to `ProcessInfo.isLowPowerModeEnabled`.\nOn Android this corresponds to `PowerManager.isPowerSaveMode()`.",
          "complexTypes": [],
          "type": "boolean"
        },
        {
          "name": "thermalState",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Current thermal state of the device.\n\n- `\"nominal\"` — No thermal issues\n- `\"fair\"` — Thermal level is elevated but manageable\n- `\"serious\"` — Device is actively throttling performance\n- `\"critical\"` — Device is severely throttling; reduce workload immediately\n\nOn iOS this corresponds to `ProcessInfo.thermalState`.\nOn Android this is derived from battery temperature and system thermal APIs.",
          "complexTypes": [],
          "type": "'nominal' | 'fair' | 'serious' | 'critical'"
        }
      ]
    },
    {
      "name": "MemoryInfo",
      "slug": "memoryinfo",
      "docs": "Device memory information beyond the basic `memUsed` field.",
      "tags": [
        {
          "text": "8.0.0",
          "name": "since"
        }
      ],
      "methods": [],
      "properties": [
        {
          "name": "physicalRam",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Total physical RAM available on the device, in bytes.",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "cpuCores",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Number of active CPU cores available for the app.\n\nThis may be less than the total core count on devices with\nheterogeneous CPU architectures (big.LITTLE, etc.).",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "memoryClassMb",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Standard app memory budget in MB.\n\nOn iOS this corresponds to `ProcessInfo.physicalMemory` (full RAM available to the app).\nOn Android this corresponds to `ActivityManager.getMemoryClass()`.",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "isLowRamDevice",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Whether the device is classified as a low-RAM device.\n\nOn Android this corresponds to `ActivityManager.isLowRamDevice()`.\nOn iOS this is always `false` (Apple does not expose this classification).",
          "complexTypes": [],
          "type": "boolean"
        },
        {
          "name": "isEstimated",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Whether the returned values are estimated or measured.\n\nWhen `true`, the data comes from a fallback path or partial reading\nand should not be treated as authoritative.",
          "complexTypes": [],
          "type": "boolean | undefined"
        },
        {
          "name": "cpuUsagePercent",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Current CPU usage as a percentage (0–100), measured as a delta between two samples.\n\nThe first call always returns `null`. Subsequent calls return the average CPU\nusage across all cores since the previous call.\n\nOn iOS this uses `host_statistics(HOST_CPU_LOAD_INFO)` Mach API.\nOn Android this uses `/proc/stat` delta parsing.\nOn web this is always `null`.",
          "complexTypes": [],
          "type": "number | null | undefined"
        },
        {
          "name": "memoryPressure",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "System memory pressure level, derived from available memory and OS signals.\n\n- `\"normal\"` — Sufficient free memory\n- `\"warning\"` — Available memory is below a safe threshold\n- `\"critical\"` — Device is under severe memory pressure; reduce allocation immediately\n- `\"unknown\"` — Pressure level cannot be determined\n\nOn iOS this maps from `ProcessInfo.physicalMemory` vs. free memory ratio.\nOn Android this maps from `ActivityManager.MemoryInfo.lowMemory` and `availMem` thresholds.\nOn web this is always `\"unknown\"`.",
          "complexTypes": [],
          "type": "'unknown' | 'normal' | 'critical' | 'warning' | undefined"
        }
      ]
    },
    {
      "name": "StorageInfo",
      "slug": "storageinfo",
      "docs": "Disk storage information for the primary data volume.",
      "tags": [
        {
          "text": "8.0.0",
          "name": "since"
        }
      ],
      "methods": [],
      "properties": [
        {
          "name": "isEstimated",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Whether the returned values are estimated or measured.\n\nWhen `true`, the underlying OS call failed and zero-filled defaults\nwere returned. Consumers should treat these values as placeholders.",
          "complexTypes": [],
          "type": "boolean"
        },
        {
          "name": "totalBytes",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Total storage capacity of the volume, in bytes.",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "freeBytes",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Free (available) storage on the volume, in bytes.\n\nOn iOS this uses `URLResourceKey.volumeAvailableCapacityForImportantUsageKey`.\nOn Android this uses `StatFs` on the data directory.",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "usedBytes",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Used storage on the volume, in bytes (`totalBytes - freeBytes`).",
          "complexTypes": [],
          "type": "number"
        },
        {
          "name": "usedPercent",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Percentage of storage used (0–100).",
          "complexTypes": [],
          "type": "number"
        }
      ]
    },
    {
      "name": "SystemUptime",
      "slug": "systemuptime",
      "docs": "System uptime information.",
      "tags": [
        {
          "text": "8.0.0",
          "name": "since"
        }
      ],
      "methods": [],
      "properties": [
        {
          "name": "uptimeSeconds",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Time in seconds since the device was last booted.\n\nOn iOS this corresponds to `ProcessInfo.systemUptime`.\nOn Android this corresponds to `SystemClock.elapsedRealtime()`.",
          "complexTypes": [],
          "type": "number"
        }
      ]
    },
    {
      "name": "AppVersion",
      "slug": "appversion",
      "docs": "Application version information.",
      "tags": [
        {
          "text": "8.0.0",
          "name": "since"
        }
      ],
      "methods": [],
      "properties": [
        {
          "name": "version",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Human-readable version string (e.g. \"1.2.3\").\n\nOn iOS this corresponds to `CFBundleShortVersionString`.\nOn Android this corresponds to `PackageInfo.versionName`.",
          "complexTypes": [],
          "type": "string"
        },
        {
          "name": "buildNumber",
          "tags": [
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Numeric build number used for update detection.\n\nOn iOS this corresponds to `CFBundleVersion`.\nOn Android this corresponds to `PackageInfo.versionCode`.",
          "complexTypes": [],
          "type": "number"
        }
      ]
    },
    {
      "name": "PluginListenerHandle",
      "slug": "pluginlistenerhandle",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "remove",
          "tags": [],
          "docs": "",
          "complexTypes": [],
          "type": "() => Promise<void>"
        }
      ]
    },
    {
      "name": "PluginVersionResult",
      "slug": "pluginversionresult",
      "docs": "Result object returned by the `getPluginVersion()` method.",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "version",
          "tags": [],
          "docs": "The native plugin version string.",
          "complexTypes": [],
          "type": "string"
        }
      ]
    }
  ],
  "enums": [],
  "typeAliases": [
    {
      "name": "OperatingSystem",
      "slug": "operatingsystem",
      "docs": "",
      "types": [
        {
          "text": "'ios'",
          "complexTypes": []
        },
        {
          "text": "'android'",
          "complexTypes": []
        },
        {
          "text": "'windows'",
          "complexTypes": []
        },
        {
          "text": "'mac'",
          "complexTypes": []
        },
        {
          "text": "'unknown'",
          "complexTypes": []
        }
      ]
    },
    {
      "name": "BatteryChargingStateChangeListener",
      "slug": "batterychargingstatechangelistener",
      "docs": "Callback for battery charging state changes.\n\nThe listener fires only when the charging state **changes** (e.g. the\ncharger is connected or disconnected). It is not invoked at subscription\ntime and emits nothing while the state stays the same; read\n`getBatteryInfo()` for the current snapshot instead.",
      "types": [
        {
          "text": "(info: BatteryInfo): void",
          "complexTypes": [
            "BatteryInfo"
          ]
        }
      ]
    }
  ],
  "pluginConfigs": [
    {
      "name": "Device",
      "slug": "device",
      "properties": [
        {
          "name": "verboseLogging",
          "tags": [
            {
              "text": "false",
              "name": "default"
            },
            {
              "text": "true",
              "name": "example"
            },
            {
              "text": "8.0.0",
              "name": "since"
            }
          ],
          "docs": "Enables verbose native logging.\n\nWhen enabled, additional debug information is printed\nto the native console (Logcat on Android, Xcode on iOS).\n\nThis option affects native logging behavior only and\nhas no impact on the JavaScript API.",
          "complexTypes": [],
          "type": "boolean | undefined"
        }
      ],
      "docs": "Configuration options for the Device plugin."
    }
  ]
}