Change Type Old Version New Version d.ts File
Added NA Class name: sensor;
Method or attribute name: function on(type: SensorId.COLOR, callback: Callback<ColorResponse>, options?: Options): void;
@ohos.sensor.d.ts
Added NA Class name: sensor;
Method or attribute name: function on(type: SensorId.SAR, callback: Callback<SarResponse>, options?: Options): void;
@ohos.sensor.d.ts
Added NA Class name: sensor;
Method or attribute name: function off(type: SensorId.COLOR, callback?: Callback<ColorResponse>): void;
@ohos.sensor.d.ts
Added NA Class name: sensor;
Method or attribute name: function off(type: SensorId.SAR, callback?: Callback<SarResponse>): void;
@ohos.sensor.d.ts
Added NA Class name: SensorId;
Method or attribute name: COLOR = 14
@ohos.sensor.d.ts
Added NA Class name: SensorId;
Method or attribute name: SAR = 15
@ohos.sensor.d.ts
Added NA Class name: ColorResponse;
Method or attribute name: lightIntensity: number;
@ohos.sensor.d.ts
Added NA Class name: ColorResponse;
Method or attribute name: colorTemperature: number;
@ohos.sensor.d.ts
Added NA Class name: SarResponse;
Method or attribute name: absorptionRatio: number;
@ohos.sensor.d.ts
Added NA Class name: VibrateFromFile;
Method or attribute name: type: 'file';
@ohos.vibrator.d.ts
Added NA Class name: VibrateFromFile;
Method or attribute name: hapticFd: HapticFileDescriptor;
@ohos.vibrator.d.ts
Added NA Class name: HapticFileDescriptor;
Method or attribute name: fd: number;
@ohos.vibrator.d.ts
Added NA Class name: HapticFileDescriptor;
Method or attribute name: offset?: number;
@ohos.vibrator.d.ts
Added NA Class name: HapticFileDescriptor;
Method or attribute name: length?: number;
@ohos.vibrator.d.ts
Deprecated version changed Class name: vibrator;
Method or attribute name: function vibrate(duration: number): Promise<void>;
Old version information:
Class name: vibrator;
Method or attribute name: function vibrate(duration: number): Promise<void>;
New version information: 9
Substitute API: vibrator#startVibration
@ohos.vibrator.d.ts
Deprecated version changed Class name: vibrator;
Method or attribute name: function vibrate(effectId: EffectId, callback?: AsyncCallback<void>): void;
Old version information:
Class name: vibrator;
Method or attribute name: function vibrate(effectId: EffectId, callback?: AsyncCallback<void>): void;
New version information: 9
Substitute API: vibrator#startVibration
@ohos.vibrator.d.ts
Deprecated version changed Class name: vibrator;
Method or attribute name: function stop(stopMode: VibratorStopMode, callback?: AsyncCallback<void>): void;
Old version information:
Class name: vibrator;
Method or attribute name: function stop(stopMode: VibratorStopMode, callback?: AsyncCallback<void>): void;
New version information: 9
Substitute API: vibrator#stopVibration
@ohos.vibrator.d.ts
Error code changed Class name: vibrator;
Method or attribute name: function startVibration(effect: VibrateEffect, attribute: VibrateAttribute, callback: AsyncCallback<void>): void;
Old version information: 201,401,14600101
Class name: vibrator;
Method or attribute name: function startVibration(effect: VibrateEffect, attribute: VibrateAttribute, callback: AsyncCallback<void>): void;
New version information: 201,401,801,14600101
@ohos.vibrator.d.ts
Error code changed Class name: vibrator;
Method or attribute name: function startVibration(effect: VibrateEffect, attribute: VibrateAttribute): Promise<void>;
Old version information: 201,401,14600101
Class name: vibrator;
Method or attribute name: function startVibration(effect: VibrateEffect, attribute: VibrateAttribute): Promise<void>;
New version information: 201,401,801,14600101
@ohos.vibrator.d.ts
Permission changed Class name: vibrator;
Method or attribute name: function vibrate(duration: number): Promise<void>;
Old version information:
Class name: vibrator;
Method or attribute name: function vibrate(duration: number): Promise<void>;
New version information: ohos.permission.VIBRATE
@ohos.vibrator.d.ts
Permission changed Class name: vibrator;
Method or attribute name: function vibrate(effectId: EffectId, callback?: AsyncCallback<void>): void;
Old version information:
Class name: vibrator;
Method or attribute name: function vibrate(effectId: EffectId, callback?: AsyncCallback<void>): void;
New version information: ohos.permission.VIBRATE
@ohos.vibrator.d.ts
Permission changed Class name: vibrator;
Method or attribute name: function stop(stopMode: VibratorStopMode, callback?: AsyncCallback<void>): void;
Old version information:
Class name: vibrator;
Method or attribute name: function stop(stopMode: VibratorStopMode, callback?: AsyncCallback<void>): void;
New version information: ohos.permission.VIBRATE
@ohos.vibrator.d.ts
Permission changed Class name: VibrateOptions;
Method or attribute name: mode?: 'long' | 'short';
Old version information:
Class name: VibrateOptions;
Method or attribute name: mode?: 'long' | 'short';
New version information: ohos.permission.VIBRATE
@system.vibrator.d.ts
Permission changed Class name: VibrateOptions;
Method or attribute name: success: () => void;
Old version information:
Class name: VibrateOptions;
Method or attribute name: success: () => void;
New version information: ohos.permission.VIBRATE
@system.vibrator.d.ts
Permission changed Class name: VibrateOptions;
Method or attribute name: fail?: (data: string, code: number) => void;
Old version information:
Class name: VibrateOptions;
Method or attribute name: fail?: (data: string, code: number) => void;
New version information: ohos.permission.VIBRATE
@system.vibrator.d.ts
Permission changed Class name: VibrateOptions;
Method or attribute name: complete?: () => void;
Old version information:
Class name: VibrateOptions;
Method or attribute name: complete?: () => void;
New version information: ohos.permission.VIBRATE
@system.vibrator.d.ts
Type changed Class name: vibrator;
Method or attribute name: type VibrateEffect = VibrateTime | VibratePreset | VibrateFromFile;
Old version information:
Class name: vibrator;
Method or attribute name: type VibrateEffect = VibrateTime | VibratePreset | VibrateFromFile;
New version information: VibrateTime | VibratePreset | VibrateFromFile
@ohos.vibrator.d.ts
Function changed Class name: vibrator;
Method or attribute name: type VibrateEffect = VibrateTime | VibratePreset;
Class name: vibrator;
Method or attribute name: type VibrateEffect = VibrateTime | VibratePreset | VibrateFromFile;
@ohos.vibrator.d.ts