Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including nativescript-marshmallow-loader with all npm packages installed. Try it out:

var nativescriptMarshmallowLoader = require("nativescript-marshmallow-loader")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

nativescript-marshmallow-loader v1.0.0

NativeScript plugin for the Android Marshmallow loading animation.

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.
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free