Skip to content

MachineDetectionFinishedEvent

Lejla Solak edited this page Feb 9, 2026 · 1 revision



detectionResult

Description

Read-only property that represents the result of the machine detection, indicating whether a human or a machine answered the call.

Returns

  • String - Value of the detectionResult field indicating the detection result.

Example

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



confidenceRating

Description

Read-only property that represents a map of confidence scores for each detection class.

Returns

  • ConfidenceRating - A map containing confidence scores for each detection class.

Example

func onMachineDetectionFinished(_ machineDetectionFinishedEvent: MachineDetectionFinishedEvent) {
    let confidenceRating = machineDetectionFinishedEvent.confidenceRating
    for (key, value) in confidenceRating {
        os_log("Detection class: %@, confidence: %f", key, value)
    }
}

Tutorials

Migration guides

Reference documentation

Clone this wiki locally