操作 旧版本 新版本 d.ts文件
新增 NA 类名:systemParameterEnhance;
方法or属性:function getSync(key: string, def?: string): string;
@ohos.systemParameterEnhance.d.ts
新增 NA 类名:systemParameterEnhance;
方法or属性:function get(key: string, callback: AsyncCallback<string>): void;
@ohos.systemParameterEnhance.d.ts
新增 NA 类名:systemParameterEnhance;
方法or属性:function get(key: string, def: string, callback: AsyncCallback<string>): void;
@ohos.systemParameterEnhance.d.ts
新增 NA 类名:systemParameterEnhance;
方法or属性:function get(key: string, def?: string): Promise<string>;
@ohos.systemParameterEnhance.d.ts
新增 NA 类名:systemParameterEnhance;
方法or属性:function setSync(key: string, value: string): void;
@ohos.systemParameterEnhance.d.ts
新增 NA 类名:systemParameterEnhance;
方法or属性:function set(key: string, value: string, callback: AsyncCallback<void>): void;
@ohos.systemParameterEnhance.d.ts
新增 NA 类名:systemParameterEnhance;
方法or属性:function set(key: string, value: string): Promise<void>;
@ohos.systemParameterEnhance.d.ts
废弃版本有变化 类名:Device;
方法or属性:static getInfo(options?: GetDeviceOptions): void;
旧版本信息:
类名:Device;
方法or属性:static getInfo(options?: GetDeviceOptions): void;
新版本信息:6
代替接口:
@system.device.d.ts