dff-cordova-plugin-common

2.0.12-0 • Public • Published

dff.CordovaPlugin.Common

Supported Platforms

  • Android

Plugin@latest

  • Android: 2.0.12-0

Installation

$ cordova plugin add https://github.com/dff-solutions/dff.CordovaPlugin.Common.git

Usage

Actions

onLog

/**
 * Listen to logs from any plugin.
 *
 * @name onLog
 * @param {function} success Success callback
 * @param {function} error Error callback
 */
CommonPlugin
    .onLog(function (log) {
        console.log(log.type, log.tag, log.msg);
    }, function(reason) {
        console.log(reason);
    });

setSystemProperty

/**
 * Set a Java system property.
 * Args key value pairs are interpreted as system properties.
 *
 * @name setSystemProperty
 * @param {function} success Success callback
 * @param {function} error Error callback
 * @param {Object} args Named argument
 */
CommonPlugin
    .setSystemProperty(function () {
        console.log('success');
    }, function(reason) {
        console.log(reason);
    }, {
        "http.keepAlive": "false"
    });

Documentation

Package Sidebar

Install

npm i dff-cordova-plugin-common

Weekly Downloads

1

Version

2.0.12-0

License

none

Unpacked Size

586 kB

Total Files

99

Last publish

Collaborators

  • pradeepsankar
  • patrickweinert
  • dipikag07