feat: add syncCurrentState to sync registration and call state
This commit is contained in:
parent
6bf6e7e8ea
commit
2e67ea7ff9
2 changed files with 9 additions and 0 deletions
|
|
@ -205,6 +205,10 @@ public class LiblinphoneFlutterPlugin: NSObject, FlutterPlugin {
|
|||
case "stop":
|
||||
linphoneBridge.stop()
|
||||
result(true)
|
||||
|
||||
case "syncCurrentState" :
|
||||
linphoneBridge.syncCurrentState()
|
||||
result(true)
|
||||
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
|
|
|
|||
|
|
@ -244,6 +244,11 @@ class LinphoneBridge {
|
|||
return .audio
|
||||
}
|
||||
}
|
||||
|
||||
func syncCurrentState() {
|
||||
onRegistrationStateChanged(registrationState.rawValue)
|
||||
onCallStateChanged(callState.rawValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - CoreDelegate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue