Change Type Old Version New Version d.ts File
Custom type change Class name: vibrator;
API declaration: type VibrateEffect = VibrateTime | VibratePreset | VibrateFromFile | VibrateFromPattern;
DIfferences: VibrateTime | VibratePreset | VibrateFromFile | VibrateFromPattern
Class name: vibrator;
API declaration: type VibrateEffect = VibrateTime | VibratePreset | VibrateFromFile;
DIfferences: VibrateTime | VibratePreset | VibrateFromFile
api/@ohos.vibrator.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.ACCELEROMETER, sensorInfoParam?: SensorInfoParam, callback?: Callback<AccelerometerResponse>): void;
DIfferences: function off(type: SensorId.ACCELEROMETER, sensorInfoParam?: SensorInfoParam, callback?: Callback<AccelerometerResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.ACCELEROMETER_UNCALIBRATED, sensorInfoParam?: SensorInfoParam, callback?: Callback<AccelerometerUncalibratedResponse>): void;
DIfferences: function off(type: SensorId.ACCELEROMETER_UNCALIBRATED, sensorInfoParam?: SensorInfoParam, callback?: Callback<AccelerometerUncalibratedResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.AMBIENT_LIGHT, sensorInfoParam?: SensorInfoParam, callback?: Callback<LightResponse>): void;
DIfferences: function off(type: SensorId.AMBIENT_LIGHT, sensorInfoParam?: SensorInfoParam, callback?: Callback<LightResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.AMBIENT_TEMPERATURE, sensorInfoParam?: SensorInfoParam, callback?: Callback<AmbientTemperatureResponse>): void;
DIfferences: function off(type: SensorId.AMBIENT_TEMPERATURE, sensorInfoParam?: SensorInfoParam, callback?: Callback<AmbientTemperatureResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.BAROMETER, sensorInfoParam?: SensorInfoParam, callback?: Callback<BarometerResponse>): void;
DIfferences: function off(type: SensorId.BAROMETER, sensorInfoParam?: SensorInfoParam, callback?: Callback<BarometerResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.GRAVITY, sensorInfoParam?: SensorInfoParam, callback?: Callback<GravityResponse>): void;
DIfferences: function off(type: SensorId.GRAVITY, sensorInfoParam?: SensorInfoParam, callback?: Callback<GravityResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.GYROSCOPE, sensorInfoParam?: SensorInfoParam, callback?: Callback<GyroscopeResponse>): void;
DIfferences: function off(type: SensorId.GYROSCOPE, sensorInfoParam?: SensorInfoParam, callback?: Callback<GyroscopeResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.GYROSCOPE_UNCALIBRATED, sensorInfoParam?: SensorInfoParam, callback?: Callback<GyroscopeUncalibratedResponse>): void;
DIfferences: function off(type: SensorId.GYROSCOPE_UNCALIBRATED, sensorInfoParam?: SensorInfoParam, callback?: Callback<GyroscopeUncalibratedResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.HALL, sensorInfoParam?: SensorInfoParam, callback?: Callback<HallResponse>): void;
DIfferences: function off(type: SensorId.HALL, sensorInfoParam?: SensorInfoParam, callback?: Callback<HallResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.HEART_RATE, sensorInfoParam?: SensorInfoParam, callback?: Callback<HeartRateResponse>): void;
DIfferences: function off(type: SensorId.HEART_RATE, sensorInfoParam?: SensorInfoParam, callback?: Callback<HeartRateResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.HUMIDITY, sensorInfoParam?: SensorInfoParam, callback?: Callback<HumidityResponse>): void;
DIfferences: function off(type: SensorId.HUMIDITY, sensorInfoParam?: SensorInfoParam, callback?: Callback<HumidityResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.LINEAR_ACCELEROMETER, sensorInfoParam?: SensorInfoParam, callback?: Callback<LinearAccelerometerResponse>): void;
DIfferences: function off(type: SensorId.LINEAR_ACCELEROMETER, sensorInfoParam?: SensorInfoParam, callback?: Callback<LinearAccelerometerResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.MAGNETIC_FIELD, sensorInfoParam?: SensorInfoParam, callback?: Callback<MagneticFieldResponse>): void;
DIfferences: function off(type: SensorId.MAGNETIC_FIELD, sensorInfoParam?: SensorInfoParam, callback?: Callback<MagneticFieldResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, sensorInfoParam?: SensorInfoParam, callback?: Callback<MagneticFieldUncalibratedResponse>): void;
DIfferences: function off(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, sensorInfoParam?: SensorInfoParam, callback?: Callback<MagneticFieldUncalibratedResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.ORIENTATION, sensorInfoParam?: SensorInfoParam, callback?: Callback<OrientationResponse>): void;
DIfferences: function off(type: SensorId.ORIENTATION, sensorInfoParam?: SensorInfoParam, callback?: Callback<OrientationResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.PEDOMETER, sensorInfoParam?: SensorInfoParam, callback?: Callback<PedometerResponse>): void;
DIfferences: function off(type: SensorId.PEDOMETER, sensorInfoParam?: SensorInfoParam, callback?: Callback<PedometerResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.PEDOMETER_DETECTION, sensorInfoParam?: SensorInfoParam, callback?: Callback<PedometerDetectionResponse>): void;
DIfferences: function off(type: SensorId.PEDOMETER_DETECTION, sensorInfoParam?: SensorInfoParam, callback?: Callback<PedometerDetectionResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.PROXIMITY, sensorInfoParam?: SensorInfoParam, callback?: Callback<ProximityResponse>): void;
DIfferences: function off(type: SensorId.PROXIMITY, sensorInfoParam?: SensorInfoParam, callback?: Callback<ProximityResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.ROTATION_VECTOR, sensorInfoParam?: SensorInfoParam, callback?: Callback<RotationVectorResponse>): void;
DIfferences: function off(type: SensorId.ROTATION_VECTOR, sensorInfoParam?: SensorInfoParam, callback?: Callback<RotationVectorResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.SIGNIFICANT_MOTION, sensorInfoParam?: SensorInfoParam, callback?: Callback<SignificantMotionResponse>): void;
DIfferences: function off(type: SensorId.SIGNIFICANT_MOTION, sensorInfoParam?: SensorInfoParam, callback?: Callback<SignificantMotionResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: SensorId.WEAR_DETECTION, sensorInfoParam?: SensorInfoParam, callback?: Callback<WearDetectionResponse>): void;
DIfferences: function off(type: SensorId.WEAR_DETECTION, sensorInfoParam?: SensorInfoParam, callback?: Callback<WearDetectionResponse>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: Sensor;
API declaration: sensorIndex?: number;
DIfferences: sensorIndex?: number;
NA api/@ohos.sensor.d.ts
Deleted API Class name: Sensor;
API declaration: deviceId?: number;
DIfferences: deviceId?: number;
NA api/@ohos.sensor.d.ts
Deleted API Class name: Sensor;
API declaration: deviceName?: string;
DIfferences: deviceName?: string;
NA api/@ohos.sensor.d.ts
Deleted API Class name: Sensor;
API declaration: isLocalSensor?: boolean;
DIfferences: isLocalSensor?: boolean;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function getSingleSensorByDeviceSync(type: SensorId, deviceId?: number): Array<Sensor>;
DIfferences: function getSingleSensorByDeviceSync(type: SensorId, deviceId?: number): Array<Sensor>;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function getSensorListByDeviceSync(deviceId?: number): Array<Sensor>;
DIfferences: function getSensorListByDeviceSync(deviceId?: number): Array<Sensor>;
NA api/@ohos.sensor.d.ts
Deleted API Class name: Options;
API declaration: sensorInfoParam?: SensorInfoParam;
DIfferences: sensorInfoParam?: SensorInfoParam;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function on(type: 'sensorStatusChange', callback: Callback<SensorStatusEvent>): void;
DIfferences: function on(type: 'sensorStatusChange', callback: Callback<SensorStatusEvent>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: function off(type: 'sensorStatusChange', callback?: Callback<SensorStatusEvent>): void;
DIfferences: function off(type: 'sensorStatusChange', callback?: Callback<SensorStatusEvent>): void;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: interface SensorStatusEvent
DIfferences: interface SensorStatusEvent
NA api/@ohos.sensor.d.ts
Deleted API Class name: SensorStatusEvent;
API declaration: timestamp: number;
DIfferences: timestamp: number;
NA api/@ohos.sensor.d.ts
Deleted API Class name: SensorStatusEvent;
API declaration: sensorId: number;
DIfferences: sensorId: number;
NA api/@ohos.sensor.d.ts
Deleted API Class name: SensorStatusEvent;
API declaration: sensorIndex: number;
DIfferences: sensorIndex: number;
NA api/@ohos.sensor.d.ts
Deleted API Class name: SensorStatusEvent;
API declaration: isSensorOnline: boolean;
DIfferences: isSensorOnline: boolean;
NA api/@ohos.sensor.d.ts
Deleted API Class name: SensorStatusEvent;
API declaration: deviceId: number;
DIfferences: deviceId: number;
NA api/@ohos.sensor.d.ts
Deleted API Class name: SensorStatusEvent;
API declaration: deviceName: string;
DIfferences: deviceName: string;
NA api/@ohos.sensor.d.ts
Deleted API Class name: sensor;
API declaration: interface SensorInfoParam
DIfferences: interface SensorInfoParam
NA api/@ohos.sensor.d.ts
Deleted API Class name: SensorInfoParam;
API declaration: deviceId?: number;
DIfferences: deviceId?: number;
NA api/@ohos.sensor.d.ts
Deleted API Class name: SensorInfoParam;
API declaration: sensorIndex?: number;
DIfferences: sensorIndex?: number;
NA api/@ohos.sensor.d.ts
Deleted API Class name: vibrator;
API declaration: function stopVibration(param?: VibratorInfoParam): Promise<void>;
DIfferences: function stopVibration(param?: VibratorInfoParam): Promise<void>;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: function getEffectInfoSync(effectId: string, param?: VibratorInfoParam): EffectInfo;
DIfferences: function getEffectInfoSync(effectId: string, param?: VibratorInfoParam): EffectInfo;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: interface EffectInfo
DIfferences: interface EffectInfo
NA api/@ohos.vibrator.d.ts
Deleted API Class name: EffectInfo;
API declaration: isEffectSupported: boolean;
DIfferences: isEffectSupported: boolean;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: HapticFeedback;
API declaration: EFFECT_NOTICE_SUCCESS = 'haptic.notice.success'
DIfferences: EFFECT_NOTICE_SUCCESS = 'haptic.notice.success'
NA api/@ohos.vibrator.d.ts
Deleted API Class name: HapticFeedback;
API declaration: EFFECT_NOTICE_FAILURE = 'haptic.notice.fail'
DIfferences: EFFECT_NOTICE_FAILURE = 'haptic.notice.fail'
NA api/@ohos.vibrator.d.ts
Deleted API Class name: HapticFeedback;
API declaration: EFFECT_NOTICE_WARNING = 'haptic.notice.warning'
DIfferences: EFFECT_NOTICE_WARNING = 'haptic.notice.warning'
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibrateAttribute;
API declaration: deviceId?: number;
DIfferences: deviceId?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: enum VibratorEventType
DIfferences: enum VibratorEventType
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorEventType;
API declaration: CONTINUOUS = 0
DIfferences: CONTINUOUS = 0
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorEventType;
API declaration: TRANSIENT = 1
DIfferences: TRANSIENT = 1
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: interface VibratorCurvePoint
DIfferences: interface VibratorCurvePoint
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorCurvePoint;
API declaration: time: number;
DIfferences: time: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorCurvePoint;
API declaration: intensity?: number;
DIfferences: intensity?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorCurvePoint;
API declaration: frequency?: number;
DIfferences: frequency?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: interface VibratorEvent
DIfferences: interface VibratorEvent
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorEvent;
API declaration: eventType: VibratorEventType;
DIfferences: eventType: VibratorEventType;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorEvent;
API declaration: time: number;
DIfferences: time: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorEvent;
API declaration: duration?: number;
DIfferences: duration?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorEvent;
API declaration: intensity?: number;
DIfferences: intensity?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorEvent;
API declaration: frequency?: number;
DIfferences: frequency?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorEvent;
API declaration: index?: number;
DIfferences: index?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorEvent;
API declaration: points?: Array<VibratorCurvePoint>;
DIfferences: points?: Array<VibratorCurvePoint>;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: interface VibratorPattern
DIfferences: interface VibratorPattern
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorPattern;
API declaration: time: number;
DIfferences: time: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorPattern;
API declaration: events: Array<VibratorEvent>;
DIfferences: events: Array<VibratorEvent>;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: interface ContinuousParam
DIfferences: interface ContinuousParam
NA api/@ohos.vibrator.d.ts
Deleted API Class name: ContinuousParam;
API declaration: intensity?: number;
DIfferences: intensity?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: ContinuousParam;
API declaration: frequency?: number;
DIfferences: frequency?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: ContinuousParam;
API declaration: points?: VibratorCurvePoint[];
DIfferences: points?: VibratorCurvePoint[];
NA api/@ohos.vibrator.d.ts
Deleted API Class name: ContinuousParam;
API declaration: index?: number;
DIfferences: index?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: interface TransientParam
DIfferences: interface TransientParam
NA api/@ohos.vibrator.d.ts
Deleted API Class name: TransientParam;
API declaration: intensity?: number;
DIfferences: intensity?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: TransientParam;
API declaration: frequency?: number;
DIfferences: frequency?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: TransientParam;
API declaration: index?: number;
DIfferences: index?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: class VibratorPatternBuilder
DIfferences: class VibratorPatternBuilder
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorPatternBuilder;
API declaration: addContinuousEvent(time: number, duration: number, options?: ContinuousParam): VibratorPatternBuilder;
DIfferences: addContinuousEvent(time: number, duration: number, options?: ContinuousParam): VibratorPatternBuilder;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorPatternBuilder;
API declaration: addTransientEvent(time: number, options?: TransientParam): VibratorPatternBuilder;
DIfferences: addTransientEvent(time: number, options?: TransientParam): VibratorPatternBuilder;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorPatternBuilder;
API declaration: build(): VibratorPattern;
DIfferences: build(): VibratorPattern;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: interface VibrateFromPattern
DIfferences: interface VibrateFromPattern
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibrateFromPattern;
API declaration: type: 'pattern';
DIfferences: type: 'pattern';
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibrateFromPattern;
API declaration: pattern: VibratorPattern;
DIfferences: pattern: VibratorPattern;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: interface VibratorInfoParam
DIfferences: interface VibratorInfoParam
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorInfoParam;
API declaration: deviceId?: number;
DIfferences: deviceId?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorInfoParam;
API declaration: vibratorId?: number;
DIfferences: vibratorId?: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: interface VibratorInfo
DIfferences: interface VibratorInfo
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorInfo;
API declaration: deviceId: number;
DIfferences: deviceId: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorInfo;
API declaration: vibratorId: number;
DIfferences: vibratorId: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorInfo;
API declaration: deviceName: string;
DIfferences: deviceName: string;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorInfo;
API declaration: isHdHapticSupported: boolean;
DIfferences: isHdHapticSupported: boolean;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorInfo;
API declaration: isLocalVibrator: boolean;
DIfferences: isLocalVibrator: boolean;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: function getVibratorInfoSync(param?: VibratorInfoParam): Array<VibratorInfo>;
DIfferences: function getVibratorInfoSync(param?: VibratorInfoParam): Array<VibratorInfo>;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: function on(type: 'vibratorStateChange', callback: Callback<VibratorStatusEvent>): void;
DIfferences: function on(type: 'vibratorStateChange', callback: Callback<VibratorStatusEvent>): void;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: function off(type: 'vibratorStateChange', callback?: Callback<VibratorStatusEvent>): void;
DIfferences: function off(type: 'vibratorStateChange', callback?: Callback<VibratorStatusEvent>): void;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: vibrator;
API declaration: interface VibratorStatusEvent
DIfferences: interface VibratorStatusEvent
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorStatusEvent;
API declaration: timestamp: number;
DIfferences: timestamp: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorStatusEvent;
API declaration: deviceId: number;
DIfferences: deviceId: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorStatusEvent;
API declaration: vibratorCount: number;
DIfferences: vibratorCount: number;
NA api/@ohos.vibrator.d.ts
Deleted API Class name: VibratorStatusEvent;
API declaration: isVibratorOnline: boolean;
DIfferences: isVibratorOnline: boolean;
NA api/@ohos.vibrator.d.ts