Skip to content

PhoneCallEventListener

Lejla Solak edited this page Feb 9, 2026 · 2 revisions



onMachineDetectionFinished(machineDetectionFinishedEvent)

Description

Method that is triggered when Automated Machine Detection (AMD) has finished successfully. This event provides the detection result indicating whether a human or a machine answered the call and a map of confidence scores for each detection class.

Arguments

Returns

  • N/A

Example

func onMachineDetectionFinished(_ machineDetectionFinishedEvent: MachineDetectionFinishedEvent) {
    os_log("Machine detection finished with result: %@", machineDetectionFinishedEvent.detectionResult)
}



onMachineDetectionFailed(machineDetectionFailedEvent)

Description

Method that is triggered when Automated Machine Detection (AMD) has failed containing the reason for the failure.

Arguments

Returns

  • N/A

Example

func onMachineDetectionFailed(_ machineDetectionFailedEvent: MachineDetectionFailedEvent) {
    os_log("Machine detection failed: %@", machineDetectionFailedEvent.reason)
}

Tutorials

Migration guides

Reference documentation

Clone this wiki locally