1.0.8 • Published 6 years ago

odandb-cordova-plugin v1.0.8

Weekly downloads
1
License
MIT
Repository
-
Last release
6 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

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago