Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

capacitor-plugin-diagnostics

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-plugin-diagnostics

rewrite of the cordova.plugins.diagnostic

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

capacitor-plugin-diagnostics

rewrite of the cordova.plugins.diagnostic

Install

npm install capacitor-plugin-diagnostics
npx cap sync

API

  • isFeatureAuthorized(...)
  • requestAuthorization(...)
  • isGpsLocationEnabled()
  • getCurrentBatteryLevel()
  • Interfaces

isFeatureAuthorized(...)

isFeatureAuthorized(options: RequestAuthorizationOptions) => Promise<RequestAuthorizationStatus>
ParamType
optionsRequestAuthorizationOptions

Returns: Promise<RequestAuthorizationStatus>

requestAuthorization(...)

requestAuthorization(options: RequestAuthorizationOptions) => Promise<void>
ParamType
optionsRequestAuthorizationOptions

isGpsLocationEnabled()

isGpsLocationEnabled() => Promise<{ enabled: boolean; }>

Returns: Promise<{ enabled: boolean; }>

getCurrentBatteryLevel()

getCurrentBatteryLevel() => Promise<{ level: number; }>

Returns: Promise<{ level: number; }>

Interfaces

RequestAuthorizationStatus

PropType
authorizedboolean
statestring

RequestAuthorizationOptions

PropType
featurestring
modestring

Keywords

capacitor

FAQs

Package last updated on 03 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts