Skip to main content
Version: 1.0

Network unavailable event

The network unavailable event serves as a notification when the network becomes unavailable.

LINE Planet will try to reconnect the call for a while after a network unavailable event occurs. If the reconnection attempt fails, the call is disconnected. If the reconnection attempt is successful, LINE Planet continues the call with a network re-available event.

You can use these events to display a message with the status of network in the current call on your application.

Supported call typeMinimum SDK version
1-to-1 call, group call (conference)0.7

1-to-1 call

In 1-to-1 calls, the following callbacks of PlanetKitCallEventHandler are used for the network unavailable event and the network re-available event.

Network unavailable event callback

The onNetworkUnavailable callback is invoked when the network has a problem. This callback includes the following parameters:

ParameterDescription
isPeerWhether there is a problem with the peer. Can be one of the following values:
- true: The peer's network has a problem.
- false: The local user's network has a problem.
willDisconnectTime to end the call when reconnection fails (in seconds). If reconnection fails, the call is disconnected after this duration with the disconnect reason of UNAVAILABLE_NETWORK.

Network re-available event callback

The onNetworkReavailable callback is invoked when the network is recovered. This callback includes the following parameter:

ParameterDescription
isPeerWhether there was a problem with the peer. Can be one of the following values:
- true: The peer's network had a problem.
- false: The local user's network had a problem.

Group call

In group calls, the following callbacks of PlanetKitConferenceEventHandler are used for the network unavailable event and the network re-available event.

Network unavailable event callback

The onNetworkUnavailable callback is invoked when the local user's network has a problem. This callback includes the following parameter:

ParameterDescription
willDisconnectTime to end the call when reconnection fails (in seconds). If reconnection fails, the call is disconnected after this duration with the disconnect reason of UNAVAILABLE_NETWORK.

Network re-available event callback

The onNetworkReavailable callback is invoked when the the local user's network is recovered.