@dialstack/sdk-dev / react/src/softphone / useActiveCall
Function: useActiveCall()
TypeScript
function useActiveCall(): object;
Defined in: sdk/react/src/react/softphone/provider/SoftphoneProvider.tsx:325
The active foreground call and its actions, or activeCall: null when idle.
Returns
object
actions
TypeScript
actions: UseCallActions;
activeCall
TypeScript
activeCall: Call | null;
Throws
If used outside of <SoftphoneProvider>.