Vibrator

Class of android.os · Vibrator.java · Android's reference

public abstract class Vibrator

The vibrator of a device that has none: each vibration does nothing.

Fields

public static final int VIBRATION_EFFECT_SUPPORT_UNKNOWN = 0 source
public static final int VIBRATION_EFFECT_SUPPORT_YES = 1 source
public static final int VIBRATION_EFFECT_SUPPORT_NO = 2 source

Constructors

public Vibrator() empty body source

Methods

public boolean hasVibrator() source
public boolean hasAmplitudeControl() source
public int getId() source
public void vibrate(long milliseconds) empty body deprecated source
public void vibrate(long[] pattern, int repeat) empty body deprecated source
public void vibrate(VibrationEffect vibe) empty body source
public void cancel() empty body source
public float getResonantFrequency() source
public float getQFactor() source
public int areAllEffectsSupported(int... effectIds) source
public boolean areAllPrimitivesSupported(int... primitiveIds) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.