0.0.2 • Published 8 years ago

cordova-plugin-toaster v0.0.2

Weekly downloads
2
License
Apache 2.0
Repository
github
Last release
8 years ago

npm version

Cordova Toaster Plugin

This plugin provides a way to use native toasts of android devices.

Installation

cordova plugin add cordova-plugin-toaster

This plugin defines methods on navigator.notification and navigator.

Although in the global scope, they are not available until after the deviceready event.

Usage example:

document.addEventListener("deviceready", onDeviceReady, false);

function onDeviceReady() {
    navigator.showToast('Your toast\'s text here');
}

Methods

  • showToast - to show toast

Supported Platforms

  • Android

Interface

Interface