0.0.6 • Published 2 years ago

capacitor-sys-cpu v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

capacitor-sys-cpu

Capacitor plugin for obtaining system CPU utilization.

Install

npm install capacitor-sys-cpu
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


getCpuInfo()

getCpuInfo() => Promise<CpuInfo>

Returns: Promise<CpuInfo>


getOnlineCpus()

getOnlineCpus() => Promise<OnlineInfo>

Returns: Promise<OnlineInfo>


getZoneTemp(...)

getZoneTemp(options: { zone: Number; }) => Promise<{ temp: number; }>
ParamType
options{ zone: Number; }

Returns: Promise<{ temp: number; }>


Interfaces

CpuInfo

PropType
loadnumber

OnlineInfo

PropType
onlinestring

Number

An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers.

MethodSignatureDescription
toString(radix?: number | undefined) => stringReturns a string representation of an object.
toFixed(fractionDigits?: number | undefined) => stringReturns a string representing a number in fixed-point notation.
toExponential(fractionDigits?: number | undefined) => stringReturns a string containing a number represented in exponential notation.
toPrecision(precision?: number | undefined) => stringReturns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
valueOf() => numberReturns the primitive value of the specified object.
0.0.5

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago