Instance Method

setDelegate(_:queue:)

Sets a call observer delegate, specifying an optional queue on which to execute delegate methods.

Declaration

func setDelegate(_ delegate: CXCallObserverDelegate?, queue: DispatchQueue?)

Parameters

delegate

An object conforming to the CXCallObserverDelegate protocol.

queue

The queue on which to execute delegate methods.

If nil, delegate methods are performed on the main queue.