List of utility methods to do Vibrator Vibrate
void | Vibrate(final Activity activity, long milliseconds) Vibrate Vibrator vib = (Vibrator) activity .getSystemService(Service.VIBRATOR_SERVICE); vib.vibrate(milliseconds); |
void | Vibrate(final Activity activity, long[] pattern, boolean isRepeat) Vibrate Vibrator vib = (Vibrator) activity .getSystemService(Service.VIBRATOR_SERVICE); vib.vibrate(pattern, isRepeat ? 1 : -1); |
void | vibrar(Context context) vibrar ((Vibrator) context.getSystemService(context.VIBRATOR_SERVICE)) .vibrate(200); |
void | vibrar(Context context, long tempo) vibrar ((Vibrator) context.getSystemService(context.VIBRATOR_SERVICE)) .vibrate(tempo); |
void | vibrate(Context context, int duration) vibrate if (hasVibrationPermission(context)) {
((Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE))
.vibrate(duration);
|