Language

VibrationEffectSupport Enum

Definition

Defines vibration effect support values used by the Android OS API.

public enum VibrationEffectSupport
type VibrationEffectSupport = 
Inheritance
VibrationEffectSupport

Fields

Name Value Description
Unknown 0

Vibration effect support: unknown The hardware doesn't report its supported effects, so we can't determine whether the effect is supported or not.

Yes 1

Vibration effect support: supported This effect is supported by the underlying hardware.

No 2

Vibration effect support: unsupported This effect is not natively supported by the underlying hardware, although the system may still play a fallback vibration.

Remarks

The values report whether the underlying hardware supports a vibration effect, or that support cannot be determined.

Java documentation for android.os.Vibrator.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to