How to use nativescript-vibrate - 5 common examples

To help you get started, we’ve selected a few nativescript-vibrate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bazzite / nativescript-vibrate / demo / app / home / home-view-model.ts View on Github external
constructor() {
        super();
        this.vibrator = new Vibrate();

        // Has vibrator
        this.hasVibrator = 'Has vibrator?: ' + this.vibrator.hasVibrator();
    }
github EddyVerbruggen / nativescript-ar / demo-solarsystem / app / components / App.vue View on Github external
getVibrator() {
        if (!vibrator) {
          vibrator = new Vibrate();
        }
        return vibrator;
      },
github bradyhouse / house / fiddles / nativeScript / fiddle-0009-SqliteDb / puzzle / app / view / level-three / level-three.js View on Github external
completeLevel(level, function(level) {
    vibrator.vibration(2000);
    Dialogs.confirm({ title: 'W i n n e r', message: 'You solved the puzzle in ' + moves + ' moves!', okButtonText: 'Ok'}).then(function() {
      frame.topmost().navigate({
        moduleName: "view/high-score/add-high-score/add-high-score",
        context: myContext,
        animated: false
      });
    });
  }, frame);
}
github bradyhouse / house / fiddles / nativeScript / fiddle-0009-SqliteDb / puzzle / app / view / level-one / level-one.js View on Github external
completeLevel(level, function(level) {
    vibrator.vibration(2000);
    Dialogs.confirm({ title: 'W i n n e r', message: 'You solved the puzzle in ' + moves + ' moves!', okButtonText: 'Ok' }).then(function() {
      frame.topmost().navigate(nextScreen);
    });
  }, frame);
}
github bradyhouse / house / fiddles / nativeScript / fiddle-0009-SqliteDb / puzzle / app / view / level-two / level-two.js View on Github external
completeLevel(level, function(level) {
    vibrator.vibration(2000);
    Dialogs.confirm({ title: 'W i n n e r', message: 'You solved the puzzle in ' + moves + ' moves!', okButtonText: 'Ok'}).then(function() {
      frame.topmost().navigate({
        moduleName: "view/high-score/add-high-score/add-high-score",
        context: myContext,
        animated: false
      });
    });
  }, frame);
}

nativescript-vibrate

A vibrate NativeScript plugin for Android and iOS

MIT
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis

Popular nativescript-vibrate functions