The vibration time in milliseconds. Default value is assigned to 0. If the pattern array is null, the time will be used otherwise pattern takes precedence.
The supported values are 0ms to 2550ms for Bluetooth scanners and 0ms to 300000ms for External Vibrator. Behavior is undefined for any other value.
Bluetooth scanner's vibrator and External vibrator will assume the end of sequence when an entry of 0 time is set.
public long pattern
Vibrate with a given pattern. Pass in an array of integers that are the durations for which to turn on or off the vibrator in milliseconds.
The supported values are 0ms to 2550ms for Bluetooth scanner. Behavior is undefined for any other value.
The Bluetooth scanner's vibrator will assume the end of sequence when an entry of 0 time is set.
The first value indicates the number of milliseconds to wait before turning the vibrator on. The next value indicates the number of milliseconds for which to keep the vibrator on before turning it off.
Subsequent values alternate between durations in milliseconds to turn the vibrator off or to turn the vibrator on.
Maximum 4 vibrating pattern pairs are supported. If more than 4 pattern pairs are provided, only the first 4 pattern pairs will be considered.
Default value assigned is null.
Note: The External Vibrator does not support pattern.