1.0.8 • Published 7 years ago

odandb-cordova-plugin v1.0.8

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

Cordova ODANDB Plugin

Basic template for iOS and Android Cordova plugin.

Usage (JS) :

cordova plugin add odandb-cordova-plugin

*********

document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
    this.receivedEvent('deviceready');
    // ODANDB plugin
    var odbcp = new OdandbCordovaPlugin();
    odbcp.echo("Message", function (result) {
        console.log("Success", result);
    }, function (result) {
        console.log("Error", result);
    });
}

Usage (TS) :

ionic cordova plugin add odandb-cordova-plugin

*********

import...
declare var OdandbCordovaPlugin: any;

export class MyApp {
    ...
    constructor(platform: Platform...) {
        platform.ready().then(() => {
            ...
            let odbcp = new OdandbCordovaPlugin();
            odbcp.echo("Message", (result) => {
                console.log("Success", result);
            }, (result) => {
                console.log("Error", result);
            });
        });
    }
}
1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago