-
Notifications
You must be signed in to change notification settings - Fork 2
PhoneCallEventListener
Lejla Solak edited this page Feb 9, 2026
·
2 revisions
extends CallEventListener
onMachineDetectionFinished(_ machineDetectionFinishedEvent: MachineDetectionFinishedEvent)onMachineDetectionFailed(_ machineDetectionFailedEvent: MachineDetectionFailedEvent)
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.
-
machineDetectionFinishedEvent:MachineDetectionFinishedEvent- Event instance which contains the detection result and confidence ratings.
N/A
func onMachineDetectionFinished(_ machineDetectionFinishedEvent: MachineDetectionFinishedEvent) {
os_log("Machine detection finished with result: %@", machineDetectionFinishedEvent.detectionResult)
}Method that is triggered when Automated Machine Detection (AMD) has failed containing the reason for the failure.
-
machineDetectionFailedEvent:MachineDetectionFailedEvent- Event instance which contains the reason for the failure.
N/A
func onMachineDetectionFailed(_ machineDetectionFailedEvent: MachineDetectionFailedEvent) {
os_log("Machine detection failed: %@", machineDetectionFailedEvent.reason)
}