-
-
Save zontan/e4b9db52b751b76e8d307550eb3ef528 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 AgoraRtcKit | |
let appID = "YourAppIDHere" | |
var agoraKit: AgoraRtcEngineKit? | |
let tempToken: String? = nil //If you have a token, put it here. | |
var userID: UInt = 0 //This tells Agora to generate an id for you. If you have unique user IDs already, you can use those. | |
... | |
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