public abstract static class CallPackage.Observer extends Object
CallPackage
to receive notifications whenever a new call arrives.Constructor and Description |
---|
Observer() |
Modifier and Type | Method and Description |
---|---|
abstract void |
callArrived(Call call,
CallConfig callConfig,
Map extHeaders)
An event handler which is called when a new call is received.
|
abstract void |
callResurrected(Call rehydratedCall)
This method is called when a Call is rehydrated.
|
public abstract void callArrived(Call call, CallConfig callConfig, Map extHeaders)
Call
and CallConfig
are provided as parameters.call
- an instance of Call objectcallConfig
- an instance of CallConfig objectextHeaders
- extension headers. If provided, they have been extracted from the JSON messagepublic abstract void callResurrected(Call rehydratedCall)
rehydratedCall
- The rehydrated call.