Skip to content

Commit

Permalink
Merge commit '0eab47114cde933482f90879e177fd019430cafd' into dev/opti…
Browse files Browse the repository at this point in the history
…mize
  • Loading branch information
LichKing-2234 committed Oct 22, 2020
2 parents dadd0d3 + 0eab471 commit 7acb6a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions android/src/main/java/io/agora/rtc/base/RtcEngine.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class IRtcEngine {
fun setLogFileSize(params: Map<String, *>, callback: Callback)

fun setParameters(params: Map<String, *>, callback: Callback)

fun getNativeHandle(callback: Callback)
}

interface RtcUserInfoInterface {
Expand Down Expand Up @@ -411,6 +413,10 @@ class RtcEngineManager(
callback.code(engine?.setParameters(params["parameters"] as String))
}

override fun getNativeHandle(callback: Callback) {
callback.resolve(engine) { it.nativeHandle }
}

override fun registerLocalUserAccount(params: Map<String, *>, callback: Callback) {
callback.code(engine?.registerLocalUserAccount(params["appId"] as String, params["userAccount"] as String))
}
Expand Down

0 comments on commit 7acb6a6

Please sign in to comment.