leaveChannel abstract method

Future<void> leaveChannel()

Leaves a channel. This method lets the user leave the channel, for example, by hanging up or exiting the call. This method releases all resources related to the session. This method call is asynchronous, and the user has not left the channel when the method call returns. After calling joinChannel , you must call leaveChannel to end the call, otherwise the next call cannot be started. No matter whether you are currently in a call or not, you can call leaveChannel without side effects. A successful call of this method triggers the following callbacks: The local client: leaveChannel . The remote client: userOffline , if the user joining the channel is in the COMMUNICATION profile, or is a host in the LIVE_BROADCASTING profile. If you call the leaveChannel method immediately after calling destroy , the SDK will not be able to trigger the leaveChannel callback. If you call the leaveChannel method during a CDN live streaming, the SDK automatically calls the removePublishStreamUrl method.

Implementation

Future<void> leaveChannel();