Skip to main content

@dialstack/sdk-dev / native/src / OsCallEvents

Interface: OsCallEvents

Defined in: sdk/native/src/os/OsCallAdapter.ts:46

Properties​

answer​

TypeScript
answer: (e) => void;

Defined in: sdk/native/src/os/OsCallAdapter.ts:57

Parameters​

e​
sessionId​

string

Returns​

void


audioSessionActivated​

TypeScript
audioSessionActivated: (e) => void;

Defined in: sdk/native/src/os/OsCallAdapter.ts:63

iOS only in practice: CallKit gates audio, so WebRTC audio starts here.

Parameters​

e​
sessionId​

string | null

Returns​

void


callIntent​

TypeScript
callIntent: (e) => void;

Defined in: sdk/native/src/os/OsCallAdapter.ts:56

The OS wants to PLACE a call — the user dialled from the platform's own UI (Recents, Siri, dialer intent), not from the app.

Parameters​

e​
handle​

string

Returns​

void


dtmf​

TypeScript
dtmf: (e) => void;

Defined in: sdk/native/src/os/OsCallAdapter.ts:61

Parameters​

e​
digits​

string

sessionId​

string

Returns​

void


end​

TypeScript
end: (e) => void;

Defined in: sdk/native/src/os/OsCallAdapter.ts:58

Parameters​

e​
sessionId​

string

Returns​

void


incomingReported​

TypeScript
incomingReported: (e) => void;

Defined in: sdk/native/src/os/OsCallAdapter.ts:53

A call was reported to the OS — by native code before JS existed, or by reportIncoming. callId is the call_id the session was created with (a wake push's, or the one passed to reportIncoming): the bridge pairs the session with its call by it, and ends a session that has none.

Parameters​

e​

OsActiveSession

Returns​

void


setHeld​

TypeScript
setHeld: (e) => void;

Defined in: sdk/native/src/os/OsCallAdapter.ts:59

Parameters​

e​
held​

boolean

sessionId​

string

Returns​

void


setMuted​

TypeScript
setMuted: (e) => void;

Defined in: sdk/native/src/os/OsCallAdapter.ts:60

Parameters​

e​
muted​

boolean

sessionId​

string

Returns​

void