init(primary:secondary:)
Creates a capture event interaction with handlers that respond independently to presses of hardware buttons.
Declaration
init(primary primaryHandler: @escaping (AVCaptureEvent) -> Void, secondary secondaryHandler: @escaping (AVCaptureEvent) -> Void)Parameters
- primaryHandler:
An event handler the system calls when a person performs a primary capture event.
- secondaryHandler:
An event handler the system calls when a person performs a secondary capture event.