Skip to content

Commit

Permalink
feat: Android add getNativeHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Oct 22, 2020
1 parent 66ed5b5 commit 0eab471
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 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 0eab471

Please sign in to comment.