1e41f4b71Sopenharmony_ci# Telephony Subsystem Changelog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci## cl.telephony.radio.1 isNrSupported API Change
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ciNR is a proper noun and must be capitalized.
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ciYou need to adapt your application.
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**Change Impact**
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ciThe JS API needs to be adapted for applications developed based on earlier versions. Otherwise, relevant functions will be affected.
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci
20e41f4b71Sopenharmony_ci**Key API/Component Changes**
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci- Involved APIs:
23e41f4b71Sopenharmony_ci
24e41f4b71Sopenharmony_ci  isNrSupported(): boolean;
25e41f4b71Sopenharmony_ci  isNrSupported(slotId: number): boolean;
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci- Before change:
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci```js
30e41f4b71Sopenharmony_cifunction isNrSupported(): boolean;
31e41f4b71Sopenharmony_cifunction isNrSupported(slotId: number): boolean;
32e41f4b71Sopenharmony_ci```
33e41f4b71Sopenharmony_ci
34e41f4b71Sopenharmony_ci- After change:
35e41f4b71Sopenharmony_ci
36e41f4b71Sopenharmony_ci```js
37e41f4b71Sopenharmony_cifunction isNRSupported(): boolean;
38e41f4b71Sopenharmony_cifunction isNRSupported(slotId: number): boolean;
39e41f4b71Sopenharmony_ci```
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ci
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ci**Adaptation Guide**
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ciUse the new API. The sample code is as follows:
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ci```js
48e41f4b71Sopenharmony_cilet result = radio.isNrSupported();
49e41f4b71Sopenharmony_ciconsole.log("Result: "+ result);
50e41f4b71Sopenharmony_ci```
51e41f4b71Sopenharmony_ci
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ci```js
54e41f4b71Sopenharmony_cilet slotId = 0;
55e41f4b71Sopenharmony_cilet result = radio.isNRSupported(slotId);
56e41f4b71Sopenharmony_ciconsole.log("Result: "+ result);
57e41f4b71Sopenharmony_ci```
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ci
60e41f4b71Sopenharmony_ci## cl.telephony.call.2 dial API Change
61e41f4b71Sopenharmony_ci
62e41f4b71Sopenharmony_ciChanged the `dial` API to the `dialCall` API in the call module of the telephony subsystem since API version 9.
63e41f4b71Sopenharmony_ci
64e41f4b71Sopenharmony_ciYou need to adapt your application.
65e41f4b71Sopenharmony_ci
66e41f4b71Sopenharmony_ci
67e41f4b71Sopenharmony_ci**Change Impact**
68e41f4b71Sopenharmony_ci
69e41f4b71Sopenharmony_ciThe `dial` API is deprecated and cannot be used anymore. Use the `dialCall` API instead. Otherwise, relevant functions will be affected.
70e41f4b71Sopenharmony_ci
71e41f4b71Sopenharmony_ci
72e41f4b71Sopenharmony_ci**Key API/Component Changes**
73e41f4b71Sopenharmony_ci
74e41f4b71Sopenharmony_ci- Involved APIs:
75e41f4b71Sopenharmony_ci
76e41f4b71Sopenharmony_ci  dial(phoneNumber: string, callback: AsyncCallback<boolean>): void;
77e41f4b71Sopenharmony_ci  dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback<boolean>): void;
78e41f4b71Sopenharmony_ci  dial(phoneNumber: string, options?: DialOptions): Promise<boolean>;
79e41f4b71Sopenharmony_ci
80e41f4b71Sopenharmony_ci- Before change:
81e41f4b71Sopenharmony_ci
82e41f4b71Sopenharmony_ci```js
83e41f4b71Sopenharmony_cifunction dial(phoneNumber: string, callback: AsyncCallback<boolean>): void;
84e41f4b71Sopenharmony_cifunction dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback<boolean>): void;
85e41f4b71Sopenharmony_cifunction dial(phoneNumber: string, options?: DialOptions): Promise<boolean>;
86e41f4b71Sopenharmony_ci```
87e41f4b71Sopenharmony_ci
88e41f4b71Sopenharmony_ci- After change:
89e41f4b71Sopenharmony_ci
90e41f4b71Sopenharmony_ci```js
91e41f4b71Sopenharmony_cifunction dialCall(phoneNumber: string, callback: AsyncCallback<void>): void;
92e41f4b71Sopenharmony_cifunction dialCall(phoneNumber: string, options: DialCallOptions, callback: AsyncCallback<void>): void;
93e41f4b71Sopenharmony_cifunction dialCall(phoneNumber: string, options?: DialCallOptions): Promise<void>;
94e41f4b71Sopenharmony_ci```
95e41f4b71Sopenharmony_ci
96e41f4b71Sopenharmony_ci
97e41f4b71Sopenharmony_ci
98e41f4b71Sopenharmony_ci**Adaptation Guide**
99e41f4b71Sopenharmony_ci
100e41f4b71Sopenharmony_ciThe `dial` API is deprecated and cannot be used anymore. Use the `dialCall` API instead.
101e41f4b71Sopenharmony_ciUse the new API. The sample code is as follows:
102e41f4b71Sopenharmony_ci
103e41f4b71Sopenharmony_ci```js
104e41f4b71Sopenharmony_cicall.dialCall("138xxxxxxxx", (err, data) => {
105e41f4b71Sopenharmony_ci    console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
106e41f4b71Sopenharmony_ci});
107e41f4b71Sopenharmony_ci```
108e41f4b71Sopenharmony_ci
109e41f4b71Sopenharmony_ci
110e41f4b71Sopenharmony_ci```js
111e41f4b71Sopenharmony_cicall.dialCall("138xxxxxxxx", {
112e41f4b71Sopenharmony_ci    accountId: 0,
113e41f4b71Sopenharmony_ci    videoState: 0,
114e41f4b71Sopenharmony_ci    dialScene: 0,
115e41f4b71Sopenharmony_ci    dialType: 0,
116e41f4b71Sopenharmony_ci}, (err, data) => {
117e41f4b71Sopenharmony_ci    console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
118e41f4b71Sopenharmony_ci});
119e41f4b71Sopenharmony_ci```
120e41f4b71Sopenharmony_ci
121e41f4b71Sopenharmony_ci
122e41f4b71Sopenharmony_ci```js
123e41f4b71Sopenharmony_citry {
124e41f4b71Sopenharmony_ci    call.dialCall('138xxxxxxxx');
125e41f4b71Sopenharmony_ci    console.log(`dialCall success, promise: data->${JSON.stringify(data)}`);
126e41f4b71Sopenharmony_ci} catch (error) {
127e41f4b71Sopenharmony_ci    console.log(`dialCall fail, promise: err->${JSON.stringify(error)}`);
128e41f4b71Sopenharmony_ci}
129e41f4b71Sopenharmony_ci```
130