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