daily pastebin goal
95%
SHARE
TWEET

Untitled

a guest Feb 21st, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. startVibrating() {
  2. if (VERSION.SDK_INT < VERSION_CODES.O) {
  3.         vibrator.vibrate(PATTERN, 0);
  4.       } else {
  5.         vibrator.vibrate(VibrationEffect.createWaveform(PATTERN, 0));
  6.       }
  7. }
  8.  
  9. stopVibrating() {
  10.  vibrator.cancel();
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top