npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

nativescript-marshmallow-loader

1.0.0 • Public • Published

npm npm

NativeScript Marshmallow Loader

NativeScript plugin for the Android Marshmallow loading animation.

Android Only

Sample Usage

Sample
Sample

Native Library:

Android
Cleveroad/CRAndroidMBootAnimationView

Installation

From your command prompt/terminal go to your app's root folder and execute:

tns plugin add nativescript-marshmallow-loader

Usage

<Page 
  xmlns="http://schemas.nativescript.org/tns.xsd
  xmlns:Marshmallow="nativescript-marshmallow-loader" loaded="pageLoaded">
  <ActionBar title="Marshmallow Loader" />
  <StackLayout>
    <Marshmallow:MarshmallowLoader id="marshmallow" height="140" />
    <StackLayout orientation="horizontal">
      <Button text="Pause" tap="{{ pauseIt }}" />
      <Button text="Play" tap="{{ playIt }}" />
      <Button text="Stop" tap="{{ stopIt }}" />
    </StackLayout> 
  </StackLayout>
</Page>

API

  • startAnimation() - start playing the video
  • pauseAnimation() - pause the video
  • stopAnimation() - stop the animation and reset to beginning when resumed.

install

npm i nativescript-marshmallow-loader

Downloadsweekly downloads

4

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability