Socket
Socket
Sign inDemoInstall

@danyalwe/capacitor-systeminfo

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @danyalwe/capacitor-systeminfo

Get access to every info about the device software and hardware!


Version published
Weekly downloads
3
Maintainers
1
Install size
49.3 kB
Created
Weekly downloads
 

Changelog

Source

0.0.2

Patch Changes

  • c264728: Fixed definitions

Readme

Source

Capacitor Plugin - SystemInfo

Get access to every info about the device software and hardware!

Supported Android version: 21+
Supported iOS version: Not supported
Supported Browsers: Chromium-based

Install

npm install @danyalwe/capacitor-systeminfo
npx cap sync

Todos

  • Improve documentation, add JSDoc strings
  • Add support for iOS
  • Add CPU usage

Supported methods

NameAndroidiOSWeb
getInfos
start
stop
addListener
removeAllListeners

Supported properties

SoftwareInfosAndroidiOSWeb
osName
osVersion
brandName
sdkVersion
sdkName
securityPatch
uiVersion
deviceID
boardName
bootloaderVersion
supportedABIs
HardwareInfosAndroidiOSWeb
manufacturer
features
totalCores
totalRAM
totalHDD
totalSD
modelID
modelCodeName
cpuModel
cpuCores
RuntimeInfosAndroidiOSWeb
usedRAM
usedHDD
usedSD

API

  • getInfos()
  • start()
  • stop()
  • addListener('runtimeChange', ...)
  • removeAllListeners()
  • Interfaces
  • Type Aliases

getInfos()

getInfos() => Promise<SystemInformations>

Returns: Promise<SystemInformations>


start()

start() => Promise<void>

stop()

stop() => Promise<void>

addListener('runtimeChange', ...)

addListener(eventName: 'runtimeChange', listenerFunc: (event: RuntimeInfos) => void) => Promise<PluginListenerHandle>
ParamType
eventName'runtimeChange'
listenerFunc(event: RuntimeInfos) => void

Returns: Promise<PluginListenerHandle>


removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

SoftwareInfos
PropType
osNamestring
osVersionstring
brandNamestring
sdkVersionnumber
sdkNamestring
securityPatchstring
uiVersionstring
deviceIDstring
boardNamestring
bootloaderVersionstring
supportedABIsstring[]
HardwareInfos
PropType
modelIDstring
modelCodeNamestring
cpuModelstring
cpuCores[number, number][]
totalSDnumber
totalHDDnumber
totalRAMnumber
totalCoresnumber
manufacturerstring
featuresFeatures[]
PluginListenerHandle
PropType
remove() => Promise<void>
RuntimeInfos
PropType
usedRAMnumber
usedHDDnumber
usedSDnumber

Type Aliases

SystemInformations

SoftwareInfos & HardwareInfos

Features

'bluetooth' | 'bluetoothLowEnergy' | 'microphone' | 'speaker' | 'nfc' | 'camera' | 'gamepad' | 'gps' | 'touchscreen' | 'wifi' | 'fingerprint' | 'face' | 'ethernet'

Keywords

FAQs

Last updated on 12 Sep 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc