Skip to content

Instantly share code, notes, and snippets.

@nparsons08 nparsons08/MainActivity.kt Secret

Created Mar 2, 2020
Embed
What would you like to do?
// mobile/android/app/src/main/kotlin/io/getstream/flutter_the_stream/MainActivity.kt:95
private fun setupChat(user: String, token: String) {
StreamChat.init(API_KEY, applicationContext)
val client = StreamChat.getInstance(this.application)
client.setUser(User(user), token)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.