diff --git a/RtcEngine.kt b/RtcEngine.kt index ab27ca1e8..b41037995 100644 --- a/RtcEngine.kt +++ b/RtcEngine.kt @@ -34,6 +34,8 @@ class IRtcEngine { fun getConnectionState(callback: Callback) + fun sendCustomReportMessage(params: Map, callback: Callback) + fun getCallId(callback: Callback) fun rate(params: Map, callback: Callback) @@ -161,6 +163,8 @@ class IRtcEngine { fun resumeEffect(params: Map, callback: Callback) fun resumeAllEffects(callback: Callback) + + fun setAudioSessionOperationRestriction(params: Map, callback: Callback) } interface RtcVoiceChangerInterface { @@ -375,6 +379,10 @@ class RtcEngineManager( callback.resolve(engine) { it.connectionState } } + override fun sendCustomReportMessage(params: Map, callback: Callback) { + callback.code(engine?.sendCustomReportMessage(params["id"] as String, params["category"] as String, params["event"] as String, params["label"] as String, (params["value"] as Number).toInt())) + } + override fun getCallId(callback: Callback) { callback.resolve(engine) { it.callId } } @@ -619,6 +627,10 @@ class RtcEngineManager( callback.code(engine?.audioEffectManager?.resumeAllEffects()) } + override fun setAudioSessionOperationRestriction(params: Map, callback: Callback) { + callback.resolve(engine) { Constants.ERR_NOT_SUPPORTED } + } + override fun setLocalVoiceChanger(params: Map, callback: Callback) { callback.code(engine?.setLocalVoiceChanger((params["voiceChanger"] as Number).toInt())) }