/**@class android.os.Vibrator @extends java.lang.Object Class that operates the vibrator on the device. <p> If your process exits, any vibration you started will stop. </p> */ var Vibrator = { /** Vibration intensity: no vibrations. @hide */ VIBRATION_INTENSITY_OFF : "0", /** Vibration intensity: low. @hide */ VIBRATION_INTENSITY_LOW : "1", /** Vibration intensity: medium. @hide */ VIBRATION_INTENSITY_MEDIUM : "2", /** Vibration intensity: high. @hide */ VIBRATION_INTENSITY_HIGH : "3", /**Get the default vibration intensity for haptic feedback. @hide */ getDefaultHapticFeedbackIntensity : function( ) {}, /**Get the default vibration intensity for notifications. @hide */ getDefaultNotificationVibrationIntensity : function( ) {}, /**Get the default vibration intensity for ringtones. @hide */ getDefaultRingVibrationIntensity : function( ) {}, /**Check whether the hardware has a vibrator. @return {Boolean} True if the hardware has a vibrator, else false. */ hasVibrator : function( ) {}, /**Check whether the vibrator has amplitude control. @return {Boolean} True if the hardware can control the amplitude of the vibrations, otherwise false. */ hasAmplitudeControl : function( ) {}, /**Vibrate constantly for the specified period of time. @param {Number} milliseconds The number of milliseconds to vibrate. @deprecated Use {@link #vibrate(VibrationEffect)} instead. */ vibrate : function( ) {}, /**Vibrate constantly for the specified period of time. @param {Number} milliseconds The number of milliseconds to vibrate. @param {Object {AudioAttributes}} attributes {@link AudioAttributes} corresponding to the vibration. For example, specify {@link AudioAttributes#USAGE_ALARM} for alarm vibrations or {@link AudioAttributes#USAGE_NOTIFICATION_RINGTONE} for vibrations associated with incoming calls. @deprecated Use {@link #vibrate(VibrationEffect, AudioAttributes)} instead. */ vibrate : function( ) {}, /**Vibrate with a given pattern. <p> Pass in an array of ints that are the durations for which to turn on or off the vibrator in milliseconds. The first value indicates the number of milliseconds to wait before turning the vibrator on. The next value indicates the number of milliseconds for which to keep the vibrator on before turning it off. Subsequent values alternate between durations in milliseconds to turn the vibrator off or to turn the vibrator on. </p><p> To cause the pattern to repeat, pass the index into the pattern array at which to start the repeat, or -1 to disable repeating. </p> @param {Object {long[]}} pattern an array of longs of times for which to turn the vibrator on or off. @param {Number} repeat the index into pattern at which to repeat, or -1 if you don't want to repeat. @deprecated Use {@link #vibrate(VibrationEffect)} instead. */ vibrate : function( ) {}, /**Vibrate with a given pattern. <p> Pass in an array of ints that are the durations for which to turn on or off the vibrator in milliseconds. The first value indicates the number of milliseconds to wait before turning the vibrator on. The next value indicates the number of milliseconds for which to keep the vibrator on before turning it off. Subsequent values alternate between durations in milliseconds to turn the vibrator off or to turn the vibrator on. </p><p> To cause the pattern to repeat, pass the index into the pattern array at which to start the repeat, or -1 to disable repeating. </p> @param {Object {long[]}} pattern an array of longs of times for which to turn the vibrator on or off. @param {Number} repeat the index into pattern at which to repeat, or -1 if you don't want to repeat. @param {Object {AudioAttributes}} attributes {@link AudioAttributes} corresponding to the vibration. For example, specify {@link AudioAttributes#USAGE_ALARM} for alarm vibrations or {@link AudioAttributes#USAGE_NOTIFICATION_RINGTONE} for vibrations associated with incoming calls. @deprecated Use {@link #vibrate(VibrationEffect, AudioAttributes)} instead. */ vibrate : function( ) {}, /** */ vibrate : function( ) {}, /** */ vibrate : function( ) {}, /**Like {@link #vibrate(int, String, android.os.VibrationEffect, AudioAttributes)}, but allows the caller to specify the vibration is owned by someone else and set reason for vibration. @hide */ vibrate : function( ) {}, /**Turn the vibrator off. */ cancel : function( ) {}, };