Last active
November 27, 2019 18:02
-
-
Save digitallysavvy/2479e57c53f166c71b35ca09bca186b6 to your computer and use it in GitHub Desktop.
Snippet to leave the channel within the ARSupportBroadcasterViewController and ARSupportAudienceViewController
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func leaveChannel() { | |
self.agoraKit.leaveChannel(nil) // leave channel and end chat | |
self.sessionIsActive = false // session is no longer active | |
UIApplication.shared.isIdleTimerDisabled = false // Enable idle timer | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment