mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 01:11:35 +00:00
update @ohos.telephony.call.d.ts
Signed-off-by: 18518779689 <litingting84@huawei.com>
This commit is contained in:
parent
3a9e4dc33d
commit
a6f1d057cf
28
api/@ohos.telephony.call.d.ts
vendored
28
api/@ohos.telephony.call.d.ts
vendored
@ -151,6 +151,20 @@ declare namespace call {
|
||||
* @syscap SystemCapability.Applications.Contacts
|
||||
* @since 7
|
||||
*/
|
||||
/**
|
||||
* Go to the dial screen and the called number is displayed.
|
||||
*
|
||||
* @param { string } phoneNumber - Indicates the called number.
|
||||
* @param { AsyncCallback<void> } callback - The callback of makeCall.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @throws { BusinessError } 8300001 - Invalid parameter value.
|
||||
* @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service.
|
||||
* @throws { BusinessError } 8300003 - System internal error.
|
||||
* @throws { BusinessError } 8300999 - Unknown error code.
|
||||
* @syscap SystemCapability.Applications.Contacts
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
*/
|
||||
function makeCall(phoneNumber: string, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
@ -166,6 +180,20 @@ declare namespace call {
|
||||
* @syscap SystemCapability.Applications.Contacts
|
||||
* @since 7
|
||||
*/
|
||||
/**
|
||||
* Go to the dial screen and the called number is displayed.
|
||||
*
|
||||
* @param { string } phoneNumber - Indicates the called number.
|
||||
* @returns { Promise<void> } The promise returned by the makeCall.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @throws { BusinessError } 8300001 - Invalid parameter value.
|
||||
* @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service.
|
||||
* @throws { BusinessError } 8300003 - System internal error.
|
||||
* @throws { BusinessError } 8300999 - Unknown error code.
|
||||
* @syscap SystemCapability.Applications.Contacts
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
*/
|
||||
function makeCall(phoneNumber: string): Promise<void>;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user