mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-01-23 09:18:31 +00:00
radio模块,去掉callback接口
Signed-off-by: liuxiyao223 <liuxiyao223@huawei.com>
This commit is contained in:
parent
b1f1b53755
commit
6a4c76b4bf
20
api/@ohos.telephony.radio.d.ts
vendored
20
api/@ohos.telephony.radio.d.ts
vendored
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user