Package: android.hardware.vibrator@1.2

IVibrator

interface IVibrator extends @1.1::IVibrator

Methods

perform_1_2

perform_1_2 (Effect effect, EffectStrength strength)
generates (Status status, uint32_t lengthMs)

Fire off a predefined haptic event.

Details
Parameters
effect
strength
Generates
status
Whether the effect was successfully performed or not.Must return Status::UNSUPPORTED_OPERATION is the effect is not supported.
lengthMs
The length of time the event is expected to take in milliseconds.This doesn't need to be perfectly accurate, but should be a reasonable approximation.Should be a positive, non-zero value if the returned status is Status::OK, and set to 0 otherwise.