feat: add getTempGroupId bridge method in AndroidInterface

This commit is contained in:
fengge 2026-07-06 12:43:18 +08:00
parent 38c7494d73
commit cc73549ebd
1 changed files with 5 additions and 0 deletions

View File

@ -86,6 +86,7 @@ class AndroidInterface(private val activity: MainActivity) {
"showJsonDialog" -> { showJsonDialog(args.optString(0, "")); "" }
"getTempCallStatus" -> getTempCallStatus()
"maximizeTempCall" -> { maximizeTempCall(); "" }
"getTempGroupId" -> getTempGroupId()
"logout" -> { logout(); "" }
else -> {
Timber.tag("Bridge").w("Unknown method: $method")
@ -500,6 +501,10 @@ class AndroidInterface(private val activity: MainActivity) {
}
}
fun getTempGroupId(): String {
return TempCallActivity.currentTempGroupId
}
fun maximizeTempCall() {
Handler(Looper.getMainLooper()).post {
try {