Contents

setControlsDelegate(_:queue:)

Sets a delegate object for the system to call when it activates and presents controls.

Declaration

func setControlsDelegate(_ controlsDelegate: (any AVCaptureSessionControlsDelegate)?, queue controlsDelegateCallbackQueue: dispatch_queue_t?)

Parameters

  • controlsDelegate:

    An object that adopts the controls delegate protocol.

  • controlsDelegateCallbackQueue:

    A serial dispatch queue on which to call the delegate methods. You must specify a serial queue to ensure callbacks occur in order.

    This argument must not be nil unless the controlsDelegate argument is also nil; otherwise, the system throws an Invalidargumentexception.

Mentioned in

Discussion

People interact with capture controls by performing specific gestures to enable their visibility. Specify a delegate to for the system to call when it presents and dismisses controls. The system calls the delegate’s methods on the specified callback queue.

See Also

Configuring capture controls