Skip to content

Commit

Permalink
fix: some function not call result
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Nov 23, 2023
1 parent 79b5b93 commit 8b75257
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions android/src/main/kotlin/io/agora/agorartm/AgoraRtmPlugin.kt
Expand Up @@ -461,21 +461,25 @@ class AgoraRtmPlugin : FlutterPlugin, MethodCallHandler {
"setParameters" -> {
val parameters = args?.get("parameters") as? String
client.setParameters(parameters)
object : Callback<Void>(result, handler) {}.onSuccess(null)
}

"setLogFile" -> {
val filePath = args?.get("filePath") as? String
client.setLogFile(filePath)
object : Callback<Void>(result, handler) {}.onSuccess(null)
}

"setLogFilter" -> {
val filter = args?.get("filter") as? Int
client.setLogFilter(filter!!)
object : Callback<Void>(result, handler) {}.onSuccess(null)
}

"setLogFileSize" -> {
val fileSizeInKBytes = args?.get("fileSizeInKBytes") as? Int
client.setLogFileSize(fileSizeInKBytes!!)
object : Callback<Void>(result, handler) {}.onSuccess(null)
}

else -> {
Expand Down

0 comments on commit 8b75257

Please sign in to comment.