Lines Matching refs:call
32 …ack和Promise两种方式,以下示例均采用callback函数,更多方式可以查阅[API参考](../reference/apis-telephony-kit/js-apis-call.md)。
53 1. 导入call和observer模块。
59 import { call, observer } from '@kit.TelephonyKit';
63 let isSupport = call.hasVoiceCapability();
66 call.dialCall("13xxxx", (err: BusinessError) => {
67 console.log(`callback: dial call err->${JSON.stringify(err)}`);
73 state: call.CallState = call.CallState.CALL_STATE_UNKNOWN;
78 console.log("call state change, data is:" + JSON.stringify(data));
85 1. 导入call和observer模块。
92 import { call, observer } from '@kit.TelephonyKit';
96 let isSupport = call.hasVoiceCapability();
99 call.makeCall("13xxxx", (err: BusinessError) => {
101 console.log("make call success.");
103 console.log("make call fail, err is:" + JSON.stringify(err));
109 state: call.CallState = call.CallState.CALL_STATE_UNKNOWN;
114 console.log("call state change, data is:" + JSON.stringify(data));