update @ohos.telephony.call.d.ts

Signed-off-by: 18518779689 <litingting84@huawei.com>
This commit is contained in:
18518779689 2023-11-09 17:32:22 +08:00
parent 3a9e4dc33d
commit a6f1d057cf

View File

@ -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>;
/**