DatauseBatteryRead device battery level and charging state (where supported).Copy for AIView as MarkdownOpen in ChatGPTOpen in ClaudeAPIuseBattery.d.tstsuseBattery(): BatteryStateView source on GitHubRelated hooksuseFetchDeclarative fetch with loading and error status.useGeoLocationBrowser geolocation state.useAsyncRun an async function and track its loading, error, and value state.useFullscreenusePermission