VibrationEffect

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.

Fields

public static final int DEFAULT_AMPLITUDE = -1 source
public static final int EFFECT_CLICK = 0 source
public static final int EFFECT_DOUBLE_CLICK = 1 source
public static final int EFFECT_TICK = 2 source
public static final int EFFECT_HEAVY_CLICK = 5 source
public static final Parcelable.Creator<VibrationEffect> CREATOR source

Methods

public static VibrationEffect createOneShot(long milliseconds, int amplitude) source
public static VibrationEffect createWaveform(long[] timings, int repeat) source
public static VibrationEffect createWaveform(long[] timings, int[] amplitudes, int repeat) source
public static VibrationEffect createPredefined(int effectId) source
public abstract long getDuration() source
public int describeContents() source
public void writeToParcel(Parcel dest, int flags) 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.