Skip to content

CallHangupEvent

Ajša Terko edited this page Jun 26, 2023 · 2 revisions



errorCode

Description

Getter for the errorCode field.

Returns

  • ErrorCode - Value of the errorCode field that contains call hangup information.

Example

func onHangup(_ callHangupEvent: CallHangupEvent) {
    os_log("Call ended. Status: %@", callHangupEvent.errorCode.name)
}



totalMediaStats

Description

Getter for the totalMediaStats field.

Returns

  • TotalMediaStats - Value of the totalMediaStats field that contains summary of the total media stats after hanging up the call.

Example

func onHangup(_ callHangupEvent: CallHangupEvent) {
    os_log("Call ended. Total media stats: %@", callHangupEvent.totalMediaStats)
}

Tutorials

Migration guides

Reference documentation

Clone this wiki locally