Skip to content

On Emergency Call Hangup ​

Fired when an emergency call has been hung up by the remote party (emergency operator). This event indicates that the emergency operator has terminated the call.

Event Registration ​

// Set listener
client.setEmergencyCallListener(object : EmergencyCallListener {
    override fun onEmergencyCallHangup(callId: String) {
        // Handle hangup event
    }
    
    override fun onEmergencyCallDisconnected(callId: String) {
        // Handle disconnect event
    }
})

Event Data ​

ParameterTypeDescription
callIdstringUnique identifier of the hung up emergency call

Usage Example ​


client.setOnEmergencyCallHangupListener { callId ->
    println("Emergency call $callId has been hung up")
}

When This Event Fires ​

This event is triggered only when the remote party (emergency operator) hangs up the call. This includes scenarios where:

  • The emergency operator ends the call normally
  • The emergency operator's system terminates the call
  • The call is ended from the emergency services side

Notes ​

  • This event is NOT fired when you call hangUpEmergencyCall() locally
  • This event indicates a remote-initiated call termination
  • After this event, the call resources are cleaned up automatically
  • The call ID will no longer be valid after this event
  • This is different from onEmergencyCallDisconnected, which indicates an unexpected disconnection
  • Use this event to update your UI and notify the user that the emergency operator has ended the call
  • The call state is automatically cleaned up after this event fires

Built with VitePress.