chc

com.helloarron.cordova.toast

A cordova Toast plugin

Showing:

Popularity

Downloads/wk

0

GitHub Stars

1

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

0

License

Apache-2.0

Type Definitions

Tree-Shakeable

No?

Categories

Cordova Toast

Readme

cordova-toast

A Cordova Toast plugin for Android

Install plugin

git clone git@github.com:ArronYR/cordova-toast.git

download the plugin in you disk,e.g:E:\\test\

then,switch to the your cordova workspace and use next command:

cordova plugin add E:\\test\

How to use

  • AToast.toast();

    defult toast message is "默认Toast样"

  • AToast.toast("hello cordova pulgin");

  • AToast.toast("hello cordova pulgin", 'SHORT');

    the second argument can be "SHORT" or "LONG"

  • AToast.toast("hello cordova pulgin", 'LONG', ['CENTER', 0, 0]);

    the third argument is a Array likes the demo, it has three element

    ['CENTER', 0, 0]

    first element is a string, others are number

    the first element can be these values:

    "TOP"
    "CENTER"
    "AXIS_CLIP"
    "AXIS_PULL_AFTER"
    "AXIS_PULL_BEFORE"
    "AXIS_SPECIFIED"
    "AXIS_X_SHIFT"
    "AXIS_Y_SHIFT"
    "BOTTOM"
    "CENTER_HORIZONTAL"
    "CENTER_VERTICAL"
    "CLIP_HORIZONTAL"
    "CLIP_VERTICAL"
    "DISPLAY_CLIP_HORIZONTAL"
    "DISPLAY_CLIP_VERTICAL"
    "FILL"
    "FILL_HORIZONTAL"
    "FILL_VERTICAL"
    "HORIZONTAL_GRAVITY_MASK"
    "LEFT"
    "NO_GRAVITY"
    "RIGHT"
    "VERTICAL_GRAVITY_MASK"

    defult value is "BOTTOM"

    current version has many bugs,welcome to correct.

Contact

email: yangyun4814@gmail.com

blog: http://blog.helloarron.com

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Tutorials

No tutorials found
Add a tutorial