Contents

finish()

Requests that the capture session be stopped and all data saved.

Declaration

@MainActor func finish()

Discussion

Call this method when the user has completed the scan successfully. The session switches to state .finishing while it saves all data and ultimately switches the state to .completed. The session ignores this method call if the current state is any value other than .capturing.

See Also

Controlling the session