How to cancel a continuous read


I want to start and stop a continuos read by button press.

I have set AimType to ScannerConfig.AimType.CONTINUOUS_READ and TriggerType to Scanner.TriggerType.SOFT_ONCE. With the next the continuous reading starts. But how can I cancel the read? Calling scanner.cancelRead()  seems to have no effect in continuous read mode.