npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cordova-plugin-chrome-apps-system-storage

v1.2.2

Published

This plugin provides the ability to query storage device information and be notified when a removable storage device is attached and detached.

Downloads

12

Readme

chrome.system.storage Plugin

This plugin provides the ability to query storage device information and be notified when a removable storage device is attached and detached.

In general, storage on mobile devices is handled differently than on desktop. The plugin is designed to provide consistent behaviour with desktop usage, but there are notable differences.

A summary of the similarities and differences:

  • Each mobile device has built-in storage (on both Android and iOS). This is reported as storage unit, similar to the physical hard drive in a desktop

  • Neither Android nor iOS officially support external storage attached via cable, like USB devices for desktops. Instead, both platforms expect only special-purpose accessories to be attached by cable (see Android and iOS)

  • Many Android devices will support an SD card for external storage. As of Android 4.4, the SDK has also added support for multiple SD cards. If found, the plugin will report any SD card(s) as storage units, similar to USB storage devices on desktop

Status

The implementation of various functionality, across platforms, is summarized in the table below.

| Method / Event | Android | iOS | | -------------- |:-------:|:----:| | getInfo | Yes | Yes1 | | ejectDevice | Yes2 | Yes | | getAvailableCapacity | Yes | Yes | | onAttached | Yes3 | No-op4 | | onDetached | Yes3 | No-op4 |

  1. As iOS does not support generic storages devices, nor SD cards, this method will only ever return a single storage unit (representing built-in storage).

  2. On Android, this method will always return "in use" for any removable storage - it is not currently supported to eject/unmount an SD card programmatically.

  3. On Android, these events will start the app, even if it is not already running.

  4. As above, no iOS devices support removable storage. Thus, these events are implemented as a no-op (listeners can be attached, but will never be fired).

Reference

The API reference is here.

Release Notes

1.2.2 (April 30, 2015)

  • Renamed plugin to pubilsh to NPM

1.2.1 (Mar 17, 2015)

  • Remove version constraint on backgroundapp dependency due to plugman bug CB-8696

1.2.0 (Mar 17, 2015)

  • Use org.chromium.backgroundapp to handle background events

1.1.2 (Nov 26, 2014)

  • Make Java 1.6 compatible

1.1.1 (November 17, 2014)

  • Add Android support for ejectDevice, getAvailableCapacity, onAttached/onDetached
  • Add iOS support for all methods/events

1.0.1 (October 21, 2014)

  • Documentation updates.

1.0.0

  • Initial release