feat: upgrade linphone-sdk to 5.4.84 and add syncCurrentState

This commit is contained in:
Andrew 2026-02-03 15:53:40 +07:00
parent f29d9d42e5
commit 06a57d5c21
8 changed files with 36 additions and 3 deletions

View file

@ -180,6 +180,11 @@ class LiblinphoneFlutterPlugin : FlutterPlugin, ActivityAware, MethodCallHandler
result.success(true)
}
"syncCurrentState" -> {
linphoneBridge.syncCurrentState()
result.success(true)
}
else -> {
result.notImplemented()
}

View file

@ -335,6 +335,11 @@ class LinphoneBridge(
return currentCall != null
}
fun syncCurrentState() {
onRegistrationStateChanged(registrationState.ordinal)
onCallStateChanged(callState.ordinal)
}
enum class CallType {
Audio,
Video,