Use branch feature/swift_wrapper_async_helpers of the linphone SDK
This commit is contained in:
parent
933b6b46ea
commit
b5a6ab70c9
@ -42,7 +42,7 @@ class CallKitExampleContext : ObservableObject
|
|||||||
|
|
||||||
func addRegistrationStateCallBack(core:Core) {
|
func addRegistrationStateCallBack(core:Core) {
|
||||||
|
|
||||||
core.accountStatePublisher
|
core.publisher?.onAccountRegistrationStateChanged?
|
||||||
.postOnMainQueue { (publishedValue:(core: Core, account: Account, state: RegistrationState, message: String)) in
|
.postOnMainQueue { (publishedValue:(core: Core, account: Account, state: RegistrationState, message: String)) in
|
||||||
NSLog("New registration state is \(publishedValue.state) for user id \( String(describing: publishedValue.account.params?.identityAddress?.asString()))\n")
|
NSLog("New registration state is \(publishedValue.state) for user id \( String(describing: publishedValue.account.params?.identityAddress?.asString()))\n")
|
||||||
if (publishedValue.state == .Ok) {
|
if (publishedValue.state == .Ok) {
|
||||||
@ -61,7 +61,7 @@ class CallKitExampleContext : ObservableObject
|
|||||||
|
|
||||||
|
|
||||||
func addCallStateChangedCallBack(core:Core) {
|
func addCallStateChangedCallBack(core:Core) {
|
||||||
core.callStatePublisher
|
core.publisher?.onCallStateChanged?
|
||||||
.postOnMainQueue { (publishedValue:(core: Core, call: Call, state: Call.State, message: String)) in
|
.postOnMainQueue { (publishedValue:(core: Core, call: Call, state: Call.State, message: String)) in
|
||||||
self.callMsg = publishedValue.message
|
self.callMsg = publishedValue.message
|
||||||
if (publishedValue.state == .PushIncomingReceived){
|
if (publishedValue.state == .PushIncomingReceived){
|
||||||
|
Loading…
Reference in New Issue
Block a user