New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

capacitor-temperature

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-temperature

The DeviceTemperature is a Capacitor plugin that provides an easy-to-use interface to access the current temperature of the user's device.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

capacitor-temperature

The DeviceTemperature is a Capacitor plugin that provides an easy-to-use interface to access the current temperature of the user's device.

Install

npm install capacitor-temperature
npx cap sync

API

  • getTemperature()
  • addListener('temperatureUpdate', ...)
  • Interfaces

getTemperature()

getTemperature() => Promise<{ temperature: number; }>

Returns: Promise<{ temperature: number; }>

addListener('temperatureUpdate', ...)

addListener(eventName: 'temperatureUpdate', listenerFunc: (data: { temperature: number; }) => void) => PluginListenerHandle
ParamType
eventName'temperatureUpdate'
listenerFunc(data: { temperature: number; }) => void

Returns: PluginListenerHandle

Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

Keywords

capacitor

FAQs

Package last updated on 26 Jul 2023

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