https://github.com/iamabs2001/nativescript-android-toast
Toast Plugin for Nativescript Android Devices
https://github.com/iamabs2001/nativescript-android-toast
android nativescript nativescript-android-toast nativescript-toast plugin showtoast toast
Last synced: about 1 month ago
JSON representation
Toast Plugin for Nativescript Android Devices
- Host: GitHub
- URL: https://github.com/iamabs2001/nativescript-android-toast
- Owner: iamabs2001
- License: mit
- Created: 2020-12-22T08:50:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-05T11:20:08.000Z (over 5 years ago)
- Last Synced: 2025-06-17T01:02:36.681Z (12 months ago)
- Topics: android, nativescript, nativescript-android-toast, nativescript-toast, plugin, showtoast, toast
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/nativescript-android-toast
- Size: 195 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nativescript Android Toast


[](https://travis-ci.com/iamabs2001/nativescript-android-toast)




## Installation:
``` tns plugin add nativescript-android-toast ```
## API (Methods)
```javascript
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 |
| ----------- | ----------- |
|  |  |
## Usage
### TypeScript
```typescript
import Toast from "nativescript-android-toast";
showToast() {
Toast.MakeToast("Hello Typescript","short");
}
```
```html
```
### JavaScript
```javascript
var Toast = require("nativescript-android-toast");
showToast() {
Toast.MakeToast("Hello Javascript","long");
}
```
https://developer.android.com/reference/android/widget/Toast