New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-memory-alert

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

cordova-plugin-memory-alert

Cordova plugin dispatching iOS native memory events to javascript.

  • 0.8.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

cordova-plugin-memory-alert

Cordova plugin designed to dispatch native memory events to javascript. Current version is only propagating iOS memory warnings.

Basic usage

window.addEventListener('cordova-plugin-memory-alert.memoryWarning',
  function () {
    console.log('received a memory warning');
  }
);

cordova.plugins.CordovaPluginMemoryAlert.activate(true);

API

CordovaPluginMemoryAlert.activate

Activate or disable event propagation (turned off by default).

cordova.plugins.CordovaPluginMemoryAlert.activate(value);
  • value: boolean, true to activate, false to disable.

CordovaPluginMemoryAlert.setEventName

Set the name of the event emitted on window when a memory warning is received. Default value is cordova-plugin-memory-alert.memoryWarning

cordova.plugins.CordovaPluginMemoryAlert.setEventName(eventName);
  • eventName: string
Quick example
cordova.plugins.CordovaPluginMemoryAlert.setEventName('memWarning');
window.addEventListener('memWarning', function () { console.log('received a memory warning'); });
cordova.plugins.CordovaPluginMemoryAlert.activate(true);

Keywords

FAQs

Package last updated on 01 Sep 2017

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc