vibratePattern

Parameters

timings

list of alternating ON-OFF durations in milliseconds. Staring with ON.

amplitudes

list of intensities of the vibration. A 0.2 results in 20% vibration power.

expect fun vibratePattern(timings: Array<TimeSpan>, amplitudes: Array<Double> = emptyArray())

Parameters

timings

list of alternating ON-OFF durations in milliseconds. Staring with ON.

amplitudes

list of intensities of the vibration. A 0.2 results in 20% vibration power. Only supported on Android target. Ignored if the size is not equal with the timings.

Parameters

timings

list of alternating ON-OFF durations in milliseconds. Staring with ON.

amplitudes

list of intensities of the vibration. A 0.2 results in 20% vibration power.

Parameters

timings

list of alternating ON-OFF durations in milliseconds. Staring with ON.

amplitudes

has no effect on JS backend

Parameters

timings

list of alternating ON-OFF durations in milliseconds. Staring with ON.

amplitudes

list of intensities of the vibration. A 0.2 results in 20% vibration power.