Skip to content

πŸŒ™πŸ¦‰ Cordova plugin for keeping a watchful eye on network usage stats.

License

Notifications You must be signed in to change notification settings

EvanWieland/cordova-plugin-netto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŒ™πŸ¦‰ Cordova Netto Plugin

Cordova plugin for keeping a watchful eye on network usage stats.

Purpose

Netto returns an app's data usage (in bytes) since it was first launched. Data usage statistics will be reset when the app is killed.

Installation

cordova plugin add cordova-netto-plugin

Supported Platforms

  • Android
  • iOS

Properties

  • Netto.traffic

Example

Netto.traffic(
    function(traffic){
        // traffic returns: 
        // {
        // receivedBytes: 103424, 
        // transmittedBytes: 6144, 
        // totalBytes: 109568
        // }
    },
    function(error){
        console.error(error); // Returns error
    }
);

About

πŸŒ™πŸ¦‰ Cordova plugin for keeping a watchful eye on network usage stats.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published