nativescript-android-toast

0.3.0 • Public • Published

Nativescript Android Toast

npm GitHub Build Status npm GitHub issues Status Twitter Follow

Installation:

tns plugin add nativescript-android-toast


API (Methods)

MakeToast(text : String, duration : "long" or "short");

API (Properties)

Property Type Require Description
text String Required Text you want to toast
duration String Optional "long" or "short" duration

Demo

Demo 1 Demo 2
Demo 1 Demo 2

Usage

TypeScript

import Toast from "nativescript-android-toast";

showToast() {
    Toast.MakeToast("Hello Typescript","short");
}

<Button text="click" (tap)="showToast();">

JavaScript

var Toast = require("nativescript-android-toast");

showToast() {
    Toast.MakeToast("Hello Javascript","long");
}

https://developer.android.com/reference/android/widget/Toast

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.03latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.03
0.2.00
0.1.01

Package Sidebar

Install

npm i nativescript-android-toast

Weekly Downloads

4

Version

0.3.0

License

MIT

Unpacked Size

212 kB

Total Files

7

Last publish

Collaborators

  • iamabs2001