Disconnect reasons
LINE Planet provides a reason for call disconnection, which is called a disconnect reason. The disconnect reason values are commonly defined for client and server.
When a call is disconnected, a disconnect reason is delivered with a disconnect source, so you can use the information to determine the cause and source of call disconnection.
Related API
You can get the information from the following parameters of the onDisconnected
callback.
Parameter | Type | Description |
---|---|---|
reason | PlanetKitDisconnectReason | Disconnect reason |
source | PlanetKitDisconnectSource | Disconnect source |
byRemote | bool | Flag indicating whether the disconnection was initiated by the remote peer. |
Disconnect sources
The following types of disconnect sources are available in the PlanetKitDisconnectSource
enumeration.
Enumeration case | Value | Description |
---|---|---|
callee | 1 | A callee in a 1-to-1 call |
caller | 2 | A caller in a 1-to-1 call |
participant | 3 | A participant in a group call |
cloudServer | 4 | LINE Planet Cloud server |
appServer | 5 | Application server |
Disconnect reasons
The following disconnect reasons are available in the PlanetKitDisconnectReason
enumeration. For more information on each reason, refer to the links below: