CallEndReason enum

Call end reason, used to identify how the audio/video call ended (normal hangup, rejection, timeout, etc.).

This enum describes the various reasons why a call ended, helping developers understand how the call was terminated.

End Reason Description

Reason Description Typical Scenario
unknown Unknown reason Unable to determine the end reason
hangup Normal hangup User actively hangs up the call
reject Rejected Callee rejects the incoming call
noResponse No response Callee did not answer within timeout
offline Offline Callee is offline
lineBusy Line busy Callee is already in a call
canceled Canceled Caller cancels before callee answers
otherDeviceAccepted Accepted on another device The call was picked up on another device associated with the same account.
otherDeviceReject Rejected on another device Call was rejected on another logged-in device
endByServer Ended by server Call was terminated by the server
Inheritance
Available extensions

Values

unknown → const CallEndReason

Unknown reason.

hangup → const CallEndReason

Normal hangup.

reject → const CallEndReason

Rejected.

noResponse → const CallEndReason

No response.

offline → const CallEndReason

Offline.

lineBusy → const CallEndReason

Line busy.

canceled → const CallEndReason

Call was canceled.

otherDeviceAccepted → const CallEndReason

Accepted on another device.

otherDeviceReject → const CallEndReason

Rejected on another device.

endByServer → const CallEndReason

Call ended by backend.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<CallEndReason>
A constant List of the values in this enum, in order of their declaration.