-
-
Save zontan/7d025868dbeb9ecb9365ec60d49b0796 to your computer and use it in GitHub Desktop.
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
import AgoraRtcEngineKit | |
let appID = "YourAppIDHere" | |
var agoraKit: AgoraRtcEngineKit? | |
... | |
private func getAgoraEngine() -> AgoraRtcEngineKit { | |
if agoraKit == nil { | |
agoraKit = AgoraRtcEngineKit.sharedEngine(withAppId: appID, delegate: self) | |
} | |
return agoraKit! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment