Lines Matching refs:call

1 # @ohos.telephony.call (拨打电话)
14 import { call } from '@kit.TelephonyKit';
18 ## call.dial<sup>(deprecated)</sup>
44 call.dial("138xxxxxxxx", (err: BusinessError, data: boolean) => {
50 ## call.dial<sup>(deprecated)</sup>
77 let dialOptions: call.DialOptions = {
80 call.dial("138xxxxxxxx", dialOptions, (err: BusinessError, data: boolean) => {
85 ## call.dial<sup>(deprecated)</sup>
117 let dialOptions: call.DialOptions = {
120 call.dial("138xxxxxxxx", dialOptions).then((data: boolean) => {
127 ## call.makeCall<sup>7+</sup>
161 call.makeCall("138xxxxxxxx", (err: BusinessError) => {
171 ## call.makeCall<sup>7+</sup>
210 call.makeCall("138xxxxxxxx").then(() => {
217 ## call.makeCall<sup>12+</sup>
256 call.makeCall(context, "138xxxxxxxx").then(() => {
263 ## call.hasCall
282 call.hasCall((err: BusinessError, data: boolean) => {
292 ## call.hasCall
311 call.hasCall().then(() => {
318 ## call.hasCallSync<sup>10+</sup>
335 let hasCall: boolean = call.hasCallSync();
336 console.log(`hasCallSync success, has call is ` + hasCall);
340 ## call.getCallState
359 call.getCallState((err: BusinessError, data: call.CallState) => {
369 ## call.getCallState
388 call.getCallState().then((data: call.CallState) => {
395 ## call.getCallStateSync<sup>10+</sup>
412 let callState: call.CallState = call.getCallStateSync();
413 console.log(`the call state is:` + callState);
416 ## call.hasVoiceCapability<sup>7+</sup>
431 let result: boolean = call.hasVoiceCapability();
435 ## call.isEmergencyPhoneNumber<sup>7+</sup>
467 call.isEmergencyPhoneNumber("138xxxxxxxx", (err: BusinessError, data: boolean) => {
477 ## call.isEmergencyPhoneNumber<sup>7+</sup>
510 let options: call.EmergencyNumberOptions = {slotId: 1}
511 call.isEmergencyPhoneNumber("112", options, (err: BusinessError, data: boolean) => {
521 ## call.isEmergencyPhoneNumber<sup>7+</sup>
559 let options: call.EmergencyNumberOptions = {slotId: 1}
560 call.isEmergencyPhoneNumber("138xxxxxxxx", options).then((data: boolean) => {
567 ## call.formatPhoneNumber<sup>7+</sup>
601 call.formatPhoneNumber("138xxxxxxxx", (err: BusinessError, data: string) => {
610 ## call.formatPhoneNumber<sup>7+</sup>
645 let options: call.NumberFormatOptions = {
648 call.formatPhoneNumber("138xxxxxxxx", options, (err: BusinessError, data: string) => {
658 ## call.formatPhoneNumber<sup>7+</sup>
698 let options: call.NumberFormatOptions = {
701 call.formatPhoneNumber("138xxxxxxxx", options).then((data: string) => {
708 ## call.formatPhoneNumberToE164<sup>7+</sup>
743 call.formatPhoneNumberToE164("138xxxxxxxx", "CN", (err: BusinessError, data: string) => {
753 ## call.formatPhoneNumberToE164<sup>7+</sup>
795 call.formatPhoneNumberToE164("138xxxxxxxx", "CN").then((data: string) => {