Change Type Old Version New Version d.ts File
Added NA Class name: systemParameterEnhance;
Method or attribute name: function getSync(key: string, def?: string): string;
@ohos.systemParameterEnhance.d.ts
Added NA Class name: systemParameterEnhance;
Method or attribute name: function get(key: string, callback: AsyncCallback<string>): void;
@ohos.systemParameterEnhance.d.ts
Added NA Class name: systemParameterEnhance;
Method or attribute name: function get(key: string, def: string, callback: AsyncCallback<string>): void;
@ohos.systemParameterEnhance.d.ts
Added NA Class name: systemParameterEnhance;
Method or attribute name: function get(key: string, def?: string): Promise<string>;
@ohos.systemParameterEnhance.d.ts
Added NA Class name: systemParameterEnhance;
Method or attribute name: function setSync(key: string, value: string): void;
@ohos.systemParameterEnhance.d.ts
Added NA Class name: systemParameterEnhance;
Method or attribute name: function set(key: string, value: string, callback: AsyncCallback<void>): void;
@ohos.systemParameterEnhance.d.ts
Added NA Class name: systemParameterEnhance;
Method or attribute name: function set(key: string, value: string): Promise<void>;
@ohos.systemParameterEnhance.d.ts
Deprecated version changed Class name: Device;
Method or attribute name: static getInfo(options?: GetDeviceOptions): void;
Old version:
Class name: Device;
Method or attribute name: static getInfo(options?: GetDeviceOptions): void;
New version: 6
Substitute API:
@system.device.d.ts