TP-89230 | universal call sdk
This commit is contained in:
@@ -76,16 +76,16 @@ function UseCallSdk(adapter : any) {
|
||||
// @ts-expect-error sdfsf
|
||||
const [callState] = useReducer<any>(reducer, initialState,()=> initialState);
|
||||
|
||||
function registerOnCallIncoming(callback : ()=>void) {
|
||||
function registerOnCallIncoming(callback : (callState: GenericObject)=>void) {
|
||||
//dispatch({type: actionTypes.CALL_INCOMING, payload: {}})
|
||||
adapter.registerOnCallIncoming(callback);
|
||||
}
|
||||
|
||||
function registerOnCallConnected(callback : ()=>void) {
|
||||
function registerOnCallConnected(callback : (callState: GenericObject)=>void) {
|
||||
adapter.registerOnCallConnected(callback);
|
||||
}
|
||||
|
||||
function registerOnCallDisconnected(callback : ()=>void) {
|
||||
function registerOnCallDisconnected(callback : (callState: GenericObject)=>void) {
|
||||
adapter.registerOnCallDisconnected(callback);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user