1# Telephony Subsystem Changelog
2
3
4
5## cl.telephony.1 Input Parameter Change of System APIs of the SMS Module
6
7Input parameters are changed for some released system APIs of the SMS module of the telephony subsystem, which do not comply with the API specifications of OpenHarmony. The following changes are made in API version 9 and later:
8
9The **slotId** parameter is added to the **isImsSmsSupported** API, indicating the slot ID.
10
11**Change Impacts**
12
13Input parameters of JavaScript APIs need to be adapted for applications developed based on earlier versions. Otherwise, relevant functions will be affected.
14
15**Key API/Component Changes**
16
17- Involved APIs
18
19  isImsSmsSupported(callback: AsyncCallback<boolean>): void;
20  isImsSmsSupported(): Promise<boolean>;
21
22- Before change:
23
24```js
25function isImsSmsSupported(callback: AsyncCallback<boolean>): void;
26function isImsSmsSupported(): Promise<boolean>;
27```
28
29- After change:
30
31```js
32function isImsSmsSupported(slotId: number, callback: AsyncCallback<boolean>): void;
33function isImsSmsSupported(slotId: number): Promise<boolean>;
34```
35
36**Adaptation Guide**
37
38Add an input parameter. The sample code is as follows:
39
40Callback mode
41
42```js
43let slotId = 0;
44sms.isImsSmsSupported(slotId, (err, data) => {
45      console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
46});
47```
48
49Promise mode
50
51```js
52let slotId = 0;
53let promise = sms.isImsSmsSupported(slotId);
54promise.then(data => {
55    console.log(`isImsSmsSupported success, promise: data->${JSON.stringify(data)}`);
56}).catch(err => {
57    console.error(`isImsSmsSupported failed, promise: err->${JSON.stringify(err)}`);
58});
59```