提交 cae8b7ed 编写于 作者: D dingxiaochen

fix readme.

Signed-off-by: Ndingxiaochen <dingxiaochen@huawei.com>
上级 18c0fbad
......@@ -384,6 +384,26 @@ promise.then(data => {
});
```
## radio.isNrSupported<sup>7+</sup>
isNrSupported\(\): boolean
判断当前设备是否支持5G\(NR\)
**系统能力**:SystemCapability.Telephony.CoreService
**返回值:**
| 类型 | 说明 |
| ------- | -------------------------------- |
| boolean | - true:支持<br/>- false:不支持 |
**示例:**
```js
let result = radio.isNrSupported();
console.log("Result: "+ result);
```
## radio.isNrSupported<sup>8+</sup>
......
......@@ -2657,8 +2657,6 @@ getOpKey(slotId: number, callback: AsyncCallback<string\>): void
获取指定卡槽中SIM卡的opkey。使用callback异步回调。
此接口为系统接口。
**系统能力**:SystemCapability.Telephony.CoreService
**参数:**
......@@ -2683,8 +2681,6 @@ getOpKey(slotId: number): Promise<string\>
获取指定卡槽中SIM卡的opkey。使用Promise异步回调。
此接口为系统接口。
**系统能力**:SystemCapability.Telephony.CoreService
**参数:**
......@@ -2716,8 +2712,6 @@ getOpName(slotId: number, callback: AsyncCallback<string\>): void
获取指定卡槽中SIM卡的OpName。使用callback异步回调。
此接口为系统接口。
**系统能力**:SystemCapability.Telephony.CoreService
**参数:**
......@@ -2742,8 +2736,6 @@ getOpName(slotId: number): Promise<string\>
获取指定卡槽中SIM卡的OpName。使用Promise异步回调。
此接口为系统接口。
**系统能力**:SystemCapability.Telephony.CoreService
**参数:**
......
......@@ -63,6 +63,28 @@ promise.then((data) => {
});
```
## data.getDefaultCellularDataSlotIdSync
getDefaultCellularDataSlotIdSync(): number
获取默认移动数据的SIM卡
**需要权限**:ohos.permission.GET_NETWORK_INFO
**系统能力**:SystemCapability.Telephony.CellularData
**返回值:**
| 类型 | 说明 |
| ------ | -------------------------------------------------- |
| number | 获取默认移动数据的SIM卡。<br />0:卡槽1。<br />1:卡槽2。 |
**示例:**
```js
console.log("Result: "+ data.getDefaultCellularDataSlotIdSync())
```
## data.setDefaultCellularDataSlotId
setDefaultCellularDataSlotId(slotId: number,callback: AsyncCallback\<void\>): void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册