radio模块,去掉callback接口

Signed-off-by: liuxiyao223 <liuxiyao223@huawei.com>
This commit is contained in:
liuxiyao223 2023-11-29 10:55:58 +08:00
parent b1f1b53755
commit 6a4c76b4bf

View File

@ -1459,26 +1459,6 @@ declare namespace radio {
*/
function factoryReset(slotId: number): Promise<void>;
/**
* Reset all network settings of telephony.
*
* @permission ohos.permission.SET_TELEPHONY_STATE
* @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot
* index number supported by the device.
* @param { AsyncCallback<void> } callback - The callback of factoryReset.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Non-system applications use system APIs.
* @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.Telephony.CoreService
* @systemapi Hide this for inner system use.
* @since 11
*/
function factoryReset(slotId: number, callback: AsyncCallback<void>): void;
/**
* Indicates the preferred network.
*