Receive a Call
In order to receive an incoming in-app call, you should register and listen to incoming call events:
To receive an incoming in-app call, you should listen to incoming call events:
The listener method receives a member object that contains information about the caller and a call object, that lets you interact with the call in progress. With the later, you’ll be able to perform methods such as answer, reject and hang up.
Remove the listener when needed:
Remove the listener when needed:
Add NXMClientDelegate as an extension to a ViewController or similar:
Have a ViewController, or similar, conform to NXMClientDelegate:
Then, you’ll be able to perform methods such as answer, reject and hang up.
Answer
Using the call object received in client(_:didReceive:):
Using the call object received in client:didReceiveCall::
Reject
Using the call object received in client(_:didReceive:):
Using the call object received in client:didReceiveCall::
Hang Up
For an on-going call:
Listen For Call Events
To see updates on the state of a call, for example, to know if the other member answered or hung up the call, you should listen to call events.
To see updates on the state of the call and its members:
Remove the listener when needed:
Remove the listener when needed:
Add the current ViewController, or similar, as a delegate for the call before answering:
ViewController will now have to conform to NXMCallDelegate:
Add the current ViewController, or similar, as a delegate for the call before answering:
ViewController will now have to conform to NXMCallDelegate: