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
|
|
@ -206,6 +206,10 @@ public class LiblinphoneFlutterPlugin: NSObject, FlutterPlugin {
|
||||||
linphoneBridge.stop()
|
linphoneBridge.stop()
|
||||||
result(true)
|
result(true)
|
||||||
|
|
||||||
|
case "syncCurrentState" :
|
||||||
|
linphoneBridge.syncCurrentState()
|
||||||
|
result(true)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
result(FlutterMethodNotImplemented)
|
result(FlutterMethodNotImplemented)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -244,6 +244,11 @@ class LinphoneBridge {
|
||||||
return .audio
|
return .audio
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func syncCurrentState() {
|
||||||
|
onRegistrationStateChanged(registrationState.rawValue)
|
||||||
|
onCallStateChanged(callState.rawValue)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - CoreDelegate
|
// MARK: - CoreDelegate
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue