Lines Matching refs:call
5 You can implement the call service in either of the following ways:
7 - For a system application, use the **dialCall** API to make a voice or video call. The call will b…
9 - For a third-party application, use the **makeCall** API to start the system call application. Use…
14 …call status to the application, so that the application can then take appropriate logic processing…
18 …| CALL_STATE_UNKNOWN | -1 | The call status fails to be obtained and is unknown. …
19 | CALL_STATE_IDLE | 0 | No call is in progress. |
20 …| CALL_STATE_RINGING | 1 | The call is in the ringing or waiting state. …
21 …| CALL_STATE_OFFHOOK | 2 | At least one call is in dialing, active, or on hold, and no new inco…
25 1. The call service is available only on standard-system devices.
32 …. For details about the APIs, see [API Reference](../reference/apis-telephony-kit/js-apis-call.md).
37 …ng, callback: AsyncCallback<void>): void; | Makes a call. This is a system A…
40 The **observer** module provides the functions of subscribing to and unsubscribing from the call se…
44 …callback: Callback<{ state: CallState, number: string }>): void; | Listens to call status changes.|
53 1. Import the **call** and **observer** modules.
54 2. Invoke the **hasVoiceCapability** API to check whether the device supports the voice call functi…
55 3. Invoke the **dialCall** API to make a call.
56 4. (Optional) Register the observer for call service status changes.
59 import { call, observer } from '@kit.TelephonyKit';
62 // Check whether the voice call function is supported.
63 let isSupport = call.hasVoiceCapability();
65 // If the device supports the voice call function, call the following API to make a call.
66 call.dialCall("13xxxx", (err: BusinessError) => {
67 console.log(`callback: dial call err->${JSON.stringify(err)}`);
70 // (Optional) Register the observer for call service status changes.
73 state: call.CallState = call.CallState.CALL_STATE_UNKNOWN;
78 console.log("call state change, data is:" + JSON.stringify(data));
85 1. Import the **call** and **observer** modules.
86 2. Invoke the **hasVoiceCapability** API to check whether the device supports the voice call functi…
88 4. (Optional) Register the observer for call service status changes.
92 import { call, observer } from '@kit.TelephonyKit';
95 // Check whether the voice call function is supported.
96 let isSupport = call.hasVoiceCapability();
98 …// If the voice call function is supported, the user will be redirected to the dial screen and the…
99 call.makeCall("13xxxx", (err: BusinessError) => {
101 console.log("make call success.");
103 console.log("make call fail, err is:" + JSON.stringify(err));
106 // (Optional) Register the observer for call service status changes.
109 state: call.CallState = call.CallState.CALL_STATE_UNKNOWN;
114 console.log("call state change, data is:" + JSON.stringify(data));