From 0eab47114cde933482f90879e177fd019430cafd Mon Sep 17 00:00:00 2001 From: HUI Date: Thu, 22 Oct 2020 21:37:29 +0800 Subject: [PATCH] feat: Android add getNativeHandle --- RtcEngine.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RtcEngine.kt b/RtcEngine.kt index d0d568a33..38a3561f3 100644 --- a/RtcEngine.kt +++ b/RtcEngine.kt @@ -49,6 +49,8 @@ class IRtcEngine { fun setLogFileSize(params: Map, callback: Callback) fun setParameters(params: Map, callback: Callback) + + fun getNativeHandle(callback: Callback) } interface RtcUserInfoInterface { @@ -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, callback: Callback) { callback.code(engine?.registerLocalUserAccount(params["appId"] as String, params["userAccount"] as String)) }