未验证 提交 6799238e 编写于 作者: O openharmony_ci 提交者: Gitee

!8386 【OpenHarmony开源贡献者计划2022】telephony API相关格式及表达问题

Merge pull request !8386 from king_he/0822-j
...@@ -17,7 +17,7 @@ import radio from '@ohos.telephony.radio' ...@@ -17,7 +17,7 @@ import radio from '@ohos.telephony.radio'
getRadioTech\(slotId: number, callback: AsyncCallback<\{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology\}\>\): void getRadioTech\(slotId: number, callback: AsyncCallback<\{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology\}\>\): void
获取当前接入的CS域和PS域无线接入技术,使用callback方式作为异步方法 获取当前接入的CS域和PS域无线接入技术。使用callback异步回调
**需要权限**:ohos.permission.GET_NETWORK_INFO **需要权限**:ohos.permission.GET_NETWORK_INFO
...@@ -44,7 +44,7 @@ radio.getRadioTech(slotId, (err, data) =>{ ...@@ -44,7 +44,7 @@ radio.getRadioTech(slotId, (err, data) =>{
getRadioTech\(slotId: number\): Promise<\{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology\}\> getRadioTech\(slotId: number\): Promise<\{psRadioTech: RadioTechnology, csRadioTech: RadioTechnology\}\>
获取当前接入的CS域和PS域无线接入技术,使用Promise方式作为异步方法 获取当前接入的CS域和PS域无线接入技术。使用Promise异步回调
**需要权限**:ohos.permission.GET_NETWORK_INFO **需要权限**:ohos.permission.GET_NETWORK_INFO
...@@ -70,7 +70,7 @@ let promise = radio.getRadioTech(slotId); ...@@ -70,7 +70,7 @@ let promise = radio.getRadioTech(slotId);
promise.then(data => { promise.then(data => {
console.log(`getRadioTech success, data->${JSON.stringify(data)}`); console.log(`getRadioTech success, data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.log(`getRadioTech fail, err->${JSON.stringify(err)}`); console.log(`getRadioTech failed, err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -79,7 +79,7 @@ promise.then(data => { ...@@ -79,7 +79,7 @@ promise.then(data => {
getNetworkState\(callback: AsyncCallback<NetworkState\>\): void getNetworkState\(callback: AsyncCallback<NetworkState\>\): void
获取网络状态,使用callback方式作为异步方法 获取网络状态。使用callback异步回调
**需要权限**:ohos.permission.GET_NETWORK_INFO **需要权限**:ohos.permission.GET_NETWORK_INFO
...@@ -104,7 +104,7 @@ radio.getNetworkState((err, data) =>{ ...@@ -104,7 +104,7 @@ radio.getNetworkState((err, data) =>{
getNetworkState\(slotId: number, callback: AsyncCallback<NetworkState\>\): void getNetworkState\(slotId: number, callback: AsyncCallback<NetworkState\>\): void
获取网络状态,使用callback方式作为异步方法 获取网络状态。使用callback异步回调
**需要权限**:ohos.permission.GET_NETWORK_INFO **需要权限**:ohos.permission.GET_NETWORK_INFO
...@@ -131,7 +131,7 @@ radio.getNetworkState(slotId, (err, data) => { ...@@ -131,7 +131,7 @@ radio.getNetworkState(slotId, (err, data) => {
getNetworkState\(slotId?: number\): Promise<NetworkState\> getNetworkState\(slotId?: number\): Promise<NetworkState\>
获取网络状态,使用Promise方式作为异步方法 获取网络状态。使用Promise异步回调
**需要权限**:ohos.permission.GET_NETWORK_INFO **需要权限**:ohos.permission.GET_NETWORK_INFO
...@@ -157,7 +157,7 @@ let promise = radio.getNetworkState(slotId); ...@@ -157,7 +157,7 @@ let promise = radio.getNetworkState(slotId);
promise.then(data => { promise.then(data => {
console.log(`getNetworkState success, promise: data->${JSON.stringify(data)}`); console.log(`getNetworkState success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.log(`getNetworkState fail, promise: err->${JSON.stringify(err)}`); console.log(`getNetworkState failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -166,7 +166,7 @@ promise.then(data => { ...@@ -166,7 +166,7 @@ promise.then(data => {
getNetworkSelectionMode\(slotId: number, callback: AsyncCallback<NetworkSelectionMode\>\): void getNetworkSelectionMode\(slotId: number, callback: AsyncCallback<NetworkSelectionMode\>\): void
获取当前选网模式,使用callback方式作为异步方法 获取当前选网模式。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -191,7 +191,7 @@ radio.getNetworkSelectionMode(slotId, (err, data) => { ...@@ -191,7 +191,7 @@ radio.getNetworkSelectionMode(slotId, (err, data) => {
getNetworkSelectionMode\(slotId: number\): Promise<NetworkSelectionMode\> getNetworkSelectionMode\(slotId: number\): Promise<NetworkSelectionMode\>
获取当前选网模式,使用Promise方式作为异步方法 获取当前选网模式。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -215,7 +215,7 @@ let promise = radio.getNetworkSelectionMode(slotId); ...@@ -215,7 +215,7 @@ let promise = radio.getNetworkSelectionMode(slotId);
promise.then(data => { promise.then(data => {
console.log(`getNetworkSelectionMode success, promise: data->${JSON.stringify(data)}`); console.log(`getNetworkSelectionMode success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.log(`getNetworkSelectionMode fail, promise: err->${JSON.stringify(err)}`); console.log(`getNetworkSelectionMode failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -224,7 +224,7 @@ promise.then(data => { ...@@ -224,7 +224,7 @@ promise.then(data => {
getISOCountryCodeForNetwork\(slotId: number, callback: AsyncCallback<string\>\): void getISOCountryCodeForNetwork\(slotId: number, callback: AsyncCallback<string\>\): void
获取注册网络所在国家的ISO国家码,使用callback方式作为异步方法 获取注册网络所在国家的ISO国家码。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -249,7 +249,7 @@ radio.getISOCountryCodeForNetwork(slotId, (err, data) => { ...@@ -249,7 +249,7 @@ radio.getISOCountryCodeForNetwork(slotId, (err, data) => {
getISOCountryCodeForNetwork\(slotId: number\): Promise<string\> getISOCountryCodeForNetwork\(slotId: number\): Promise<string\>
获取注册网络所在国家的ISO国家码,使用Promise方式作为异步方法 获取注册网络所在国家的ISO国家码。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -273,7 +273,7 @@ let promise = radio.getISOCountryCodeForNetwork(slotId); ...@@ -273,7 +273,7 @@ let promise = radio.getISOCountryCodeForNetwork(slotId);
promise.then(data => { promise.then(data => {
console.log(`getISOCountryCodeForNetwork success, promise: data->${JSON.stringify(data)}`); console.log(`getISOCountryCodeForNetwork success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.log(`getISOCountryCodeForNetwork fail, promise: err->${JSON.stringify(err)}`); console.log(`getISOCountryCodeForNetwork failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -282,7 +282,7 @@ promise.then(data => { ...@@ -282,7 +282,7 @@ promise.then(data => {
getPrimarySlotId\(callback: AsyncCallback\<number\>\): void getPrimarySlotId\(callback: AsyncCallback\<number\>\): void
获取主卡所在卡槽的索引号,使用callback方式作为异步方法 获取主卡所在卡槽的索引号。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -305,7 +305,7 @@ radio.getPrimarySlotId((err, data) => { ...@@ -305,7 +305,7 @@ radio.getPrimarySlotId((err, data) => {
getPrimarySlotId\(\): Promise\<number\> getPrimarySlotId\(\): Promise\<number\>
获取主卡所在卡槽的索引号,使用Promise方式作为异步方法 获取主卡所在卡槽的索引号。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -322,7 +322,7 @@ let promise = radio.getPrimarySlotId(); ...@@ -322,7 +322,7 @@ let promise = radio.getPrimarySlotId();
promise.then(data => { promise.then(data => {
console.log(`getPrimarySlotId success, promise: data->${JSON.stringify(data)}`); console.log(`getPrimarySlotId success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`getPrimarySlotId fail, promise: err->${JSON.stringify(err)}`); console.error(`getPrimarySlotId failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -331,7 +331,7 @@ promise.then(data => { ...@@ -331,7 +331,7 @@ promise.then(data => {
getSignalInformation\(slotId: number, callback: AsyncCallback<Array<SignalInformation\>\>\): void getSignalInformation\(slotId: number, callback: AsyncCallback<Array<SignalInformation\>\>\): void
获取指定SIM卡槽对应的注册网络信号强度信息列表,使用callback方式作为异步方法 获取指定SIM卡槽对应的注册网络信号强度信息列表。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -356,7 +356,7 @@ radio.getSignalInformation(slotId, (err, data) => { ...@@ -356,7 +356,7 @@ radio.getSignalInformation(slotId, (err, data) => {
getSignalInformation\(slotId: number\): Promise<Array<SignalInformation\>\> getSignalInformation\(slotId: number\): Promise<Array<SignalInformation\>\>
获取指定SIM卡槽对应的注册网络信号强度信息列表,使用Promise方式作为异步方法 获取指定SIM卡槽对应的注册网络信号强度信息列表。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -380,7 +380,7 @@ let promise = radio.getSignalInformation(slotId); ...@@ -380,7 +380,7 @@ let promise = radio.getSignalInformation(slotId);
promise.then(data => { promise.then(data => {
console.log(`getSignalInformation success, promise: data->${JSON.stringify(data)}`); console.log(`getSignalInformation success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`getSignalInformation fail, promise: err->${JSON.stringify(err)}`); console.error(`getSignalInformation failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -418,7 +418,7 @@ console.log("Result: "+ result); ...@@ -418,7 +418,7 @@ console.log("Result: "+ result);
isRadioOn\(callback: AsyncCallback<boolean\>\): void isRadioOn\(callback: AsyncCallback<boolean\>\): void
判断主卡的Radio是否打开,使用callback方式作为异步方法 判断主卡的Radio是否打开。使用callback异步回调
**需要权限**:ohos.permission.GET_NETWORK_INFO **需要权限**:ohos.permission.GET_NETWORK_INFO
...@@ -443,7 +443,7 @@ radio.isRadioOn((err, data) => { ...@@ -443,7 +443,7 @@ radio.isRadioOn((err, data) => {
isRadioOn\(slotId: number, callback: AsyncCallback<boolean\>\): void isRadioOn\(slotId: number, callback: AsyncCallback<boolean\>\): void
判断指定卡槽位的Radio是否打开,使用callback方式作为异步方法 判断指定卡槽位的Radio是否打开。使用callback异步回调
**需要权限**:ohos.permission.GET_NETWORK_INFO **需要权限**:ohos.permission.GET_NETWORK_INFO
...@@ -470,7 +470,7 @@ radio.isRadioOn(slotId, (err, data) => { ...@@ -470,7 +470,7 @@ radio.isRadioOn(slotId, (err, data) => {
isRadioOn\(slotId?: number\): Promise<boolean\> isRadioOn\(slotId?: number\): Promise<boolean\>
判断Radio是否打开,使用Promise方式作为异步方法 判断Radio是否打开。使用Promise异步回调
**需要权限**:ohos.permission.GET_NETWORK_INFO **需要权限**:ohos.permission.GET_NETWORK_INFO
...@@ -496,7 +496,7 @@ let promise = radio.isRadioOn(slotId); ...@@ -496,7 +496,7 @@ let promise = radio.isRadioOn(slotId);
promise.then(data => { promise.then(data => {
console.log(`isRadioOn success, promise: data->${JSON.stringify(data)}`); console.log(`isRadioOn success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`isRadioOn fail, promise: err->${JSON.stringify(err)}`); console.error(`isRadioOn failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -505,7 +505,7 @@ promise.then(data => { ...@@ -505,7 +505,7 @@ promise.then(data => {
getOperatorName\(slotId: number, callback: AsyncCallback<string\>\): void getOperatorName\(slotId: number, callback: AsyncCallback<string\>\): void
获取运营商名称,使用callback方式作为异步方法 获取运营商名称。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -514,7 +514,7 @@ getOperatorName\(slotId: number, callback: AsyncCallback<string\>\): void ...@@ -514,7 +514,7 @@ getOperatorName\(slotId: number, callback: AsyncCallback<string\>\): void
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | ----------------------- | ---- | ------------------------------------------ | | -------- | ----------------------- | ---- | ------------------------------------------ |
| slotId | number | 是 | 卡槽ID。<br/>- 0:卡槽1<br/>- 1:卡槽2 | | slotId | number | 是 | 卡槽ID。<br/>- 0:卡槽1<br/>- 1:卡槽2 |
| callback | AsyncCallback\<string\> | 是 | 回调函数返回运营商名称,例如:中国移动。 | | callback | AsyncCallback\<string\> | 是 | 回调函数返回运营商名称,例如:中国移动。 |
**示例:** **示例:**
...@@ -530,7 +530,7 @@ radio.getOperatorName(slotId, (err, data) => { ...@@ -530,7 +530,7 @@ radio.getOperatorName(slotId, (err, data) => {
getOperatorName\(slotId: number\): Promise<string\> getOperatorName\(slotId: number\): Promise<string\>
获取运营商名称,使用Promise方式作为异步方法 获取运营商名称。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -554,7 +554,7 @@ let promise = radio.getOperatorName(slotId); ...@@ -554,7 +554,7 @@ let promise = radio.getOperatorName(slotId);
promise.then(data => { promise.then(data => {
console.log(`getOperatorName success, promise: data->${JSON.stringify(data)}`); console.log(`getOperatorName success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.log(`getOperatorName fail, promise: err->${JSON.stringify(err)}`); console.log(`getOperatorName failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -562,7 +562,7 @@ promise.then(data => { ...@@ -562,7 +562,7 @@ promise.then(data => {
setPrimarySlotId(slotId: number, callback: AsyncCallback<void\>): void setPrimarySlotId(slotId: number, callback: AsyncCallback<void\>): void
设置主卡所在卡槽的索引号,使用callback方式作为异步方法 设置主卡所在卡槽的索引号。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -591,7 +591,7 @@ radio.setPrimarySlotId(slotId, (err, data) => { ...@@ -591,7 +591,7 @@ radio.setPrimarySlotId(slotId, (err, data) => {
setPrimarySlotId\(slotId: number\): Promise\<void\> setPrimarySlotId\(slotId: number\): Promise\<void\>
设置主卡所在卡槽的索引号,使用Promise方式作为异步方法 设置主卡所在卡槽的索引号。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -619,7 +619,7 @@ let promise = radio.setPrimarySlotId(slotId); ...@@ -619,7 +619,7 @@ let promise = radio.setPrimarySlotId(slotId);
promise.then(data => { promise.then(data => {
console.log(`setPrimarySlotId success, promise: data->${JSON.stringify(data)}`); console.log(`setPrimarySlotId success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.log(`setPrimarySlotId fail, promise: err->${JSON.stringify(err)}`); console.log(`setPrimarySlotId failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -627,7 +627,7 @@ promise.then(data => { ...@@ -627,7 +627,7 @@ promise.then(data => {
getIMEI(callback: AsyncCallback<string\>): void getIMEI(callback: AsyncCallback<string\>): void
获取设备的指定卡槽的IMEI,使用callback方式作为异步方法 获取设备的指定卡槽的IMEI。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -654,7 +654,7 @@ radio.getIMEI((err, data) => { ...@@ -654,7 +654,7 @@ radio.getIMEI((err, data) => {
getIMEI(slotId: number, callback: AsyncCallback<string\>): void getIMEI(slotId: number, callback: AsyncCallback<string\>): void
获取设备的指定卡槽的IMEI,使用callback方式作为异步方法 获取设备的指定卡槽的IMEI。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -683,7 +683,7 @@ radio.getIMEI(slotId, (err, data) => { ...@@ -683,7 +683,7 @@ radio.getIMEI(slotId, (err, data) => {
getIMEI(slotId?: number): Promise<string\> getIMEI(slotId?: number): Promise<string\>
获取设备的指定卡槽的IMEI,使用Promise方式作为异步方法 获取设备的指定卡槽的IMEI。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -711,7 +711,7 @@ let promise = radio.getIMEI(slotId); ...@@ -711,7 +711,7 @@ let promise = radio.getIMEI(slotId);
promise.then(data => { promise.then(data => {
console.log(`getIMEI success, promise: data->${JSON.stringify(data)}`); console.log(`getIMEI success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`getIMEI fail, promise: err->${JSON.stringify(err)}`); console.error(`getIMEI failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -719,7 +719,7 @@ promise.then(data => { ...@@ -719,7 +719,7 @@ promise.then(data => {
getMEID(callback: AsyncCallback<string\>): void getMEID(callback: AsyncCallback<string\>): void
获取设备的指定卡槽的MEID,使用callback方式作为异步方法 获取设备的指定卡槽的MEID。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -746,7 +746,7 @@ radio.getMEID((err, data) => { ...@@ -746,7 +746,7 @@ radio.getMEID((err, data) => {
getMEID(slotId: number, callback: AsyncCallback<string\>): void getMEID(slotId: number, callback: AsyncCallback<string\>): void
获取设备的指定卡槽的MEID,使用callback方式作为异步方法 获取设备的指定卡槽的MEID。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -775,7 +775,7 @@ radio.getMEID(slotId, (err, data) => { ...@@ -775,7 +775,7 @@ radio.getMEID(slotId, (err, data) => {
getMEID(slotId?: number): Promise<string\> getMEID(slotId?: number): Promise<string\>
获取设备的指定卡槽的MEID,使用Promise方式作为异步方法 获取设备的指定卡槽的MEID。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -803,7 +803,7 @@ let promise = radio.getMEID(slotId); ...@@ -803,7 +803,7 @@ let promise = radio.getMEID(slotId);
promise.then(data => { promise.then(data => {
console.log(`getMEID success, promise: data->${JSON.stringify(data)}`); console.log(`getMEID success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`getMEID fail, promise: err->${JSON.stringify(err)}`); console.error(`getMEID failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -811,7 +811,7 @@ promise.then(data => { ...@@ -811,7 +811,7 @@ promise.then(data => {
getUniqueDeviceId(callback: AsyncCallback<string\>): void getUniqueDeviceId(callback: AsyncCallback<string\>): void
获取设备的指定卡槽的唯一设备ID,使用callback方式作为异步方法 获取设备的指定卡槽的唯一设备ID。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -838,7 +838,7 @@ radio.getUniqueDeviceId((err, data) => { ...@@ -838,7 +838,7 @@ radio.getUniqueDeviceId((err, data) => {
getUniqueDeviceId(slotId: number, callback: AsyncCallback<string\>): void getUniqueDeviceId(slotId: number, callback: AsyncCallback<string\>): void
获取设备的指定卡槽的唯一设备ID,使用callback方式作为异步方法 获取设备的指定卡槽的唯一设备ID。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -867,7 +867,7 @@ radio.getUniqueDeviceId(slotId, (err, data) => { ...@@ -867,7 +867,7 @@ radio.getUniqueDeviceId(slotId, (err, data) => {
getUniqueDeviceId(slotId?: number): Promise<string\> getUniqueDeviceId(slotId?: number): Promise<string\>
获取设备的指定卡槽的唯一设备ID,使用Promise方式作为异步方法 获取设备的指定卡槽的唯一设备ID。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -895,7 +895,7 @@ let promise = radio.getUniqueDeviceId(slotId); ...@@ -895,7 +895,7 @@ let promise = radio.getUniqueDeviceId(slotId);
promise.then(data => { promise.then(data => {
console.log(`getUniqueDeviceId success, promise: data->${JSON.stringify(data)}`); console.log(`getUniqueDeviceId success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`getUniqueDeviceId fail, promise: err->${JSON.stringify(err)}`); console.error(`getUniqueDeviceId failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -903,7 +903,7 @@ promise.then(data => { ...@@ -903,7 +903,7 @@ promise.then(data => {
sendUpdateCellLocationRequest\(callback: AsyncCallback<void\>\): void sendUpdateCellLocationRequest\(callback: AsyncCallback<void\>\): void
发送更新小区位置请求,使用callback方式作为异步方法 发送更新小区位置请求。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -927,7 +927,7 @@ radio.sendUpdateCellLocationRequest((err, data) => { ...@@ -927,7 +927,7 @@ radio.sendUpdateCellLocationRequest((err, data) => {
sendUpdateCellLocationRequest\(slotId: number, callback: AsyncCallback<void\>\): void sendUpdateCellLocationRequest\(slotId: number, callback: AsyncCallback<void\>\): void
发送更新小区位置请求,使用callback方式作为异步方法 发送更新小区位置请求。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -953,7 +953,7 @@ radio.sendUpdateCellLocationRequest(slotId, (err, data) => { ...@@ -953,7 +953,7 @@ radio.sendUpdateCellLocationRequest(slotId, (err, data) => {
sendUpdateCellLocationRequest\(slotId?: number): Promise<void\> sendUpdateCellLocationRequest\(slotId?: number): Promise<void\>
发送更新小区位置请求,使用Promise方式作为异步方法 发送更新小区位置请求。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -979,7 +979,7 @@ let promise = radio.sendUpdateCellLocationRequest(slotId); ...@@ -979,7 +979,7 @@ let promise = radio.sendUpdateCellLocationRequest(slotId);
promise.then(data => { promise.then(data => {
console.log(`sendUpdateCellLocationRequest success, promise: data->${JSON.stringify(data)}`); console.log(`sendUpdateCellLocationRequest success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.log(`sendUpdateCellLocationRequest fail, promise: err->${JSON.stringify(err)}`); console.log(`sendUpdateCellLocationRequest failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -987,7 +987,7 @@ promise.then(data => { ...@@ -987,7 +987,7 @@ promise.then(data => {
getCellInformation(callback: AsyncCallback<Array<CellInformation\>>): void getCellInformation(callback: AsyncCallback<Array<CellInformation\>>): void
获取小区信息,使用callback方式作为异步方法 获取小区信息。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -999,7 +999,7 @@ getCellInformation(callback: AsyncCallback<Array<CellInformation\>>): void ...@@ -999,7 +999,7 @@ getCellInformation(callback: AsyncCallback<Array<CellInformation\>>): void
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | ------------------------------------------------------------ | ---- | ------------------------ | | -------- | ------------------------------------------------------------ | ---- | ------------------------ |
| callback | AsyncCallback\<Array<[CellInformation](#cellinformation8)\>\> | 是 | 回调函数,返回小区信息。 | | callback | AsyncCallback\<Array<[CellInformation](#cellinformation8)\>\> | 是 | 回调函数。 |
**示例:** **示例:**
...@@ -1014,7 +1014,7 @@ radio.getCellInformation((err, data) => { ...@@ -1014,7 +1014,7 @@ radio.getCellInformation((err, data) => {
getCellInformation(slotId: number, callback: AsyncCallback<Array<CellInformation\>\>): void getCellInformation(slotId: number, callback: AsyncCallback<Array<CellInformation\>\>): void
获取小区信息,使用callback方式作为异步方法 获取小区信息。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1027,7 +1027,7 @@ getCellInformation(slotId: number, callback: AsyncCallback<Array<CellInformation ...@@ -1027,7 +1027,7 @@ getCellInformation(slotId: number, callback: AsyncCallback<Array<CellInformation
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | ------------------------------------------------------------ | ---- | -------------------------------------- | | -------- | ------------------------------------------------------------ | ---- | -------------------------------------- |
| slotId | number | 是 | 卡槽ID。<br/>- 0:卡槽1<br/>- 1:卡槽2 | | slotId | number | 是 | 卡槽ID。<br/>- 0:卡槽1<br/>- 1:卡槽2 |
| callback | AsyncCallback\<Array<[CellInformation](#cellinformation8)\>\> | 是 | 回调函数,返回小区信息。 | | callback | AsyncCallback\<Array<[CellInformation](#cellinformation8)\>\> | 是 | 回调函数。 |
**示例:** **示例:**
...@@ -1043,7 +1043,7 @@ radio.getCellInformation(slotId, (err, data) => { ...@@ -1043,7 +1043,7 @@ radio.getCellInformation(slotId, (err, data) => {
getCellInformation(slotId?: number): Promise<Array<CellInformation\>\> getCellInformation(slotId?: number): Promise<Array<CellInformation\>\>
获取小区信息,使用Promise方式作为异步方法 获取小区信息。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1071,7 +1071,7 @@ let promise = radio.getCellInformation(slotId); ...@@ -1071,7 +1071,7 @@ let promise = radio.getCellInformation(slotId);
promise.then(data => { promise.then(data => {
console.log(`getCellInformation success, promise: data->${JSON.stringify(data)}`); console.log(`getCellInformation success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`getCellInformation fail, promise: err->${JSON.stringify(err)}`); console.error(`getCellInformation failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -1079,7 +1079,7 @@ promise.then(data => { ...@@ -1079,7 +1079,7 @@ promise.then(data => {
setNetworkSelectionMode\(options: NetworkSelectionModeOptions, callback: AsyncCallback<void\>\): void setNetworkSelectionMode\(options: NetworkSelectionModeOptions, callback: AsyncCallback<void\>\): void
设置网络选择模式,使用callback方式作为异步方法 设置网络选择模式。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1118,7 +1118,7 @@ radio.setNetworkSelectionMode(networkSelectionModeOptions, (err, data) => { ...@@ -1118,7 +1118,7 @@ radio.setNetworkSelectionMode(networkSelectionModeOptions, (err, data) => {
setNetworkSelectionMode\(options: NetworkSelectionModeOptions\): Promise<void\> setNetworkSelectionMode\(options: NetworkSelectionModeOptions\): Promise<void\>
设置网络选择模式,使用Promise方式作为异步方法 设置网络选择模式。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1157,7 +1157,7 @@ let promise = radio.setNetworkSelectionMode(networkSelectionModeOptions); ...@@ -1157,7 +1157,7 @@ let promise = radio.setNetworkSelectionMode(networkSelectionModeOptions);
promise.then(data => { promise.then(data => {
console.log(`setNetworkSelectionMode success, promise: data->${JSON.stringify(data)}`); console.log(`setNetworkSelectionMode success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.log(`setNetworkSelectionMode fail, promise: err->${JSON.stringify(err)}`); console.log(`setNetworkSelectionMode failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -1165,7 +1165,7 @@ promise.then(data => { ...@@ -1165,7 +1165,7 @@ promise.then(data => {
getNetworkSearchInformation\(slotId: number, callback: AsyncCallback<NetworkSearchResult\>\): void getNetworkSearchInformation\(slotId: number, callback: AsyncCallback<NetworkSearchResult\>\): void
获取网络搜索信息,使用callback方式作为异步方法 获取网络搜索信息。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1178,7 +1178,7 @@ getNetworkSearchInformation\(slotId: number, callback: AsyncCallback<NetworkSear ...@@ -1178,7 +1178,7 @@ getNetworkSearchInformation\(slotId: number, callback: AsyncCallback<NetworkSear
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | ------------------------------------------------------------ | ---- | -------------------------------------- | | -------- | ------------------------------------------------------------ | ---- | -------------------------------------- |
| slotId | number | 是 | 卡槽ID。<br/>- 0:卡槽1<br/>- 1:卡槽2 | | slotId | number | 是 | 卡槽ID。<br/>- 0:卡槽1<br/>- 1:卡槽2 |
| callback | AsyncCallback\<[NetworkSearchResult](#networksearchresult)\> | 是 | 回调函数。返回网络搜索信息。 | | callback | AsyncCallback\<[NetworkSearchResult](#networksearchresult)\> | 是 | 回调函数。 |
**示例:** **示例:**
...@@ -1192,7 +1192,7 @@ radio.getNetworkSearchInformation(0, (err, data) => { ...@@ -1192,7 +1192,7 @@ radio.getNetworkSearchInformation(0, (err, data) => {
getNetworkSearchInformation\(slotId: number\): Promise<void\> getNetworkSearchInformation\(slotId: number\): Promise<void\>
获取网络搜索信息,使用Promise方式作为异步方法 获取网络搜索信息。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1219,7 +1219,7 @@ let promise = radio.getNetworkSearchInformation(0); ...@@ -1219,7 +1219,7 @@ let promise = radio.getNetworkSearchInformation(0);
promise.then(data => { promise.then(data => {
console.log(`getNetworkSearchInformation success, promise: data->${JSON.stringify(data)}`); console.log(`getNetworkSearchInformation success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.log(`getNetworkSearchInformation fail, promise: err->${JSON.stringify(err)}`); console.log(`getNetworkSearchInformation failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -1227,7 +1227,7 @@ promise.then(data => { ...@@ -1227,7 +1227,7 @@ promise.then(data => {
getNrOptionMode(callback: AsyncCallback<NrOptionMode\>): void getNrOptionMode(callback: AsyncCallback<NrOptionMode\>): void
获取Nr选项模式 ,使用callback方式作为异步方法 获取Nr选项模式 。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1252,7 +1252,7 @@ radio.getNrOptionMode((err, data) => { ...@@ -1252,7 +1252,7 @@ radio.getNrOptionMode((err, data) => {
getNrOptionMode(slotId: number, callback: AsyncCallback<NrOptionMode\>): void getNrOptionMode(slotId: number, callback: AsyncCallback<NrOptionMode\>): void
获取Nr选项模式 ,使用callback方式作为异步方法 获取Nr选项模式 。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1279,7 +1279,7 @@ radio.getNrOptionMode(slotId, (err, data) => { ...@@ -1279,7 +1279,7 @@ radio.getNrOptionMode(slotId, (err, data) => {
getNrOptionMode(slotId?: number): Promise<NrOptionMode\> getNrOptionMode(slotId?: number): Promise<NrOptionMode\>
获取Nr选项模式 ,使用Promise方式作为异步方法 获取Nr选项模式 。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1305,7 +1305,7 @@ let promise = radio.getNrOptionMode(slotId); ...@@ -1305,7 +1305,7 @@ let promise = radio.getNrOptionMode(slotId);
promise.then(data => { promise.then(data => {
console.log(`getNrOptionMode success, promise: data->${JSON.stringify(data)}`); console.log(`getNrOptionMode success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`getNrOptionMode fail, promise: err->${JSON.stringify(err)}`); console.error(`getNrOptionMode failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -1313,7 +1313,7 @@ promise.then(data => { ...@@ -1313,7 +1313,7 @@ promise.then(data => {
turnOnRadio(callback: AsyncCallback<void\>): void turnOnRadio(callback: AsyncCallback<void\>): void
打开Radio,使用callback方式作为异步方法 打开Radio。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1340,7 +1340,7 @@ radio.turnOnRadio((err, data) => { ...@@ -1340,7 +1340,7 @@ radio.turnOnRadio((err, data) => {
turnOnRadio(slotId: number, callback: AsyncCallback<void\>): void turnOnRadio(slotId: number, callback: AsyncCallback<void\>): void
打开Radio,使用callback方式作为异步方法 打开Radio。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1369,7 +1369,7 @@ radio.turnOnRadio(slotId, (err, data) => { ...@@ -1369,7 +1369,7 @@ radio.turnOnRadio(slotId, (err, data) => {
turnOnRadio(slotId?: number): Promise<void\> turnOnRadio(slotId?: number): Promise<void\>
打开Radio,使用Promise方式作为异步方法 打开Radio。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1397,7 +1397,7 @@ let promise = radio.turnOnRadio(slotId); ...@@ -1397,7 +1397,7 @@ let promise = radio.turnOnRadio(slotId);
promise.then(data => { promise.then(data => {
console.log(`turnOnRadio success, promise: data->${JSON.stringify(data)}`); console.log(`turnOnRadio success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`turnOnRadio fail, promise: err->${JSON.stringify(err)}`); console.error(`turnOnRadio failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -1405,7 +1405,7 @@ promise.then(data => { ...@@ -1405,7 +1405,7 @@ promise.then(data => {
turnOffRadio(callback: AsyncCallback<void\>): void turnOffRadio(callback: AsyncCallback<void\>): void
关闭Radio,使用callback方式作为异步方法 关闭Radio。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1432,7 +1432,7 @@ radio.turnOffRadio((err, data) => { ...@@ -1432,7 +1432,7 @@ radio.turnOffRadio((err, data) => {
turnOffRadio(slotId: number, callback: AsyncCallback<void\>): void turnOffRadio(slotId: number, callback: AsyncCallback<void\>): void
关闭Radio,使用callback方式作为异步方法 关闭Radio。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1461,7 +1461,7 @@ radio.turnOffRadio(slotId, (err, data) => { ...@@ -1461,7 +1461,7 @@ radio.turnOffRadio(slotId, (err, data) => {
turnOffRadio(slotId?: number): Promise<void\> turnOffRadio(slotId?: number): Promise<void\>
关闭Radio,使用Promise方式作为异步方法 关闭Radio。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1489,7 +1489,7 @@ let promise = radio.turnOffRadio(slotId); ...@@ -1489,7 +1489,7 @@ let promise = radio.turnOffRadio(slotId);
promise.then(data => { promise.then(data => {
console.log(`turnOffRadio success, promise: data->${JSON.stringify(data)}`); console.log(`turnOffRadio success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`turnOffRadio fail, promise: err->${JSON.stringify(err)}`); console.error(`turnOffRadio failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -1497,7 +1497,7 @@ promise.then(data => { ...@@ -1497,7 +1497,7 @@ promise.then(data => {
setPreferredNetwork\(slotId: number, networkMode: PreferredNetworkMode, callback: AsyncCallback<void\>\): void setPreferredNetwork\(slotId: number, networkMode: PreferredNetworkMode, callback: AsyncCallback<void\>\): void
设置首选网络,使用callback方式作为异步方法 设置首选网络。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1510,7 +1510,7 @@ setPreferredNetwork\(slotId: number, networkMode: PreferredNetworkMode, callback ...@@ -1510,7 +1510,7 @@ setPreferredNetwork\(slotId: number, networkMode: PreferredNetworkMode, callback
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| ----------- | ---------------------------------------------- | ---- | -------------------------------------- | | ----------- | ---------------------------------------------- | ---- | -------------------------------------- |
| slotId | number | 是 | 卡槽ID。<br/>- 0:卡槽1<br/>- 1:卡槽2 | | slotId | number | 是 | 卡槽ID。<br/>- 0:卡槽1<br/>- 1:卡槽2 |
| networkMode | [PreferredNetworkMode](#preferrednetworkmode8) | 是 | 设置首选网络模式 | | networkMode | [PreferredNetworkMode](#preferrednetworkmode8) | 是 | 设置首选网络模式 |
| callback | AsyncCallback\<void\> | 是 | 回调函数。 | | callback | AsyncCallback\<void\> | 是 | 回调函数。 |
**示例:** **示例:**
...@@ -1525,7 +1525,7 @@ radio.setPreferredNetwork(0, 1, (err, data) => { ...@@ -1525,7 +1525,7 @@ radio.setPreferredNetwork(0, 1, (err, data) => {
setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode): Promise<void\> setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode): Promise<void\>
设置首选网络,使用Promise方式作为异步方法 设置首选网络。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1538,7 +1538,7 @@ setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode): Promise< ...@@ -1538,7 +1538,7 @@ setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode): Promise<
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| ----------- | ---------------------------------------------- | ---- | -------------------------------------- | | ----------- | ---------------------------------------------- | ---- | -------------------------------------- |
| slotId | number | 是 | 卡槽ID。<br/>- 0:卡槽1<br/>- 1:卡槽2 | | slotId | number | 是 | 卡槽ID。<br/>- 0:卡槽1<br/>- 1:卡槽2 |
| networkMode | [PreferredNetworkMode](#preferrednetworkmode8) | 是 | 设置首选网络模式 | | networkMode | [PreferredNetworkMode](#preferrednetworkmode8) | 是 | 设置首选网络模式 |
**返回值:** **返回值:**
...@@ -1553,7 +1553,7 @@ let promise = radio.setPreferredNetwork(0, 1); ...@@ -1553,7 +1553,7 @@ let promise = radio.setPreferredNetwork(0, 1);
promise.then(data => { promise.then(data => {
console.log(`setPreferredNetwork success, promise: data->${JSON.stringify(data)}`); console.log(`setPreferredNetwork success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.log(`setPreferredNetwork fail, promise: err->${JSON.stringify(err)}`); console.log(`setPreferredNetwork failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -1561,7 +1561,7 @@ promise.then(data => { ...@@ -1561,7 +1561,7 @@ promise.then(data => {
getPreferredNetwork\(slotId: number, callback: AsyncCallback<PreferredNetworkMode\>\): void getPreferredNetwork\(slotId: number, callback: AsyncCallback<PreferredNetworkMode\>\): void
获取首选网络,使用callback方式作为异步方法 获取首选网络。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1588,7 +1588,7 @@ radio.getPreferredNetwork(0, (err, data) => { ...@@ -1588,7 +1588,7 @@ radio.getPreferredNetwork(0, (err, data) => {
getPreferredNetwork(slotId: number): Promise<void\> getPreferredNetwork(slotId: number): Promise<void\>
获取首选网络,使用Promise方式作为异步方法 获取首选网络。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1615,7 +1615,7 @@ let promise = radio.getPreferredNetwork(0); ...@@ -1615,7 +1615,7 @@ let promise = radio.getPreferredNetwork(0);
promise.then(data => { promise.then(data => {
console.log(`getPreferredNetwork success, promise: data->${JSON.stringify(data)}`); console.log(`getPreferredNetwork success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.log(`getPreferredNetwork fail, promise: err->${JSON.stringify(err)}`); console.log(`getPreferredNetwork failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -1623,7 +1623,7 @@ promise.then(data => { ...@@ -1623,7 +1623,7 @@ promise.then(data => {
getImsRegInfo(slotId: number, imsType: ImsServiceType, callback: AsyncCallback<ImsRegInfo\>): void getImsRegInfo(slotId: number, imsType: ImsServiceType, callback: AsyncCallback<ImsRegInfo\>): void
获取特定IMS服务类型的IMS注册状态信息,使用callback方式作为异步方法 获取特定IMS服务类型的IMS注册状态信息。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1651,7 +1651,7 @@ radio.getImsRegInfo(0, 1, (err, data) => { ...@@ -1651,7 +1651,7 @@ radio.getImsRegInfo(0, 1, (err, data) => {
getImsRegInfo(slotId: number, imsType: ImsServiceType): Promise<ImsRegInfo\> getImsRegInfo(slotId: number, imsType: ImsServiceType): Promise<ImsRegInfo\>
获取特定IMS服务类型的IMS注册状态信息,使用Promise方式作为异步方法 获取特定IMS服务类型的IMS注册状态信息。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1679,7 +1679,7 @@ let promise = radio.getImsRegInfo(0, 1); ...@@ -1679,7 +1679,7 @@ let promise = radio.getImsRegInfo(0, 1);
promise.then(data => { promise.then(data => {
console.log(`getImsRegInfo success, promise: data->${JSON.stringify(data)}`); console.log(`getImsRegInfo success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.log(`getImsRegInfo fail, promise: err->${JSON.stringify(err)}`); console.log(`getImsRegInfo failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -1756,7 +1756,7 @@ radio.off('imsRegStateChange', 0, 1, (err, data) => { ...@@ -1756,7 +1756,7 @@ radio.off('imsRegStateChange', 0, 1, (err, data) => {
| RADIO_TECHNOLOGY_HSPA | 4 | 无线接入技术HSPA(High Speed Packet Access)。 | | RADIO_TECHNOLOGY_HSPA | 4 | 无线接入技术HSPA(High Speed Packet Access)。 |
| RADIO_TECHNOLOGY_HSPAP | 5 | 无线接入技术HSPAP(High Speed packet access (HSPA+) )。 | | RADIO_TECHNOLOGY_HSPAP | 5 | 无线接入技术HSPAP(High Speed packet access (HSPA+) )。 |
| RADIO_TECHNOLOGY_TD_SCDMA | 6 | 无线接入技术TDSCDMA(TimeDivision-Synchronous Code Division Multiple Access)。 | | RADIO_TECHNOLOGY_TD_SCDMA | 6 | 无线接入技术TDSCDMA(TimeDivision-Synchronous Code Division Multiple Access)。 |
| RADIO_TECHNOLOGY_EVDO | 7 | 无线接入技术EVDO(EvolutionData Only)。 | | RADIO_TECHNOLOGY_EVDO | 7 | 无线接入技术EVDO(Evolution Data Only)。 |
| RADIO_TECHNOLOGY_EHRPD | 8 | 无线接入技术EHRPD(Evolved High Rate Package Data)。 | | RADIO_TECHNOLOGY_EHRPD | 8 | 无线接入技术EHRPD(Evolved High Rate Package Data)。 |
| RADIO_TECHNOLOGY_LTE | 9 | 无线接入技术LTE(Long Term Evolution)。 | | RADIO_TECHNOLOGY_LTE | 9 | 无线接入技术LTE(Long Term Evolution)。 |
| RADIO_TECHNOLOGY_LTE_CA | 10 | 无线接入技术LTE_CA(Long Term Evolution_Carrier Aggregation)。 | | RADIO_TECHNOLOGY_LTE_CA | 10 | 无线接入技术LTE_CA(Long Term Evolution_Carrier Aggregation)。 |
...@@ -1916,7 +1916,7 @@ radio.off('imsRegStateChange', 0, 1, (err, data) => { ...@@ -1916,7 +1916,7 @@ radio.off('imsRegStateChange', 0, 1, (err, data) => {
## CdmaCellInformation<sup>8+</sup> ## CdmaCellInformation<sup>8+</sup>
Cdma小区信息。 CDMA小区信息。
此接口为系统接口。 此接口为系统接口。
...@@ -1932,7 +1932,7 @@ Cdma小区信息。 ...@@ -1932,7 +1932,7 @@ Cdma小区信息。
## GsmCellInformation<sup>8+</sup> ## GsmCellInformation<sup>8+</sup>
Gsm小区信息。 GSM小区信息。
此接口为系统接口。 此接口为系统接口。
...@@ -1949,7 +1949,7 @@ Gsm小区信息。 ...@@ -1949,7 +1949,7 @@ Gsm小区信息。
## LteCellInformation<sup>8+</sup> ## LteCellInformation<sup>8+</sup>
Lte小区信息。 LTE小区信息。
此接口为系统接口。 此接口为系统接口。
...@@ -1968,7 +1968,7 @@ Lte小区信息。 ...@@ -1968,7 +1968,7 @@ Lte小区信息。
## NrCellInformation<sup>8+</sup> ## NrCellInformation<sup>8+</sup>
Nr小区信息。 NR小区信息。
此接口为系统接口。 此接口为系统接口。
...@@ -1985,7 +1985,7 @@ Nr小区信息。 ...@@ -1985,7 +1985,7 @@ Nr小区信息。
## TdscdmaCellInformation<sup>8+</sup> ## TdscdmaCellInformation<sup>8+</sup>
Tdscdma小区信息。 TD-SCDMA小区信息。
此接口为系统接口。 此接口为系统接口。
...@@ -2002,7 +2002,7 @@ Tdscdma小区信息。 ...@@ -2002,7 +2002,7 @@ Tdscdma小区信息。
## WcdmaCellInformation<sup>8+</sup> ## WcdmaCellInformation<sup>8+</sup>
Wcdma小区信息。 WCDMA小区信息。
此接口为系统接口。 此接口为系统接口。
...@@ -2019,7 +2019,7 @@ Wcdma小区信息。 ...@@ -2019,7 +2019,7 @@ Wcdma小区信息。
## NrOptionMode<sup>8+</sup> ## NrOptionMode<sup>8+</sup>
Nr的选择模式。 NR的选择模式。
此接口为系统接口。 此接口为系统接口。
...@@ -2027,10 +2027,10 @@ Nr的选择模式。 ...@@ -2027,10 +2027,10 @@ Nr的选择模式。
| 名称 | 值 | 说明 | | 名称 | 值 | 说明 |
| -------------------- | ---- | ---------------------------------- | | -------------------- | ---- | ---------------------------------- |
| NR_OPTION_UNKNOWN | 0 | 未知的Nr选择模式。 | | NR_OPTION_UNKNOWN | 0 | 未知的NR选择模式。 |
| NR_OPTION_NSA_ONLY | 1 | 仅非独立组网的Nr选择模式。 | | NR_OPTION_NSA_ONLY | 1 | 仅非独立组网的NR选择模式。 |
| NR_OPTION_SA_ONLY | 2 | 仅独立组网的Nr选择模式。 | | NR_OPTION_SA_ONLY | 2 | 仅独立组网的NR选择模式。 |
| NR_OPTION_NSA_AND_SA | 3 | 非独立组网和独立组网的Nr选择模式。 | | NR_OPTION_NSA_AND_SA | 3 | 非独立组网和独立组网的NR选择模式。 |
## NetworkSearchResult ## NetworkSearchResult
......
...@@ -17,7 +17,7 @@ import sim from '@ohos.telephony.sim'; ...@@ -17,7 +17,7 @@ import sim from '@ohos.telephony.sim';
isSimActive\(slotId: number, callback: AsyncCallback<boolean\>\): void isSimActive\(slotId: number, callback: AsyncCallback<boolean\>\): void
获取指定卡槽SIM卡是否激活,使用callback方式作为异步方法 获取指定卡槽SIM卡是否激活。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -41,7 +41,7 @@ sim.isSimActive(0, (err, data) => { ...@@ -41,7 +41,7 @@ sim.isSimActive(0, (err, data) => {
isSimActive\(slotId: number\): Promise<boolean\> isSimActive\(slotId: number\): Promise<boolean\>
获取指定卡槽SIM卡是否激活,使用Promise方式作为异步方法 获取指定卡槽SIM卡是否激活。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -73,7 +73,7 @@ promise.then(data => { ...@@ -73,7 +73,7 @@ promise.then(data => {
getDefaultVoiceSlotId\(callback: AsyncCallback<number\>\): void getDefaultVoiceSlotId\(callback: AsyncCallback<number\>\): void
获取默认语音业务的卡槽ID,使用callback方式作为异步方法 获取默认语音业务的卡槽ID。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -96,7 +96,7 @@ sim.getDefaultVoiceSlotId((err, data) => { ...@@ -96,7 +96,7 @@ sim.getDefaultVoiceSlotId((err, data) => {
getDefaultVoiceSlotId\(\): Promise<number\> getDefaultVoiceSlotId\(\): Promise<number\>
获取默认语音业务的卡槽ID,使用Promise方式作为异步方法 获取默认语音业务的卡槽ID。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -121,7 +121,7 @@ promise.then(data => { ...@@ -121,7 +121,7 @@ promise.then(data => {
hasOperatorPrivileges(slotId: number, callback: AsyncCallback\<boolean\>): void hasOperatorPrivileges(slotId: number, callback: AsyncCallback\<boolean\>): void
检查应用(调用者)是否已被授予运营商权限,使用callback方式作为异步方法 检查应用(调用者)是否已被授予运营商权限。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -144,7 +144,7 @@ sim.hasOperatorPrivileges(0, (err, data) => { ...@@ -144,7 +144,7 @@ sim.hasOperatorPrivileges(0, (err, data) => {
hasOperatorPrivileges(slotId: number): Promise<boolean\> hasOperatorPrivileges(slotId: number): Promise<boolean\>
检查应用(调用者)是否已被授予运营商权限,使用Promise方式作为异步方法 检查应用(调用者)是否已被授予运营商权限。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -175,7 +175,7 @@ promise.then(data => { ...@@ -175,7 +175,7 @@ promise.then(data => {
getISOCountryCodeForSim\(slotId: number, callback: AsyncCallback<string\>\): void getISOCountryCodeForSim\(slotId: number, callback: AsyncCallback<string\>\): void
获取指定卡槽SIM卡的ISO国家码,使用callback方式作为异步方法 获取指定卡槽SIM卡的ISO国家码。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -199,7 +199,7 @@ sim.getISOCountryCodeForSim(0, (err, data) => { ...@@ -199,7 +199,7 @@ sim.getISOCountryCodeForSim(0, (err, data) => {
getISOCountryCodeForSim\(slotId: number\): Promise<string\> getISOCountryCodeForSim\(slotId: number\): Promise<string\>
获取指定卡槽SIM卡的ISO国家码,使用Promise方式作为异步方法 获取指定卡槽SIM卡的ISO国家码。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -231,7 +231,7 @@ promise.then(data => { ...@@ -231,7 +231,7 @@ promise.then(data => {
getSimOperatorNumeric\(slotId: number, callback: AsyncCallback<string\>\): void getSimOperatorNumeric\(slotId: number, callback: AsyncCallback<string\>\): void
获取指定卡槽SIM卡的归属PLMN(Public Land Mobile Network)号,使用callback方式作为异步方法 获取指定卡槽SIM卡的归属PLMN(Public Land Mobile Network)号。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -255,7 +255,7 @@ sim.getSimOperatorNumeric(0, (err, data) => { ...@@ -255,7 +255,7 @@ sim.getSimOperatorNumeric(0, (err, data) => {
getSimOperatorNumeric\(slotId: number\): Promise<string\> getSimOperatorNumeric\(slotId: number\): Promise<string\>
获取指定卡槽SIM卡的归属PLMN(Public Land Mobile Network)号,使用Promise方式作为异步方法 获取指定卡槽SIM卡的归属PLMN(Public Land Mobile Network)号。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -287,7 +287,7 @@ promise.then(data => { ...@@ -287,7 +287,7 @@ promise.then(data => {
getSimSpn\(slotId: number, callback: AsyncCallback<string\>\): void getSimSpn\(slotId: number, callback: AsyncCallback<string\>\): void
获取指定卡槽SIM卡的服务提供商名称(Service Provider Name,SPN),使用callback方式作为异步方法 获取指定卡槽SIM卡的服务提供商名称(Service Provider Name,SPN)。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -311,7 +311,7 @@ sim.getSimSpn(0, (err, data) => { ...@@ -311,7 +311,7 @@ sim.getSimSpn(0, (err, data) => {
getSimSpn\(slotId: number\): Promise<string\> getSimSpn\(slotId: number\): Promise<string\>
获取指定卡槽SIM卡的服务提供商名称(Service Provider Name,SPN),使用Promise方式作为异步方法 获取指定卡槽SIM卡的服务提供商名称(Service Provider Name,SPN)。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -343,7 +343,7 @@ promise.then(data => { ...@@ -343,7 +343,7 @@ promise.then(data => {
getSimState\(slotId: number, callback: AsyncCallback<SimState\>\): void getSimState\(slotId: number, callback: AsyncCallback<SimState\>\): void
获取指定卡槽的SIM卡状态,使用callback方式作为异步方法 获取指定卡槽的SIM卡状态。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -367,7 +367,7 @@ sim.getSimState(0, (err, data) => { ...@@ -367,7 +367,7 @@ sim.getSimState(0, (err, data) => {
getSimState\(slotId: number\): Promise<SimState\> getSimState\(slotId: number\): Promise<SimState\>
获取指定卡槽的SIM卡状态,使用Promise方式作为异步方法 获取指定卡槽的SIM卡状态。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -398,7 +398,7 @@ promise.then(data => { ...@@ -398,7 +398,7 @@ promise.then(data => {
getCardType\(slotId: number, callback: AsyncCallback<CardType\>\): void getCardType\(slotId: number, callback: AsyncCallback<CardType\>\): void
获取指定卡槽SIM卡的卡类型,使用callback方式作为异步方法 获取指定卡槽SIM卡的卡类型。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -422,7 +422,7 @@ sim.getCardType(0, (err, data) => { ...@@ -422,7 +422,7 @@ sim.getCardType(0, (err, data) => {
getCardType\(slotId: number\): Promise<CardType\> getCardType\(slotId: number\): Promise<CardType\>
获取指定卡槽SIM卡的卡类型,使用Promise方式作为异步方法 获取指定卡槽SIM卡的卡类型。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -454,7 +454,7 @@ promise.then(data => { ...@@ -454,7 +454,7 @@ promise.then(data => {
hasSimCard\(slotId: number, callback: AsyncCallback<boolean\>\): void hasSimCard\(slotId: number, callback: AsyncCallback<boolean\>\): void
获取指定卡槽SIM卡是否插卡,使用callback方式作为异步方法 获取指定卡槽SIM卡是否插卡。使用callback异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -478,7 +478,7 @@ sim.hasSimCard(0, (err, data) => { ...@@ -478,7 +478,7 @@ sim.hasSimCard(0, (err, data) => {
hasSimCard\(slotId: number\): Promise<boolean\> hasSimCard\(slotId: number\): Promise<boolean\>
获取指定卡槽SIM卡是否插卡,使用Promise方式作为异步方法 获取指定卡槽SIM卡是否插卡。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.CoreService **系统能力**:SystemCapability.Telephony.CoreService
...@@ -509,7 +509,7 @@ promise.then(data => { ...@@ -509,7 +509,7 @@ promise.then(data => {
getSimAccountInfo(slotId: number, callback: AsyncCallback<IccAccountInfo\>): void getSimAccountInfo(slotId: number, callback: AsyncCallback<IccAccountInfo\>): void
获取SIM卡账户信息,使用callback方式作为异步方法 获取SIM卡账户信息。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -537,7 +537,7 @@ sim.getSimAccountInfo(0, (err, data) => { ...@@ -537,7 +537,7 @@ sim.getSimAccountInfo(0, (err, data) => {
getSimAccountInfo(slotId: number): Promise<IccAccountInfo\> getSimAccountInfo(slotId: number): Promise<IccAccountInfo\>
获取SIM卡账户信息,使用Promise方式作为异步方法 获取SIM卡账户信息。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -572,7 +572,7 @@ promise.then(data => { ...@@ -572,7 +572,7 @@ promise.then(data => {
getActiveSimAccountInfoList(callback: AsyncCallback<Array<IccAccountInfo\>>): void getActiveSimAccountInfoList(callback: AsyncCallback<Array<IccAccountInfo\>>): void
获取活跃SIM卡账户信息列表,使用callback方式作为异步方法 获取活跃SIM卡账户信息列表。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -599,7 +599,7 @@ sim.getActiveSimAccountInfoList(0, (err, data) => { ...@@ -599,7 +599,7 @@ sim.getActiveSimAccountInfoList(0, (err, data) => {
getActiveSimAccountInfoList(): Promise<Array<IccAccountInfo\>>; getActiveSimAccountInfoList(): Promise<Array<IccAccountInfo\>>;
获取活跃SIM卡账户信息列表,使用Promise方式作为异步方法 获取活跃SIM卡账户信息列表。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -628,7 +628,7 @@ promise.then(data => { ...@@ -628,7 +628,7 @@ promise.then(data => {
setDefaultVoiceSlotId(slotId: number, callback: AsyncCallback<void\>): void setDefaultVoiceSlotId(slotId: number, callback: AsyncCallback<void\>): void
设置默认语音业务的卡槽ID,使用callback方式作为异步方法 设置默认语音业务的卡槽ID。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -656,7 +656,7 @@ sim.setDefaultVoiceSlotId(0, (err, data) => { ...@@ -656,7 +656,7 @@ sim.setDefaultVoiceSlotId(0, (err, data) => {
setDefaultVoiceSlotId(slotId: number): Promise\<void\> setDefaultVoiceSlotId(slotId: number): Promise\<void\>
设置默认语音业务的卡槽ID,使用Promise方式作为异步方法 设置默认语音业务的卡槽ID。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -691,7 +691,7 @@ promise.then(data => { ...@@ -691,7 +691,7 @@ promise.then(data => {
setShowName\(slotId: number, name: string,callback: AsyncCallback<void\>\): void setShowName\(slotId: number, name: string,callback: AsyncCallback<void\>\): void
设置指定卡槽SIM卡显示的名称,使用callback方式作为异步方法 设置指定卡槽SIM卡显示的名称。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -720,7 +720,7 @@ sim.setShowName(0, name, (err, data) => { ...@@ -720,7 +720,7 @@ sim.setShowName(0, name, (err, data) => {
setShowName\(slotId: number, name: string\): Promise\<void\> setShowName\(slotId: number, name: string\): Promise\<void\>
设置指定卡槽SIM卡显示的名称,使用Promise方式作为异步方法 设置指定卡槽SIM卡显示的名称。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -757,7 +757,7 @@ promise.then(data => { ...@@ -757,7 +757,7 @@ promise.then(data => {
getShowName(slotId: number, callback: AsyncCallback<string\>): void getShowName(slotId: number, callback: AsyncCallback<string\>): void
获取指定卡槽SIM卡的名称,使用callback方式作为异步方法 获取指定卡槽SIM卡的名称。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -785,7 +785,7 @@ sim.getShowName(0, (err, data) => { ...@@ -785,7 +785,7 @@ sim.getShowName(0, (err, data) => {
getShowName(slotId: number): Promise<string\> getShowName(slotId: number): Promise<string\>
获取指定卡槽SIM卡的名称,使用Promise方式作为异步方法 获取指定卡槽SIM卡的名称。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -820,7 +820,7 @@ promise.then(data => { ...@@ -820,7 +820,7 @@ promise.then(data => {
setShowNumber\(slotId: number, number: string,callback: AsyncCallback<void\>\): void setShowNumber\(slotId: number, number: string,callback: AsyncCallback<void\>\): void
设置指定卡槽SIM卡的号码,使用callback方式作为异步方法 设置指定卡槽SIM卡的号码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -850,7 +850,7 @@ sim.setShowNumber(0, number, (err, data) => { ...@@ -850,7 +850,7 @@ sim.setShowNumber(0, number, (err, data) => {
setShowNumber\(slotId: number,number: string\): Promise\<void\> setShowNumber\(slotId: number,number: string\): Promise\<void\>
设置指定卡槽SIM卡的号码,使用Promise方式作为异步方法 设置指定卡槽SIM卡的号码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -887,7 +887,7 @@ promise.then(data => { ...@@ -887,7 +887,7 @@ promise.then(data => {
getShowNumber(slotId: number,callback: AsyncCallback<string\>): void getShowNumber(slotId: number,callback: AsyncCallback<string\>): void
获取指定卡槽SIM卡的号码,使用callback方式作为异步方法 获取指定卡槽SIM卡的号码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -915,7 +915,7 @@ sim.getShowNumber(0, (err, data) => { ...@@ -915,7 +915,7 @@ sim.getShowNumber(0, (err, data) => {
getShowNumber(slotId: number): Promise<string\> getShowNumber(slotId: number): Promise<string\>
获取指定卡槽SIM卡的号码,使用Promise方式作为异步方法 获取指定卡槽SIM卡的号码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -950,7 +950,7 @@ promise.then(data => { ...@@ -950,7 +950,7 @@ promise.then(data => {
activateSim(slotId: number, callback: AsyncCallback<void\>): void activateSim(slotId: number, callback: AsyncCallback<void\>): void
激活指定卡槽SIM卡,使用callback方式作为异步方法 激活指定卡槽SIM卡。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -978,7 +978,7 @@ sim.activateSim(0, (err, data) => { ...@@ -978,7 +978,7 @@ sim.activateSim(0, (err, data) => {
activateSim(slotId: number): Promise\<void\> activateSim(slotId: number): Promise\<void\>
激活指定卡槽SIM卡,使用Promise方式作为异步方法 激活指定卡槽SIM卡。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1013,7 +1013,7 @@ promise.then(data => { ...@@ -1013,7 +1013,7 @@ promise.then(data => {
deactivateSim(slotId: number, callback: AsyncCallback<void\>): void deactivateSim(slotId: number, callback: AsyncCallback<void\>): void
禁用指定卡槽SIM卡,使用callback方式作为异步方法 禁用指定卡槽SIM卡。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1041,7 +1041,7 @@ sim.deactivateSim(0, (err, data) => { ...@@ -1041,7 +1041,7 @@ sim.deactivateSim(0, (err, data) => {
deactivateSim(slotId: number): Promise\<void\> deactivateSim(slotId: number): Promise\<void\>
禁用指定卡槽SIM卡,使用Promise方式作为异步方法 禁用指定卡槽SIM卡。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1076,7 +1076,7 @@ promise.then(data => { ...@@ -1076,7 +1076,7 @@ promise.then(data => {
setLockState(slotId: number, options: LockInfo, callback: AsyncCallback<LockStatusResponse\>): void setLockState(slotId: number, options: LockInfo, callback: AsyncCallback<LockStatusResponse\>): void
设置指定卡槽SIM卡的锁状态,使用callback方式作为异步方法 设置指定卡槽SIM卡的锁状态。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1110,7 +1110,7 @@ sim.setLockState(0, lockInfo, (err, data) => { ...@@ -1110,7 +1110,7 @@ sim.setLockState(0, lockInfo, (err, data) => {
setLockState(slotId: number, options: LockInfo): Promise<LockStatusResponse\> setLockState(slotId: number, options: LockInfo): Promise<LockStatusResponse\>
设置指定卡槽SIM卡的锁状态,使用Promise方式作为异步方法 设置指定卡槽SIM卡的锁状态。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1151,7 +1151,7 @@ promise.then(data => { ...@@ -1151,7 +1151,7 @@ promise.then(data => {
getLockState(slotId: number, lockType: LockType, callback: AsyncCallback<LockState\>): void getLockState(slotId: number, lockType: LockType, callback: AsyncCallback<LockState\>): void
获取指定卡槽SIM卡的锁状态,使用callback方式作为异步方法 获取指定卡槽SIM卡的锁状态。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1178,7 +1178,7 @@ sim.getLockState(0, 1, (err, data) => { ...@@ -1178,7 +1178,7 @@ sim.getLockState(0, 1, (err, data) => {
getLockState(slotId: number, lockType: LockType): Promise<LockState\> getLockState(slotId: number, lockType: LockType): Promise<LockState\>
获取指定卡槽SIM卡的锁状态,使用Promise方式作为异步方法 获取指定卡槽SIM卡的锁状态。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1212,7 +1212,7 @@ promise.then(data => { ...@@ -1212,7 +1212,7 @@ promise.then(data => {
alterPin(slotId: number, newPin: string, oldPin: string, callback: AsyncCallback<LockStatusResponse\>): void alterPin(slotId: number, newPin: string, oldPin: string, callback: AsyncCallback<LockStatusResponse\>): void
更改Pin密码,使用callback方式作为异步方法 更改Pin密码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1242,7 +1242,7 @@ sim.alterPin(0, "1234", "0000", (err, data) => { ...@@ -1242,7 +1242,7 @@ sim.alterPin(0, "1234", "0000", (err, data) => {
alterPin(slotId: number, newPin: string, oldPin: string): Promise<LockStatusResponse\>; alterPin(slotId: number, newPin: string, oldPin: string): Promise<LockStatusResponse\>;
更改Pin密码,使用Promise方式作为异步方法 更改Pin密码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1279,7 +1279,7 @@ promise.then(data => { ...@@ -1279,7 +1279,7 @@ promise.then(data => {
alterPin2(slotId: number, newPin2: string, oldPin2: string, callback: AsyncCallback<LockStatusResponse\>): void alterPin2(slotId: number, newPin2: string, oldPin2: string, callback: AsyncCallback<LockStatusResponse\>): void
更改Pin2密码,使用callback方式作为异步方法 更改Pin2密码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1309,7 +1309,7 @@ sim.alterPin2(0, "1234", "0000", (err, data) => { ...@@ -1309,7 +1309,7 @@ sim.alterPin2(0, "1234", "0000", (err, data) => {
alterPin2(slotId: number, newPin2: string, oldPin2: string): Promise<LockStatusResponse\> alterPin2(slotId: number, newPin2: string, oldPin2: string): Promise<LockStatusResponse\>
更改Pin2密码,使用Promise方式作为异步方法 更改Pin2密码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1346,7 +1346,7 @@ promise.then(data => { ...@@ -1346,7 +1346,7 @@ promise.then(data => {
unlockPin(slotId: number,pin: string ,callback: AsyncCallback<LockStatusResponse\>): void unlockPin(slotId: number,pin: string ,callback: AsyncCallback<LockStatusResponse\>): void
解锁指定卡槽SIM卡密码,使用callback方式作为异步方法 解锁指定卡槽SIM卡密码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1376,7 +1376,7 @@ sim.unlockPin(0, pin, (err, data) => { ...@@ -1376,7 +1376,7 @@ sim.unlockPin(0, pin, (err, data) => {
unlockPin(slotId: number,pin: string): Promise&lt;LockStatusResponse\> unlockPin(slotId: number,pin: string): Promise&lt;LockStatusResponse\>
解锁指定卡槽SIM卡密码,使用Promise方式作为异步方法 解锁指定卡槽SIM卡密码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1413,7 +1413,7 @@ promise.then(data => { ...@@ -1413,7 +1413,7 @@ promise.then(data => {
unlockPuk(slotId: number,newPin: string,puk: string ,callback: AsyncCallback<LockStatusResponse\>): void unlockPuk(slotId: number,newPin: string,puk: string ,callback: AsyncCallback<LockStatusResponse\>): void
解锁指定卡槽SIM卡密码的解锁密码,使用callback方式作为异步方法 解锁指定卡槽SIM卡密码的解锁密码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1445,7 +1445,7 @@ sim.unlockPuk(0, newPin, puk, (err, data) => { ...@@ -1445,7 +1445,7 @@ sim.unlockPuk(0, newPin, puk, (err, data) => {
unlockPuk(slotId: number,newPin: string,puk: string): Promise&lt;LockStatusResponse\> unlockPuk(slotId: number,newPin: string,puk: string): Promise&lt;LockStatusResponse\>
解锁指定卡槽SIM卡密码的解锁密码,使用Promise方式作为异步方法 解锁指定卡槽SIM卡密码的解锁密码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1484,7 +1484,7 @@ promise.then(data => { ...@@ -1484,7 +1484,7 @@ promise.then(data => {
unlockPin2(slotId: number,pin2: string ,callback: AsyncCallback<LockStatusResponse\>): void unlockPin2(slotId: number,pin2: string ,callback: AsyncCallback<LockStatusResponse\>): void
解锁指定卡槽SIM卡密码,使用callback方式作为异步方法 解锁指定卡槽SIM卡密码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1514,7 +1514,7 @@ sim.unlockPin2(0, pin2, (err, data) => { ...@@ -1514,7 +1514,7 @@ sim.unlockPin2(0, pin2, (err, data) => {
unlockPin2(slotId: number,pin2: string): Promise&lt;LockStatusResponse\> unlockPin2(slotId: number,pin2: string): Promise&lt;LockStatusResponse\>
解锁指定卡槽SIM卡密码,使用Promise方式作为异步方法 解锁指定卡槽SIM卡密码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1551,7 +1551,7 @@ promise.then(data => { ...@@ -1551,7 +1551,7 @@ promise.then(data => {
unlockPuk2(slotId: number, newPin2: string, puk2: string, callback: AsyncCallback<LockStatusResponse\>): void unlockPuk2(slotId: number, newPin2: string, puk2: string, callback: AsyncCallback<LockStatusResponse\>): void
解锁指定卡槽SIM卡密码的解锁密码,使用callback方式作为异步方法 解锁指定卡槽SIM卡密码的解锁密码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1583,7 +1583,7 @@ sim.unlockPuk2(0, newPin2, puk2, (err, data) => { ...@@ -1583,7 +1583,7 @@ sim.unlockPuk2(0, newPin2, puk2, (err, data) => {
unlockPuk2(slotId: number, newPin2: string, puk2: string): Promise&lt;LockStatusResponse\> unlockPuk2(slotId: number, newPin2: string, puk2: string): Promise&lt;LockStatusResponse\>
解锁指定卡槽SIM卡密码的解锁密码,使用Promise方式作为异步方法 解锁指定卡槽SIM卡密码的解锁密码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1642,7 +1642,7 @@ console.log("Result: "+ sim.getMaxSimCount()) ...@@ -1642,7 +1642,7 @@ console.log("Result: "+ sim.getMaxSimCount())
getSimIccId(slotId: number, callback: AsyncCallback<string\>): void getSimIccId(slotId: number, callback: AsyncCallback<string\>): void
获取指定卡槽SIM卡的ICCID,使用callback方式作为异步方法 获取指定卡槽SIM卡的ICCID。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1670,7 +1670,7 @@ sim.getSimIccId(0, (err, data) => { ...@@ -1670,7 +1670,7 @@ sim.getSimIccId(0, (err, data) => {
getSimIccId(slotId: number): Promise<string\> getSimIccId(slotId: number): Promise<string\>
获取指定卡槽SIM卡的ICCID,使用Promise方式作为异步方法 获取指定卡槽SIM卡的ICCID。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1705,7 +1705,7 @@ promise.then(data => { ...@@ -1705,7 +1705,7 @@ promise.then(data => {
getVoiceMailIdentifier(slotId: number, callback: AsyncCallback<string\>): void getVoiceMailIdentifier(slotId: number, callback: AsyncCallback<string\>): void
获取指定卡槽中SIM卡语音信箱的alpha标识符,使用callback方式作为异步方法 获取指定卡槽中SIM卡语音信箱的alpha标识符。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1733,7 +1733,7 @@ sim.getVoiceMailIdentifier(0, (err, data) => { ...@@ -1733,7 +1733,7 @@ sim.getVoiceMailIdentifier(0, (err, data) => {
getVoiceMailIdentifier(slotId: number): Promise<string\> getVoiceMailIdentifier(slotId: number): Promise<string\>
获取指定卡槽中SIM卡语音信箱的alpha标识符,使用Promise方式作为异步方法 获取指定卡槽中SIM卡语音信箱的alpha标识符。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1768,7 +1768,7 @@ promise.then(data => { ...@@ -1768,7 +1768,7 @@ promise.then(data => {
getVoiceMailNumber(slotId: number, callback: AsyncCallback<string\>): void getVoiceMailNumber(slotId: number, callback: AsyncCallback<string\>): void
获取指定卡槽中SIM卡的语音信箱号,使用callback方式作为异步方法 获取指定卡槽中SIM卡的语音信箱号。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1796,7 +1796,7 @@ sim.getVoiceMailNumber(0, (err, data) => { ...@@ -1796,7 +1796,7 @@ sim.getVoiceMailNumber(0, (err, data) => {
getVoiceMailNumber(slotId: number): Promise<string\> getVoiceMailNumber(slotId: number): Promise<string\>
获取指定卡槽中SIM卡的语音信箱号,使用Promise方式作为异步方法 获取指定卡槽中SIM卡的语音信箱号。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1831,7 +1831,7 @@ promise.then(data => { ...@@ -1831,7 +1831,7 @@ promise.then(data => {
setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string, callback: AsyncCallback<void\>): void setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string, callback: AsyncCallback<void\>): void
设置语音邮件信息,使用callback方式作为异步方法 设置语音邮件信息。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1861,7 +1861,7 @@ sim.setVoiceMailInfo(0, "mail", "xxx@xxx.com" , (err, data) => { ...@@ -1861,7 +1861,7 @@ sim.setVoiceMailInfo(0, "mail", "xxx@xxx.com" , (err, data) => {
setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string): Promise<void\> setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string): Promise<void\>
设置语音邮件信息,使用Promise方式作为异步方法 设置语音邮件信息。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1898,7 +1898,7 @@ promise.then(data => { ...@@ -1898,7 +1898,7 @@ promise.then(data => {
getSimTelephoneNumber(slotId: number, callback: AsyncCallback<string\>): void getSimTelephoneNumber(slotId: number, callback: AsyncCallback<string\>): void
获取指定卡槽中SIM卡的MSISDN,使用callback方式作为异步方法 获取指定卡槽中SIM卡的MSISDN。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1926,7 +1926,7 @@ sim.getSimTelephoneNumber(0, (err, data) => { ...@@ -1926,7 +1926,7 @@ sim.getSimTelephoneNumber(0, (err, data) => {
getSimTelephoneNumber(slotId: number): Promise<string\> getSimTelephoneNumber(slotId: number): Promise<string\>
获取指定卡槽中SIM卡的MSISDN,使用Promise方式作为异步方法 获取指定卡槽中SIM卡的MSISDN。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1961,7 +1961,7 @@ promise.then(data => { ...@@ -1961,7 +1961,7 @@ promise.then(data => {
getSimGid1(slotId: number, callback: AsyncCallback<string\>): void getSimGid1(slotId: number, callback: AsyncCallback<string\>): void
获取指定卡槽中SIM卡的组标识符级别1(GID1),使用callback方式作为异步方法 获取指定卡槽中SIM卡的组标识符级别1(GID1)。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1989,7 +1989,7 @@ sim.getSimGid1(0, (err, data) => { ...@@ -1989,7 +1989,7 @@ sim.getSimGid1(0, (err, data) => {
getSimGid1(slotId: number): Promise<string\> getSimGid1(slotId: number): Promise<string\>
获取指定卡槽中SIM卡的组标识符级别1(GID1),使用Promise方式作为异步方法 获取指定卡槽中SIM卡的组标识符级别1(GID1)。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2024,7 +2024,7 @@ promise.then(data => { ...@@ -2024,7 +2024,7 @@ promise.then(data => {
getIMSI(slotId: number, callback: AsyncCallback<string\>): void getIMSI(slotId: number, callback: AsyncCallback<string\>): void
获取国际移动用户识别码,使用callback方式作为异步方法 获取国际移动用户识别码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2052,7 +2052,7 @@ sim.getIMSI(0, (err, data) => { ...@@ -2052,7 +2052,7 @@ sim.getIMSI(0, (err, data) => {
getIMSI(slotId: number): Promise<string\> getIMSI(slotId: number): Promise<string\>
获取国际移动用户识别码,使用Promise方式作为异步方法 获取国际移动用户识别码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2087,7 +2087,7 @@ promise.then(data => { ...@@ -2087,7 +2087,7 @@ promise.then(data => {
getOperatorConfigs(slotId: number, callback: AsyncCallback<Array<OperatorConfig\>>): void getOperatorConfigs(slotId: number, callback: AsyncCallback<Array<OperatorConfig\>>): void
获取运营商配置,使用callback方式作为异步方法 获取运营商配置。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2115,7 +2115,7 @@ sim.getOperatorConfigs(0, (err, data) => { ...@@ -2115,7 +2115,7 @@ sim.getOperatorConfigs(0, (err, data) => {
getOperatorConfigs(slotId: number): Promise<Array<OperatorConfig\>> getOperatorConfigs(slotId: number): Promise<Array<OperatorConfig\>>
获取运营商配置,使用Promise方式作为异步方法 获取运营商配置。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2150,7 +2150,7 @@ promise.then(data => { ...@@ -2150,7 +2150,7 @@ promise.then(data => {
queryIccDiallingNumbers(slotId: number, type: ContactType, callback: AsyncCallback<Array<DiallingNumbersInfo\>>): void queryIccDiallingNumbers(slotId: number, type: ContactType, callback: AsyncCallback<Array<DiallingNumbersInfo\>>): void
查询SIM卡联系人号码,使用callback方式作为异步方法 查询SIM卡联系人号码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2179,7 +2179,7 @@ sim.queryIccDiallingNumbers(0, 1, (err, data) => { ...@@ -2179,7 +2179,7 @@ sim.queryIccDiallingNumbers(0, 1, (err, data) => {
queryIccDiallingNumbers(slotId: number, type: ContactType): Promise<Array<DiallingNumbersInfo\>> queryIccDiallingNumbers(slotId: number, type: ContactType): Promise<Array<DiallingNumbersInfo\>>
查询SIM卡联系人号码,使用Promise方式作为异步方法 查询SIM卡联系人号码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2215,7 +2215,7 @@ promise.then(data => { ...@@ -2215,7 +2215,7 @@ promise.then(data => {
addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback<void\>): void addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback<void\>): void
添加SIM卡联系人号码,使用callback方式作为异步方法 添加SIM卡联系人号码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2251,7 +2251,7 @@ sim.addIccDiallingNumbers(0, 1, diallingNumbersInof, (err, data) => { ...@@ -2251,7 +2251,7 @@ sim.addIccDiallingNumbers(0, 1, diallingNumbersInof, (err, data) => {
addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise<void\> addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise<void\>
添加SIM卡联系人号码,使用Promise方式作为异步方法 添加SIM卡联系人号码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2294,7 +2294,7 @@ promise.then(data => { ...@@ -2294,7 +2294,7 @@ promise.then(data => {
delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback<void\>): void delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback<void\>): void
删除SIM卡联系人号码,使用callback方式作为异步方法 删除SIM卡联系人号码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2330,7 +2330,7 @@ sim.delIccDiallingNumbers(0, 1, diallingNumbersInof, (err, data) => { ...@@ -2330,7 +2330,7 @@ sim.delIccDiallingNumbers(0, 1, diallingNumbersInof, (err, data) => {
delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise<void\> delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise<void\>
删除SIM卡联系人号码,使用Promise方式作为异步方法 删除SIM卡联系人号码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2373,7 +2373,7 @@ promise.then(data => { ...@@ -2373,7 +2373,7 @@ promise.then(data => {
updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback<void\>): void updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback<void\>): void
更新SIM卡联系人号码,使用callback方式作为异步方法 更新SIM卡联系人号码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2409,7 +2409,7 @@ sim.updateIccDiallingNumbers(0, 1, diallingNumbersInof, (err, data) => { ...@@ -2409,7 +2409,7 @@ sim.updateIccDiallingNumbers(0, 1, diallingNumbersInof, (err, data) => {
updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise<void\> updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise<void\>
更新SIM卡联系人号码,使用Promise方式作为异步方法 更新SIM卡联系人号码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2452,7 +2452,7 @@ promise.then(data => { ...@@ -2452,7 +2452,7 @@ promise.then(data => {
sendEnvelopeCmd(slotId: number, cmd: string, callback: AsyncCallback<void\>): void sendEnvelopeCmd(slotId: number, cmd: string, callback: AsyncCallback<void\>): void
发送信封命令,使用callback方式作为异步方法 发送信封命令。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2481,7 +2481,7 @@ sim.sendEnvelopeCmd(0, "ls", (err, data) => { ...@@ -2481,7 +2481,7 @@ sim.sendEnvelopeCmd(0, "ls", (err, data) => {
sendEnvelopeCmd(slotId: number, cmd: string): Promise<void\> sendEnvelopeCmd(slotId: number, cmd: string): Promise<void\>
发送信封命令,使用Promise方式作为异步方法 发送信封命令。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2517,7 +2517,7 @@ promise.then(data => { ...@@ -2517,7 +2517,7 @@ promise.then(data => {
sendTerminalResponseCmd(slotId: number, cmd: string, callback: AsyncCallback<void\>): void sendTerminalResponseCmd(slotId: number, cmd: string, callback: AsyncCallback<void\>): void
发送终端响应命令,使用callback方式作为异步方法 发送终端响应命令。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2546,7 +2546,7 @@ sim.sendTerminalResponseCmd(0, "ls", (err, data) => { ...@@ -2546,7 +2546,7 @@ sim.sendTerminalResponseCmd(0, "ls", (err, data) => {
sendTerminalResponseCmd(slotId: number, cmd: string): Promise<void\> sendTerminalResponseCmd(slotId: number, cmd: string): Promise<void\>
发送终端响应命令,使用Promise方式作为异步方法 发送终端响应命令。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2582,7 +2582,7 @@ promise.then(data => { ...@@ -2582,7 +2582,7 @@ promise.then(data => {
unlockSimLock(slotId: number, lockInfo: PersoLockInfo, callback: AsyncCallback<LockStatusResponse\>): void unlockSimLock(slotId: number, lockInfo: PersoLockInfo, callback: AsyncCallback<LockStatusResponse\>): void
解锁SIM卡锁,使用callback方式作为异步方法 解锁SIM卡锁。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2615,7 +2615,7 @@ sim.unlockSimLock(0, persoLockInfo, (err, data) => { ...@@ -2615,7 +2615,7 @@ sim.unlockSimLock(0, persoLockInfo, (err, data) => {
unlockSimLock(slotId: number, lockInfo: PersoLockInfo): Promise<LockStatusResponse\> unlockSimLock(slotId: number, lockInfo: PersoLockInfo): Promise<LockStatusResponse\>
解锁SIM卡锁,使用Promise方式作为异步方法 解锁SIM卡锁。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2655,7 +2655,7 @@ promise.then(data => { ...@@ -2655,7 +2655,7 @@ promise.then(data => {
getOpKey(slotId: number, callback: AsyncCallback<string\>): void getOpKey(slotId: number, callback: AsyncCallback<string\>): void
获取指定卡槽中SIM卡的opkey,使用callback方式作为异步方法 获取指定卡槽中SIM卡的opkey。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2681,7 +2681,7 @@ sim.getOpKey(0, (err, data) => { ...@@ -2681,7 +2681,7 @@ sim.getOpKey(0, (err, data) => {
getOpKey(slotId: number): Promise<string\> getOpKey(slotId: number): Promise<string\>
获取指定卡槽中SIM卡的opkey,使用Promise方式作为异步方法 获取指定卡槽中SIM卡的opkey。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2714,7 +2714,7 @@ promise.then(data => { ...@@ -2714,7 +2714,7 @@ promise.then(data => {
getOpName(slotId: number, callback: AsyncCallback<string\>): void getOpName(slotId: number, callback: AsyncCallback<string\>): void
获取指定卡槽中SIM卡的OpName,使用callback方式作为异步方法 获取指定卡槽中SIM卡的OpName。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -2740,7 +2740,7 @@ sim.getOpName(0, (err, data) => { ...@@ -2740,7 +2740,7 @@ sim.getOpName(0, (err, data) => {
getOpName(slotId: number): Promise<string\> getOpName(slotId: number): Promise<string\>
获取指定卡槽中SIM卡的OpName,使用Promise方式作为异步方法 获取指定卡槽中SIM卡的OpName。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
......
...@@ -16,7 +16,7 @@ import sms from '@ohos.telephony.sms'; ...@@ -16,7 +16,7 @@ import sms from '@ohos.telephony.sms';
createMessage\(pdu: Array&lt;number&gt;, specification: string, callback: AsyncCallback<ShortMessage\>\): void createMessage\(pdu: Array&lt;number&gt;, specification: string, callback: AsyncCallback<ShortMessage\>\): void
根据协议数据单元(PDU)和指定的短信协议创建短信实例,使用callback方式作为异步方法 根据协议数据单元(PDU)和指定的短信协议创建短信实例。使用callback异步回调
**系统能力**:SystemCapability.Telephony.SmsMms **系统能力**:SystemCapability.Telephony.SmsMms
...@@ -25,7 +25,7 @@ createMessage\(pdu: Array&lt;number&gt;, specification: string, callback: AsyncC ...@@ -25,7 +25,7 @@ createMessage\(pdu: Array&lt;number&gt;, specification: string, callback: AsyncC
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| ------------- | -------------------------------------------------- | ---- | ------------------------------------------------------------ | | ------------- | -------------------------------------------------- | ---- | ------------------------------------------------------------ |
| pdu | Array&lt;number&gt; | 是 | 协议数据单元,从收到的信息中获取。 | | pdu | Array&lt;number&gt; | 是 | 协议数据单元,从收到的信息中获取。 |
| specification | string | 是 | 短信协议类型。<br/>- 3gpp表示GSM/UMTS/LTE SMS<br/>- 3gpp2表示CDMA SMS | | specification | string | 是 | 短信协议类型。<br/>- 3gpp:表示GSM/UMTS/LTE SMS<br/>- 3gpp2:表示CDMA SMS |
| callback | AsyncCallback&lt;[ShortMessage](#shortmessage)&gt; | 是 | 回调函数。 | | callback | AsyncCallback&lt;[ShortMessage](#shortmessage)&gt; | 是 | 回调函数。 |
**示例:** **示例:**
...@@ -44,7 +44,7 @@ sms.createMessage(pdu, specification, (err, data) => { ...@@ -44,7 +44,7 @@ sms.createMessage(pdu, specification, (err, data) => {
createMessage\(pdu: Array&lt;number&gt;, specification: string\): Promise<ShortMessage\> createMessage\(pdu: Array&lt;number&gt;, specification: string\): Promise<ShortMessage\>
根据协议数据单元(PDU)和指定的短信协议创建短信实例,使用Promise方式作为异步方法 根据协议数据单元(PDU)和指定的短信协议创建短信实例。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.SmsMms **系统能力**:SystemCapability.Telephony.SmsMms
...@@ -53,7 +53,7 @@ createMessage\(pdu: Array&lt;number&gt;, specification: string\): Promise<ShortM ...@@ -53,7 +53,7 @@ createMessage\(pdu: Array&lt;number&gt;, specification: string\): Promise<ShortM
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| ------------- | ------------------- | ---- | ------------------------------------------------------------ | | ------------- | ------------------- | ---- | ------------------------------------------------------------ |
| pdu | Array&lt;number&gt; | 是 | 协议数据单元,从收到的信息中获取。 | | pdu | Array&lt;number&gt; | 是 | 协议数据单元,从收到的信息中获取。 |
| specification | string | 是 | 短信协议类型。<br/>- 3gpp表示GSM/UMTS/LTE SMS<br/>- 3gpp2表示CDMA SMS | | specification | string | 是 | 短信协议类型。<br/>- 3gpp:表示GSM/UMTS/LTE SMS<br/>- 3gpp2:表示CDMA SMS |
**返回值:** **返回值:**
...@@ -71,7 +71,7 @@ let promise = sms.createMessage(pdu, specification); ...@@ -71,7 +71,7 @@ let promise = sms.createMessage(pdu, specification);
promise.then(data => { promise.then(data => {
console.log(`createMessage success, promise: data->${JSON.stringify(data)}`); console.log(`createMessage success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`createMessage fail, promise: err->${JSON.stringify(err)}`); console.error(`createMessage failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -114,7 +114,7 @@ sms.sendMessage(options); ...@@ -114,7 +114,7 @@ sms.sendMessage(options);
getDefaultSmsSlotId\(callback: AsyncCallback&lt;number&gt;\): void getDefaultSmsSlotId\(callback: AsyncCallback&lt;number&gt;\): void
获取发送短信的默认SIM卡槽ID,使用callback方式作为异步方法 获取发送短信的默认SIM卡槽ID。使用callback异步回调
**系统能力**:SystemCapability.Telephony.SmsMms **系统能力**:SystemCapability.Telephony.SmsMms
...@@ -137,7 +137,7 @@ sms.getDefaultSmsSlotId((err, data) => { ...@@ -137,7 +137,7 @@ sms.getDefaultSmsSlotId((err, data) => {
getDefaultSmsSlotId\(\): Promise&lt;number&gt; getDefaultSmsSlotId\(\): Promise&lt;number&gt;
获取发送短信的默认SIM卡槽ID,使用Promise方式作为异步方法 获取发送短信的默认SIM卡槽ID。使用Promise异步回调
**系统能力**:SystemCapability.Telephony.SmsMms **系统能力**:SystemCapability.Telephony.SmsMms
...@@ -154,7 +154,7 @@ let promise = sms.getDefaultSmsSlotId(); ...@@ -154,7 +154,7 @@ let promise = sms.getDefaultSmsSlotId();
promise.then(data => { promise.then(data => {
console.log(`getDefaultSmsSlotId success, promise: data->${JSON.stringify(data)}`); console.log(`getDefaultSmsSlotId success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`getDefaultSmsSlotId fail, promise: err->${JSON.stringify(err)}`); console.error(`getDefaultSmsSlotId failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -162,7 +162,7 @@ promise.then(data => { ...@@ -162,7 +162,7 @@ promise.then(data => {
setDefaultSmsSlotId\(slotId: number,callback: AsyncCallback&lt;void&gt;\): void setDefaultSmsSlotId\(slotId: number,callback: AsyncCallback&lt;void&gt;\): void
设置发送短信的默认SIM卡槽ID,使用callback方式作为异步方法 设置发送短信的默认SIM卡槽ID。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -190,7 +190,7 @@ sms.setDefaultSmsSlotId(0,(err, data) => { ...@@ -190,7 +190,7 @@ sms.setDefaultSmsSlotId(0,(err, data) => {
setDefaultSmsSlotId\(slotId: number\): Promise&lt;void&gt; setDefaultSmsSlotId\(slotId: number\): Promise&lt;void&gt;
设置发送短信的默认SIM卡槽ID,使用Promise方式作为异步方法 设置发送短信的默认SIM卡槽ID。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -217,7 +217,7 @@ let promise = sms.setDefaultSmsSlotId(0); ...@@ -217,7 +217,7 @@ let promise = sms.setDefaultSmsSlotId(0);
promise.then(data => { promise.then(data => {
console.log(`setDefaultSmsSlotId success, promise: data->${JSON.stringify(data)}`); console.log(`setDefaultSmsSlotId success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`setDefaultSmsSlotId fail, promise: err->${JSON.stringify(err)}`); console.error(`setDefaultSmsSlotId failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -225,7 +225,7 @@ promise.then(data => { ...@@ -225,7 +225,7 @@ promise.then(data => {
setSmscAddr\(slotId: number, smscAddr: string, callback: AsyncCallback<void\>\): void setSmscAddr\(slotId: number, smscAddr: string, callback: AsyncCallback<void\>\): void
设置短信服务中心(SMSC)地址,使用callback方式作为异步方法 设置短信服务中心(SMSC)地址。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -256,7 +256,7 @@ sms.setSmscAddr(slotId, smscAddr, (err,data) => { ...@@ -256,7 +256,7 @@ sms.setSmscAddr(slotId, smscAddr, (err,data) => {
setSmscAddr\(slotId: number, smscAddr: string\): Promise\<void\> setSmscAddr\(slotId: number, smscAddr: string\): Promise\<void\>
设置短信服务中心(SMSC)地址,使用Promise方式作为异步方法 设置短信服务中心(SMSC)地址。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -286,7 +286,7 @@ let promise = sms.setSmscAddr(slotId, smscAddr); ...@@ -286,7 +286,7 @@ let promise = sms.setSmscAddr(slotId, smscAddr);
promise.then(data => { promise.then(data => {
console.log(`setSmscAddr success, promise: data->${JSON.stringify(data)}`); console.log(`setSmscAddr success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`setSmscAddr fail, promise: err->${JSON.stringify(err)}`); console.error(`setSmscAddr failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -295,7 +295,7 @@ promise.then(data => { ...@@ -295,7 +295,7 @@ promise.then(data => {
getSmscAddr\(slotId: number, callback: AsyncCallback<string\>\): void getSmscAddr\(slotId: number, callback: AsyncCallback<string\>\): void
获取短信服务中心(SMSC)地址,使用callback方式作为异步方法 获取短信服务中心(SMSC)地址。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -324,7 +324,7 @@ sms.getSmscAddr(slotId, (err, data) => { ...@@ -324,7 +324,7 @@ sms.getSmscAddr(slotId, (err, data) => {
getSmscAddr\(slotId: number\): Promise<string\> getSmscAddr\(slotId: number\): Promise<string\>
获取短信服务中心(SMSC)地址,使用Promise方式作为异步方法 获取短信服务中心(SMSC)地址。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -352,7 +352,7 @@ let promise = sms.getSmscAddr(slotId); ...@@ -352,7 +352,7 @@ let promise = sms.getSmscAddr(slotId);
promise.then(data => { promise.then(data => {
console.log(`getSmscAddr success, promise: data->${JSON.stringify(data)}`); console.log(`getSmscAddr success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`getSmscAddr fail, promise: err->${JSON.stringify(err)}`); console.error(`getSmscAddr failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -368,7 +368,7 @@ hasSmsCapability(): boolean ...@@ -368,7 +368,7 @@ hasSmsCapability(): boolean
| 类型 | 说明 | | 类型 | 说明 |
| ------- | ------------------------------------------------------------ | | ------- | ------------------------------------------------------------ |
| boolean | - true:设备具备短信发送和接收能力<br/>- false:设备不具备短信发送和接收能力 | | boolean | - true:设备具备短信发送和接收能力<br/>- false:设备不具备短信发送和接收能力。 |
```js ```js
let result = sms.hasSmsCapability(); let result = sms.hasSmsCapability();
...@@ -379,7 +379,7 @@ console.log(`hasSmsCapability: ${JSON.stringify(result)}`); ...@@ -379,7 +379,7 @@ console.log(`hasSmsCapability: ${JSON.stringify(result)}`);
splitMessage(content: string, callback: AsyncCallback<Array<string\>>): void splitMessage(content: string, callback: AsyncCallback<Array<string\>>): void
将长短信拆分为多个片段,使用callback方式作为异步方法 将长短信拆分为多个片段。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -408,7 +408,7 @@ sms.splitMessage(content, (err, data) => { ...@@ -408,7 +408,7 @@ sms.splitMessage(content, (err, data) => {
splitMessage(content: string): Promise<Array<string\>> splitMessage(content: string): Promise<Array<string\>>
将长短信拆分为多个片段,使用Promise方式作为异步方法 将长短信拆分为多个片段。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -436,7 +436,7 @@ let promise = sms.splitMessage(content); ...@@ -436,7 +436,7 @@ let promise = sms.splitMessage(content);
promise.then(data => { promise.then(data => {
console.log(`splitMessage success, promise: data->${JSON.stringify(data)}`); console.log(`splitMessage success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`splitMessage fail, promise: err->${JSON.stringify(err)}`); console.error(`splitMessage failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -444,7 +444,7 @@ promise.then(data => { ...@@ -444,7 +444,7 @@ promise.then(data => {
addSimMessage(options: SimMessageOptions, callback: AsyncCallback<void\>): void addSimMessage(options: SimMessageOptions, callback: AsyncCallback<void\>): void
添加SIM卡消息,使用callback方式作为异步方法 添加SIM卡消息。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -478,7 +478,7 @@ sms.addSimMessage(simMessageOptions, (err, data) => { ...@@ -478,7 +478,7 @@ sms.addSimMessage(simMessageOptions, (err, data) => {
addSimMessage(options: SimMessageOptions): Promise<void\> addSimMessage(options: SimMessageOptions): Promise<void\>
添加SIM卡消息,使用Promise方式作为异步方法 添加SIM卡消息。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -511,7 +511,7 @@ let promise = sms.addSimMessage(simMessageOptions); ...@@ -511,7 +511,7 @@ let promise = sms.addSimMessage(simMessageOptions);
promise.then(data => { promise.then(data => {
console.log(`addSimMessage success, promise: data->${JSON.stringify(data)}`); console.log(`addSimMessage success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`addSimMessage fail, promise: err->${JSON.stringify(err)}`); console.error(`addSimMessage failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -519,7 +519,7 @@ promise.then(data => { ...@@ -519,7 +519,7 @@ promise.then(data => {
delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback<void\>): void delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback<void\>): void
删除SIM卡消息,使用callback方式作为异步方法 删除SIM卡消息。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -532,7 +532,7 @@ delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback<void\>): ...@@ -532,7 +532,7 @@ delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback<void\>):
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | ------------------------- | ---- | ----------------------------------------- | | -------- | ------------------------- | ---- | ----------------------------------------- |
| slotId | number | 是 | SIM卡槽ID:<br/>- 0:卡槽1<br/>- 1:卡槽2 | | slotId | number | 是 | SIM卡槽ID:<br/>- 0:卡槽1<br/>- 1:卡槽2 |
| msgIndex | number | 是 | 消息索引 | | msgIndex | number | 是 | 消息索引 |
| callback | AsyncCallback&lt;void&gt; | 是 | 回调函数。 | | callback | AsyncCallback&lt;void&gt; | 是 | 回调函数。 |
**示例:** **示例:**
...@@ -550,7 +550,7 @@ sms.delSimMessage(slotId, msgIndex, (err, data) => { ...@@ -550,7 +550,7 @@ sms.delSimMessage(slotId, msgIndex, (err, data) => {
delSimMessage(slotId: number, msgIndex: number): Promise<void\> delSimMessage(slotId: number, msgIndex: number): Promise<void\>
删除SIM卡信息,使用Promise方式作为异步方法 删除SIM卡信息。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -563,7 +563,7 @@ delSimMessage(slotId: number, msgIndex: number): Promise<void\> ...@@ -563,7 +563,7 @@ delSimMessage(slotId: number, msgIndex: number): Promise<void\>
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | ------ | ---- | ----------------------------------------- | | -------- | ------ | ---- | ----------------------------------------- |
| slotId | number | 是 | SIM卡槽ID:<br/>- 0:卡槽1<br/>- 1:卡槽2 | | slotId | number | 是 | SIM卡槽ID:<br/>- 0:卡槽1<br/>- 1:卡槽2 |
| msgIndex | number | 是 | 消息索引 | | msgIndex | number | 是 | 消息索引 |
**返回值:** **返回值:**
...@@ -580,7 +580,7 @@ let promise = sms.delSimMessage(slotId, msgIndex); ...@@ -580,7 +580,7 @@ let promise = sms.delSimMessage(slotId, msgIndex);
promise.then(data => { promise.then(data => {
console.log(`delSimMessage success, promise: data->${JSON.stringify(data)}`); console.log(`delSimMessage success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`delSimMessage fail, promise: err->${JSON.stringify(err)}`); console.error(`delSimMessage failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -588,7 +588,7 @@ promise.then(data => { ...@@ -588,7 +588,7 @@ promise.then(data => {
updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback<void\>): void updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback<void\>): void
更新SIM卡消息,使用callback方式作为异步方法 更新SIM卡消息。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -623,7 +623,7 @@ sms.updateSimMessage(updateSimMessageOptions, (err, data) => { ...@@ -623,7 +623,7 @@ sms.updateSimMessage(updateSimMessageOptions, (err, data) => {
updateSimMessage(options: UpdateSimMessageOptions): Promise<void\> updateSimMessage(options: UpdateSimMessageOptions): Promise<void\>
更新SIM卡消息,使用Promise方式作为异步方法 更新SIM卡消息。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -657,7 +657,7 @@ let promise = sms.updateSimMessage(updateSimMessageOptions); ...@@ -657,7 +657,7 @@ let promise = sms.updateSimMessage(updateSimMessageOptions);
promise.then(data => { promise.then(data => {
console.log(`updateSimMessage success, promise: data->${JSON.stringify(data)}`); console.log(`updateSimMessage success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`updateSimMessage fail, promise: err->${JSON.stringify(err)}`); console.error(`updateSimMessage failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -665,7 +665,7 @@ promise.then(data => { ...@@ -665,7 +665,7 @@ promise.then(data => {
getAllSimMessages(slotId: number, callback: AsyncCallback<Array<SimShortMessage\>>): void getAllSimMessages(slotId: number, callback: AsyncCallback<Array<SimShortMessage\>>): void
获取所有SIM卡消息,使用callback方式作为异步方法 获取所有SIM卡消息。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -694,7 +694,7 @@ sms.getAllSimMessages(slotId, (err, data) => { ...@@ -694,7 +694,7 @@ sms.getAllSimMessages(slotId, (err, data) => {
getAllSimMessages(slotId: number): Promise<Array<SimShortMessage\>> getAllSimMessages(slotId: number): Promise<Array<SimShortMessage\>>
获取所有SIM卡消息,使用Promise方式作为异步方法 获取所有SIM卡消息。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -722,7 +722,7 @@ let promise = sms.getAllSimMessages(slotId); ...@@ -722,7 +722,7 @@ let promise = sms.getAllSimMessages(slotId);
promise.then(data => { promise.then(data => {
console.log(`getAllSimMessages success, promise: data->${JSON.stringify(data)}`); console.log(`getAllSimMessages success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`getAllSimMessages fail, promise: err->${JSON.stringify(err)}`); console.error(`getAllSimMessages failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -730,7 +730,7 @@ promise.then(data => { ...@@ -730,7 +730,7 @@ promise.then(data => {
setCBConfig(options: CBConfigOptions, callback: AsyncCallback<void\>): void setCBConfig(options: CBConfigOptions, callback: AsyncCallback<void\>): void
设置小区广播配置,使用callback方式作为异步方法 设置小区广播配置。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -764,7 +764,7 @@ sms.setCBConfig(cbConfigOptions, (err, data) => { ...@@ -764,7 +764,7 @@ sms.setCBConfig(cbConfigOptions, (err, data) => {
setCBConfig(options: CBConfigOptions): Promise<void\> setCBConfig(options: CBConfigOptions): Promise<void\>
设置小区广播配置,使用Promise方式作为异步方法 设置小区广播配置。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -797,7 +797,7 @@ let promise = sms.setCBConfig(cbConfigOptions); ...@@ -797,7 +797,7 @@ let promise = sms.setCBConfig(cbConfigOptions);
promise.then(data => promise.then(data =>
console.log(`setCBConfig success, promise: data->${JSON.stringify(data)}`); console.log(`setCBConfig success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`setCBConfig fail, promise: err->${JSON.stringify(err)}`); console.error(`setCBConfig failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -805,7 +805,7 @@ promise.then(data => ...@@ -805,7 +805,7 @@ promise.then(data =>
getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean, callback: AsyncCallback<SmsSegmentsInfo\>): void getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean, callback: AsyncCallback<SmsSegmentsInfo\>): void
获取短信段信息,使用callback方式作为异步方法 获取短信段信息。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -816,9 +816,9 @@ getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean, callback ...@@ -816,9 +816,9 @@ getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean, callback
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| --------- | ------------------------------------------------------------ | ---- | ----------------------------------------- | | --------- | ------------------------------------------------------------ | ---- | ----------------------------------------- |
| slotId | number | 是 | SIM卡槽ID:<br/>- 0:卡槽1<br/>- 1:卡槽2 | | slotId | number | 是 | SIM卡槽ID:<br/>- 0:卡槽1<br/>- 1:卡槽2 |
| message | string | 是 | 消息 | | message | string | 是 | 消息 |
| force7bit | boolean | 是 | 是否使用7bit编码 | | force7bit | boolean | 是 | 是否使用7 bit编码。 |
| callback | AsyncCallback&lt;[SmsSegmentsInfo](#smssegmentsinfo8)&gt; | 是 | 回调函数 | | callback | AsyncCallback&lt;[SmsSegmentsInfo](#smssegmentsinfo8)&gt; | 是 | 回调函数 |
**示例:** **示例:**
...@@ -834,7 +834,7 @@ sms.getSmsSegmentsInfo(slotId, "message", false, (err, data) => { ...@@ -834,7 +834,7 @@ sms.getSmsSegmentsInfo(slotId, "message", false, (err, data) => {
getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean): Promise<SmsSegmentsInfo\> getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean): Promise<SmsSegmentsInfo\>
获取短信段信息,使用Promise方式作为异步方法 获取短信段信息。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -845,8 +845,8 @@ getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean): Promise ...@@ -845,8 +845,8 @@ getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean): Promise
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| --------- | ------- | ---- | ----------------------------------------- | | --------- | ------- | ---- | ----------------------------------------- |
| slotId | number | 是 | SIM卡槽ID:<br/>- 0:卡槽1<br/>- 1:卡槽2 | | slotId | number | 是 | SIM卡槽ID:<br/>- 0:卡槽1<br/>- 1:卡槽2 |
| message | string | 是 | 消息 | | message | string | 是 | 消息 |
| force7bit | boolean | 是 | 是否使用7bit编码 | | force7bit | boolean | 是 | 是否使用7 bit编码。 |
**返回值:** **返回值:**
...@@ -862,7 +862,7 @@ let promise = sms.getSmsSegmentsInfo(slotId, "message", false); ...@@ -862,7 +862,7 @@ let promise = sms.getSmsSegmentsInfo(slotId, "message", false);
promise.then(data => promise.then(data =>
console.log(`getSmsSegmentsInfo success, promise: data->${JSON.stringify(data)}`); console.log(`getSmsSegmentsInfo success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`getSmsSegmentsInfo fail, promise: err->${JSON.stringify(err)}`); console.error(`getSmsSegmentsInfo failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -870,7 +870,7 @@ promise.then(data => ...@@ -870,7 +870,7 @@ promise.then(data =>
isImsSmsSupported(callback: AsyncCallback<boolean\>): void isImsSmsSupported(callback: AsyncCallback<boolean\>): void
如果IMS已注册并且在IMS上支持SMS,则支持通过IMS发送SMS,使用callback方式作为异步方法 如果IMS已注册并且在IMS上支持SMS,则支持通过IMS发送SMS。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -895,7 +895,7 @@ sms.isImsSmsSupported((err, data) => { ...@@ -895,7 +895,7 @@ sms.isImsSmsSupported((err, data) => {
isImsSmsSupported(): Promise<boolean\> isImsSmsSupported(): Promise<boolean\>
如果IMS已注册并且在IMS上支持SMS,则支持通过IMS发送SMS,使用Promise方式作为异步方法 如果IMS已注册并且在IMS上支持SMS,则支持通过IMS发送SMS。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -914,7 +914,7 @@ let promise = sms.isImsSmsSupported(); ...@@ -914,7 +914,7 @@ let promise = sms.isImsSmsSupported();
promise.then(data => { promise.then(data => {
console.log(`isImsSmsSupported success, promise: data->${JSON.stringify(data)}`); console.log(`isImsSmsSupported success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`isImsSmsSupported fail, promise: err->${JSON.stringify(err)}`); console.error(`isImsSmsSupported failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -922,7 +922,7 @@ promise.then(data => { ...@@ -922,7 +922,7 @@ promise.then(data => {
getImsShortMessageFormat(callback: AsyncCallback<string\>): void getImsShortMessageFormat(callback: AsyncCallback<string\>): void
获取IMS上支持的SMS格式,使用callback方式作为异步方法 获取IMS上支持的SMS格式。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -947,7 +947,7 @@ sms.getImsShortMessageFormat((err, data) => { ...@@ -947,7 +947,7 @@ sms.getImsShortMessageFormat((err, data) => {
getImsShortMessageFormat(): Promise<string\> getImsShortMessageFormat(): Promise<string\>
获取IMS上支持的SMS格式,使用Promise方式作为异步方法 获取IMS上支持的SMS格式。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -966,7 +966,7 @@ let promise = sms.getImsShortMessageFormat(); ...@@ -966,7 +966,7 @@ let promise = sms.getImsShortMessageFormat();
promise.then(data => { promise.then(data => {
console.log(`getImsShortMessageFormat success, promise: data->${JSON.stringify(data)}`); console.log(`getImsShortMessageFormat success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`getImsShortMessageFormat fail, promise: err->${JSON.stringify(err)}`); console.error(`getImsShortMessageFormat failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -974,7 +974,7 @@ promise.then(data => { ...@@ -974,7 +974,7 @@ promise.then(data => {
decodeMms(mmsFilePathName: string | Array<number\>, callback: AsyncCallback<MmsInformation\>): void decodeMms(mmsFilePathName: string | Array<number\>, callback: AsyncCallback<MmsInformation\>): void
彩信解码,使用callback方式作为异步方法 彩信解码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -984,7 +984,7 @@ decodeMms(mmsFilePathName: string | Array<number\>, callback: AsyncCallback<MmsI ...@@ -984,7 +984,7 @@ decodeMms(mmsFilePathName: string | Array<number\>, callback: AsyncCallback<MmsI
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| --------------- | ------------------------------------------------------- | ---- | -------------- | | --------------- | ------------------------------------------------------- | ---- | -------------- |
| mmsFilePathName | string \|Array<number\> | 是 | 彩信文件路径名 | | mmsFilePathName | string \|Array<number\> | 是 | 彩信文件路径名 |
| callback | AsyncCallback&lt;[MmsInformation](#mmsinformation8)&gt; | 是 | 回调函数。 | | callback | AsyncCallback&lt;[MmsInformation](#mmsinformation8)&gt; | 是 | 回调函数。 |
**示例:** **示例:**
...@@ -1001,7 +1001,7 @@ sms.decodeMms(mmsFilePathName, (err, data) => { ...@@ -1001,7 +1001,7 @@ sms.decodeMms(mmsFilePathName, (err, data) => {
decodeMms(mmsFilePathName: string | Array<number\>): Promise<MmsInformation\> decodeMms(mmsFilePathName: string | Array<number\>): Promise<MmsInformation\>
彩信解码,使用Promise方式作为异步方法 彩信解码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1027,7 +1027,7 @@ let promise = sms.getSmscAddr(mmsFilePathName); ...@@ -1027,7 +1027,7 @@ let promise = sms.getSmscAddr(mmsFilePathName);
promise.then(data => { promise.then(data => {
console.log(`decodeMms success, promise: data->${JSON.stringify(data)}`); console.log(`decodeMms success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`decodeMms fail, promise: err->${JSON.stringify(err)}`); console.error(`decodeMms failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -1035,7 +1035,7 @@ promise.then(data => { ...@@ -1035,7 +1035,7 @@ promise.then(data => {
encodeMms(mms: MmsInformation, callback: AsyncCallback<Array<number\>>): void encodeMms(mms: MmsInformation, callback: AsyncCallback<Array<number\>>): void
彩信编码,使用callback方式作为异步方法 彩信编码。使用callback异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1070,7 +1070,7 @@ sms.encodeMms(mmsInformation, (err, data) => { ...@@ -1070,7 +1070,7 @@ sms.encodeMms(mmsInformation, (err, data) => {
encodeMms(mms: MmsInformation): Promise<Array<number\>> encodeMms(mms: MmsInformation): Promise<Array<number\>>
彩信编码,使用Promise方式作为异步方法 彩信编码。使用Promise异步回调
此接口为系统接口。 此接口为系统接口。
...@@ -1104,7 +1104,7 @@ let promise = sms.encodeMms(mmsInformation); ...@@ -1104,7 +1104,7 @@ let promise = sms.encodeMms(mmsInformation);
promise.then(data => { promise.then(data => {
console.log(`encodeMms success, promise: data->${JSON.stringify(data)}`); console.log(`encodeMms success, promise: data->${JSON.stringify(data)}`);
}).catch(err => { }).catch(err => {
console.error(`encodeMms fail, promise: err->${JSON.stringify(err)}`); console.error(`encodeMms failed, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
...@@ -1176,7 +1176,7 @@ promise.then(data => { ...@@ -1176,7 +1176,7 @@ promise.then(data => {
## IDeliveryShortMessageCallback ## IDeliveryShortMessageCallback
回调实例返回短信送达报告。 回调实例返回短信送达报告。
**系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.SmsMms。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.SmsMms。
...@@ -1208,8 +1208,8 @@ promise.then(data => { ...@@ -1208,8 +1208,8 @@ promise.then(data => {
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| ----------- | ------------------------------------------------------------ | ---- | --------- | | ----------- | ------------------------------------------------------------ | ---- | --------- |
| messageType | [MessageType](#messagetype8) | 是 | 消息类型 | | messageType | [MessageType](#messagetype8) | 是 | 消息类型 |
| mmsType | [MmsSendReq](#mmssendreq8) \|[MmsSendConf](#mmssendconf8) \|[MmsNotificationInd](#mmsnotificationind8) \|[MmsRespInd](#mmsrespind8) \|[MmsRetrieveConf](#mmsretrieveconf8)\|[MmsAcknowledgeInd](#mmsacknowledgeind8)\|[MmsDeliveryInd](#mmsdeliveryind8)\|[MmsReadOrigInd](#mmsreadorigind8)\|[MmsReadRecInd](#mmsreadrecind8) | 是 | pdu头类型 | | mmsType | [MmsSendReq](#mmssendreq8) \|[MmsSendConf](#mmssendconf8) \|[MmsNotificationInd](#mmsnotificationind8) \|[MmsRespInd](#mmsrespind8) \|[MmsRetrieveConf](#mmsretrieveconf8)\|[MmsAcknowledgeInd](#mmsacknowledgeind8)\|[MmsDeliveryInd](#mmsdeliveryind8)\|[MmsReadOrigInd](#mmsreadorigind8)\|[MmsReadRecInd](#mmsreadrecind8) | 是 | PDU头类型 |
| attachment | Array<[MmsAttachment](#mmsattachment8)\> | 否 | 附件 | | attachment | Array<[MmsAttachment](#mmsattachment8)\> | 否 | 附件 |
## MmsSendReq<sup>8+</sup> ## MmsSendReq<sup>8+</sup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册