cancel

fun cancel()

Cancel the CaptureSession This triggers the cancel process programmatically, as if the user had pressed the close button. The state returns to 'idle'