Class of android.os · VibrationEffect.java · Android's reference
public abstract class VibrationEffect implements Parcelable
A vibration: its timings and amplitudes. No vibrator plays it here.
public static final int DEFAULT_AMPLITUDE = -1 sourcepublic static final int EFFECT_CLICK = 0 sourcepublic static final int EFFECT_DOUBLE_CLICK = 1 sourcepublic static final int EFFECT_TICK = 2 sourcepublic static final int EFFECT_HEAVY_CLICK = 5 sourcepublic static final Parcelable.Creator<VibrationEffect> CREATOR sourcepublic static VibrationEffect createOneShot(long milliseconds, int amplitude) sourcepublic static VibrationEffect createWaveform(long[] timings, int repeat) sourcepublic static VibrationEffect createWaveform(long[] timings, int[] amplitudes, int repeat) sourcepublic static VibrationEffect createPredefined(int effectId) sourcepublic abstract long getDuration() sourcepublic int describeContents() sourcepublic void writeToParcel(Parcel dest, int flags) sourceMade 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.