freesmartphone.org Vibrator Interface
Description
This interface provides access to a Vibrator device.
Namespace
org.freesmartphone.Device.Vibrator
Methods
Signals
None
Properties
None
Errors
None
Methods
VibratePattern ( iiii )
Description: Vibrate in an on/off pattern for a specified number of pulses.
Parameters:*
i: pulses The amount of pulses (on+off iterations).
i: on_duration_ms Duration of vibrating in milliseconds.
i: off_duration_ms Duration of not vibrating in milliseconds.
i: strength_percentage Strength of vibration in percent (0-100). Note that not all vibrators honor this parameter.
Vibrate ( ii )
Description: Pulse the vibrator for a specified number of seconds.
Parameters:*
i: duration_ms The amount of time (in milliseconds) to vibrate.
i: strength_percentage Strength of vibration in percent (0-100). Note that not all vibrators honor this parameter.
Stop ( )
Description: Cancel any previous commands and stop the vibrator immediately.