CallRecordingObserver

@available(iOS 12.0, *)
@objc(BDKCallRecordingObserver)
public protocol CallRecordingObserver : NSObjectProtocol

An observer, notified about call recording events.

You subscribe as a call recording observer adding a class conforming to this protocol to a Call object by calling the Call.add(recordingObserver:) method

  • A method called when the call recording changes state.

    Declaration

    Swift

    @objc(recordingForCall:didChangeState:)
    func recording(for call: Call, didChangeState state: CallRecordingState)

    Parameters

    call

    The call object.

    state

    The new state of the recording.

  • An optional method called when the call recording has failed.

    Declaration

    Swift

    @objc(recordingForCall:didFailWithError:)
    optional func recording(for call: Call, didFailWith error: Error)

    Parameters

    call

    The call object.

    error

    The error occurred.