Open amith-ranasinghe opened 3 years ago
How to stop while playing a long pattern
Haptic.play("OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", delay: 0.1)
I want to stop this when this is playing. Please show me a way to do it.
thanks
@amith-ranasinghe, try Haptic.queue.cancelAllOperations()
Haptic.queue.cancelAllOperations()
How to stop while playing a long pattern
Haptic.play("OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", delay: 0.1)
I want to stop this when this is playing. Please show me a way to do it.
thanks