mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-02-27 04:26:17 +00:00
add api for slotid
Signed-off-by: liujiandong <liujiandong1@huawei.com>
This commit is contained in:
parent
f0ce6479be
commit
39b1ed4b6c
18
api/@ohos.telephony.radio.d.ts
vendored
18
api/@ohos.telephony.radio.d.ts
vendored
@ -67,11 +67,23 @@ declare namespace radio {
|
||||
/**
|
||||
* Proactively requests to update location information.
|
||||
*
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @param { number } [ slotId ] - indicates the card slot index number.
|
||||
* @param { AsyncCallback<void> } callback - the callback of sendUpdateCellLocationRequest.
|
||||
* @systemapi
|
||||
* @since 8
|
||||
*/
|
||||
function sendUpdateCellLocationRequest(callback: AsyncCallback<void>): void;
|
||||
function sendUpdateCellLocationRequest(): Promise<void>;
|
||||
function sendUpdateCellLocationRequest(slotId: number, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
* Proactively requests to update location information.
|
||||
*
|
||||
* @param { number } [ slotId ] - indicates the card slot index number.
|
||||
* @returns { Promise<void> } the promise returned by the function.
|
||||
* @systemapi
|
||||
* @since 8
|
||||
*/
|
||||
function sendUpdateCellLocationRequest(slotId?: number): Promise<void>;
|
||||
|
||||
/**
|
||||
* @permission ohos.permission.LOCATION
|
||||
@ -780,4 +792,4 @@ declare namespace radio {
|
||||
}
|
||||
}
|
||||
|
||||
export default radio;
|
||||
export default radio;
|
||||
|
Loading…
x
Reference in New Issue
Block a user