1| 操作 | 旧版本 | 新版本 | d.ts文件 | 2| ---- | ------ | ------ | -------- | 3|新增|NA|类名:sensor;<br>方法or属性:function on(type: SensorId.COLOR, callback: Callback\<ColorResponse>, options?: Options): void;|@ohos.sensor.d.ts| 4|新增|NA|类名:sensor;<br>方法or属性:function on(type: SensorId.SAR, callback: Callback\<SarResponse>, options?: Options): void;|@ohos.sensor.d.ts| 5|新增|NA|类名:sensor;<br>方法or属性:function off(type: SensorId.COLOR, callback?: Callback\<ColorResponse>): void;|@ohos.sensor.d.ts| 6|新增|NA|类名:sensor;<br>方法or属性:function off(type: SensorId.SAR, callback?: Callback\<SarResponse>): void;|@ohos.sensor.d.ts| 7|新增|NA|类名:SensorId;<br>方法or属性:COLOR = 14|@ohos.sensor.d.ts| 8|新增|NA|类名:SensorId;<br>方法or属性:SAR = 15|@ohos.sensor.d.ts| 9|新增|NA|类名:ColorResponse;<br>方法or属性:lightIntensity: number;|@ohos.sensor.d.ts| 10|新增|NA|类名:ColorResponse;<br>方法or属性:colorTemperature: number;|@ohos.sensor.d.ts| 11|新增|NA|类名:SarResponse;<br>方法or属性:absorptionRatio: number;|@ohos.sensor.d.ts| 12|新增|NA|类名:vibrator;<br>方法or属性:function stopVibration(callback: AsyncCallback\<void>): void;|@ohos.vibrator.d.ts| 13|新增|NA|类名:vibrator;<br>方法or属性:function stopVibration(): Promise\<void>;|@ohos.vibrator.d.ts| 14|新增|NA|类名:vibrator;<br>方法or属性:function isSupportEffect(effectId: string, callback: AsyncCallback\<boolean>): void;|@ohos.vibrator.d.ts| 15|新增|NA|类名:vibrator;<br>方法or属性:function isSupportEffect(effectId: string): Promise\<boolean>;|@ohos.vibrator.d.ts| 16|新增|NA|类名:HapticFileDescriptor;<br>方法or属性:fd: number;|@ohos.vibrator.d.ts| 17|新增|NA|类名:HapticFileDescriptor;<br>方法or属性:offset?: number;|@ohos.vibrator.d.ts| 18|新增|NA|类名:HapticFileDescriptor;<br>方法or属性:length?: number;|@ohos.vibrator.d.ts| 19|废弃版本有变化|类名:sensor;<br>方法or属性:function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise\<GeomagneticResponse>;<br>旧版本信息:|类名:sensor;<br>方法or属性:function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise\<GeomagneticResponse>;<br>新版本信息:9<br>代替接口: sensor#getGeomagneticInfo|@ohos.sensor.d.ts| 20|废弃版本有变化|类名:sensor;<br>方法or属性:function getAltitude(seaPressure: number, currentPressure: number): Promise\<number>;<br>旧版本信息:|类名:sensor;<br>方法or属性:function getAltitude(seaPressure: number, currentPressure: number): Promise\<number>;<br>新版本信息:9<br>代替接口: sensor#getDeviceAltitude|@ohos.sensor.d.ts| 21|废弃版本有变化|类名:sensor;<br>方法or属性:function getGeomagneticDip(inclinationMatrix: Array\<number>): Promise\<number>;<br>旧版本信息:|类名:sensor;<br>方法or属性:function getGeomagneticDip(inclinationMatrix: Array\<number>): Promise\<number>;<br>新版本信息:9<br>代替接口: sensor#getInclination|@ohos.sensor.d.ts| 22|废弃版本有变化|类名:sensor;<br>方法or属性:function getAngleModify(currentRotationMatrix: Array\<number>, preRotationMatrix: Array\<number>): Promise\<Array\<number>>;<br>旧版本信息:|类名:sensor;<br>方法or属性:function getAngleModify(currentRotationMatrix: Array\<number>, preRotationMatrix: Array\<number>): Promise\<Array\<number>>;<br>新版本信息:9<br>代替接口: sensor#getAngleVariation|@ohos.sensor.d.ts| 23|废弃版本有变化|类名:sensor;<br>方法or属性:function createRotationMatrix(rotationVector: Array\<number>): Promise\<Array\<number>>;<br>旧版本信息:|类名:sensor;<br>方法or属性:function createRotationMatrix(rotationVector: Array\<number>): Promise\<Array\<number>>;<br>新版本信息:9<br>代替接口: sensor#getRotationMatrix|@ohos.sensor.d.ts| 24|废弃版本有变化|类名:sensor;<br>方法or属性:function createRotationMatrix(gravity: Array\<number>, geomagnetic: Array\<number>,): Promise\<RotationMatrixResponse>;<br>旧版本信息:|类名:sensor;<br>方法or属性:function createRotationMatrix(gravity: Array\<number>, geomagnetic: Array\<number>,): Promise\<RotationMatrixResponse>;<br>新版本信息:9<br>代替接口: sensor#getRotationMatrix|@ohos.sensor.d.ts| 25|废弃版本有变化|类名:sensor;<br>方法or属性:function transformCoordinateSystem(inRotationVector: Array\<number>, coordinates: CoordinatesOptions): Promise\<Array\<number>>;<br>旧版本信息:|类名:sensor;<br>方法or属性:function transformCoordinateSystem(inRotationVector: Array\<number>, coordinates: CoordinatesOptions): Promise\<Array\<number>>;<br>新版本信息:9<br>代替接口: sensor#transformRotationMatrix|@ohos.sensor.d.ts| 26|废弃版本有变化|类名:sensor;<br>方法or属性:function createQuaternion(rotationVector: Array\<number>): Promise\<Array\<number>>;<br>旧版本信息:|类名:sensor;<br>方法or属性:function createQuaternion(rotationVector: Array\<number>): Promise\<Array\<number>>;<br>新版本信息:9<br>代替接口: sensor#getQuaternion|@ohos.sensor.d.ts| 27|废弃版本有变化|类名:sensor;<br>方法or属性:function getDirection(rotationMatrix: Array\<number>): Promise\<Array\<number>>;<br>旧版本信息:|类名:sensor;<br>方法or属性:function getDirection(rotationMatrix: Array\<number>): Promise\<Array\<number>>;<br>新版本信息:9<br>代替接口: sensor#getOrientation|@ohos.sensor.d.ts| 28|废弃版本有变化|类名:vibrator;<br>方法or属性:function vibrate(duration: number): Promise\<void>;<br>旧版本信息:|类名:vibrator;<br>方法or属性:function vibrate(duration: number): Promise\<void>;<br>新版本信息:9<br>代替接口: vibrator#startVibration|@ohos.vibrator.d.ts| 29|废弃版本有变化|类名:vibrator;<br>方法or属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\<void>): void;<br>旧版本信息:|类名:vibrator;<br>方法or属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: vibrator#startVibration|@ohos.vibrator.d.ts| 30|废弃版本有变化|类名:vibrator;<br>方法or属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\<void>): void;<br>旧版本信息:|类名:vibrator;<br>方法or属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\<void>): void;<br>新版本信息:9<br>代替接口: vibrator#stopVibration|@ohos.vibrator.d.ts| 31|错误码有变化|类名:vibrator;<br>方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute, callback: AsyncCallback\<void>): void;<br>旧版本信息:201,401,14600101|类名:vibrator;<br>方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute, callback: AsyncCallback\<void>): void;<br>新版本信息:201,401,801,14600101|@ohos.vibrator.d.ts| 32|错误码有变化|类名:vibrator;<br>方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute): Promise\<void>;<br>旧版本信息:201,401,14600101|类名:vibrator;<br>方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute): Promise\<void>;<br>新版本信息:201,401,801,14600101|@ohos.vibrator.d.ts| 33|权限有变化|类名:vibrator;<br>方法or属性:function vibrate(duration: number): Promise\<void>;<br>旧版本信息:|类名:vibrator;<br>方法or属性:function vibrate(duration: number): Promise\<void>;<br>新版本信息:ohos.permission.VIBRATE|@ohos.vibrator.d.ts| 34|权限有变化|类名:vibrator;<br>方法or属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\<void>): void;<br>旧版本信息:|类名:vibrator;<br>方法or属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\<void>): void;<br>新版本信息:ohos.permission.VIBRATE|@ohos.vibrator.d.ts| 35|权限有变化|类名:vibrator;<br>方法or属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\<void>): void;<br>旧版本信息:|类名:vibrator;<br>方法or属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\<void>): void;<br>新版本信息:ohos.permission.VIBRATE|@ohos.vibrator.d.ts| 36|权限有变化|类名:AccelerometerResponse;<br>方法or属性:x: number;<br>旧版本信息:|类名:AccelerometerResponse;<br>方法or属性:x: number;<br>新版本信息:ohos.permission.ACCELEROMETER|@system.sensor.d.ts| 37|权限有变化|类名:GyroscopeResponse;<br>方法or属性:x: number;<br>旧版本信息:|类名:GyroscopeResponse;<br>方法or属性:x: number;<br>新版本信息:ohos.permission.GYROSCOPE|@system.sensor.d.ts| 38|权限有变化|类名:AccelerometerResponse;<br>方法or属性:y: number;<br>旧版本信息:|类名:AccelerometerResponse;<br>方法or属性:y: number;<br>新版本信息:ohos.permission.ACCELEROMETER|@system.sensor.d.ts| 39|权限有变化|类名:GyroscopeResponse;<br>方法or属性:y: number;<br>旧版本信息:|类名:GyroscopeResponse;<br>方法or属性:y: number;<br>新版本信息:ohos.permission.GYROSCOPE|@system.sensor.d.ts| 40|权限有变化|类名:AccelerometerResponse;<br>方法or属性:z: number;<br>旧版本信息:|类名:AccelerometerResponse;<br>方法or属性:z: number;<br>新版本信息:ohos.permission.ACCELEROMETER|@system.sensor.d.ts| 41|权限有变化|类名:GyroscopeResponse;<br>方法or属性:z: number;<br>旧版本信息:|类名:GyroscopeResponse;<br>方法or属性:z: number;<br>新版本信息:ohos.permission.GYROSCOPE|@system.sensor.d.ts| 42|权限有变化|类名:subscribeAccelerometerOptions;<br>方法or属性:interval: string;<br>旧版本信息:|类名:subscribeAccelerometerOptions;<br>方法or属性:interval: string;<br>新版本信息:ohos.permission.ACCELEROMETER|@system.sensor.d.ts| 43|权限有变化|类名:SubscribeGyroscopeOptions;<br>方法or属性:interval: string;<br>旧版本信息:|类名:SubscribeGyroscopeOptions;<br>方法or属性:interval: string;<br>新版本信息:ohos.permission.GYROSCOPE|@system.sensor.d.ts| 44|权限有变化|类名:subscribeAccelerometerOptions;<br>方法or属性:success: (data: AccelerometerResponse) => void;<br>旧版本信息:|类名:subscribeAccelerometerOptions;<br>方法or属性:success: (data: AccelerometerResponse) => void;<br>新版本信息:ohos.permission.ACCELEROMETER|@system.sensor.d.ts| 45|权限有变化|类名:subscribeAccelerometerOptions;<br>方法or属性:fail?: (data: string, code: number) => void;<br>旧版本信息:|类名:subscribeAccelerometerOptions;<br>方法or属性:fail?: (data: string, code: number) => void;<br>新版本信息:ohos.permission.ACCELEROMETER|@system.sensor.d.ts| 46|权限有变化|类名:SubscribeStepCounterOptions;<br>方法or属性:fail?: (data: string, code: number) => void;<br>旧版本信息:|类名:SubscribeStepCounterOptions;<br>方法or属性:fail?: (data: string, code: number) => void;<br>新版本信息:ohos.permission.ACTIVITY_MOTION|@system.sensor.d.ts| 47|权限有变化|类名:SubscribeHeartRateOptions;<br>方法or属性:fail?: (data: string, code: number) => void;<br>旧版本信息:|类名:SubscribeHeartRateOptions;<br>方法or属性:fail?: (data: string, code: number) => void;<br>新版本信息:ohos.permission.READ_HEALTH_DATA|@system.sensor.d.ts| 48|权限有变化|类名:SubscribeGyroscopeOptions;<br>方法or属性:fail?: (data: string, code: number) => void;<br>旧版本信息:|类名:SubscribeGyroscopeOptions;<br>方法or属性:fail?: (data: string, code: number) => void;<br>新版本信息:ohos.permission.GYROSCOPE|@system.sensor.d.ts| 49|权限有变化|类名:StepCounterResponse;<br>方法or属性:steps: number;<br>旧版本信息:|类名:StepCounterResponse;<br>方法or属性:steps: number;<br>新版本信息:ohos.permission.ACTIVITY_MOTION|@system.sensor.d.ts| 50|权限有变化|类名:SubscribeStepCounterOptions;<br>方法or属性:success: (data: StepCounterResponse) => void;<br>旧版本信息:|类名:SubscribeStepCounterOptions;<br>方法or属性:success: (data: StepCounterResponse) => void;<br>新版本信息:ohos.permission.ACTIVITY_MOTION|@system.sensor.d.ts| 51|权限有变化|类名:HeartRateResponse;<br>方法or属性:heartRate: number;<br>旧版本信息:|类名:HeartRateResponse;<br>方法or属性:heartRate: number;<br>新版本信息:ohos.permission.READ_HEALTH_DATA|@system.sensor.d.ts| 52|权限有变化|类名:SubscribeHeartRateOptions;<br>方法or属性:success: (data: HeartRateResponse) => void;<br>旧版本信息:|类名:SubscribeHeartRateOptions;<br>方法or属性:success: (data: HeartRateResponse) => void;<br>新版本信息:ohos.permission.READ_HEALTH_DATA|@system.sensor.d.ts| 53|权限有变化|类名:SubscribeGyroscopeOptions;<br>方法or属性:success: (data: GyroscopeResponse) => void;<br>旧版本信息:|类名:SubscribeGyroscopeOptions;<br>方法or属性:success: (data: GyroscopeResponse) => void;<br>新版本信息:ohos.permission.GYROSCOPE|@system.sensor.d.ts| 54|权限有变化|类名:VibrateOptions;<br>方法or属性:mode?: 'long' \| 'short';<br>旧版本信息:|类名:VibrateOptions;<br>方法or属性:mode?: 'long' \| 'short';<br>新版本信息:ohos.permission.VIBRATE|@system.vibrator.d.ts| 55|权限有变化|类名:VibrateOptions;<br>方法or属性:success: () => void;<br>旧版本信息:|类名:VibrateOptions;<br>方法or属性:success: () => void;<br>新版本信息:ohos.permission.VIBRATE|@system.vibrator.d.ts| 56|权限有变化|类名:VibrateOptions;<br>方法or属性:fail?: (data: string, code: number) => void;<br>旧版本信息:|类名:VibrateOptions;<br>方法or属性:fail?: (data: string, code: number) => void;<br>新版本信息:ohos.permission.VIBRATE|@system.vibrator.d.ts| 57|权限有变化|类名:VibrateOptions;<br>方法or属性:complete?: () => void;<br>旧版本信息:|类名:VibrateOptions;<br>方法or属性:complete?: () => void;<br>新版本信息:ohos.permission.VIBRATE|@system.vibrator.d.ts| 58|type有变化|类名:Sensor;<br>方法or属性:sensorName:string;<br>旧版本信息:|类名:Sensor;<br>方法or属性:sensorName:string;<br>新版本信息:string|@ohos.sensor.d.ts| 59|type有变化|类名:Sensor;<br>方法or属性:vendorName:string;<br>旧版本信息:|类名:Sensor;<br>方法or属性:vendorName:string;<br>新版本信息:string|@ohos.sensor.d.ts| 60|type有变化|类名:Sensor;<br>方法or属性:firmwareVersion:string;<br>旧版本信息:|类名:Sensor;<br>方法or属性:firmwareVersion:string;<br>新版本信息:string|@ohos.sensor.d.ts| 61|type有变化|类名:Sensor;<br>方法or属性:hardwareVersion:string;<br>旧版本信息:|类名:Sensor;<br>方法or属性:hardwareVersion:string;<br>新版本信息:string|@ohos.sensor.d.ts| 62|type有变化|类名:Sensor;<br>方法or属性:sensorId:number;<br>旧版本信息:|类名:Sensor;<br>方法or属性:sensorId:number;<br>新版本信息:number|@ohos.sensor.d.ts| 63|type有变化|类名:Sensor;<br>方法or属性:maxRange:number;<br>旧版本信息:|类名:Sensor;<br>方法or属性:maxRange:number;<br>新版本信息:number|@ohos.sensor.d.ts| 64|type有变化|类名:Sensor;<br>方法or属性:minSamplePeriod:number;<br>旧版本信息:|类名:Sensor;<br>方法or属性:minSamplePeriod:number;<br>新版本信息:number|@ohos.sensor.d.ts| 65|type有变化|类名:Sensor;<br>方法or属性:maxSamplePeriod:number;<br>旧版本信息:|类名:Sensor;<br>方法or属性:maxSamplePeriod:number;<br>新版本信息:number|@ohos.sensor.d.ts| 66|type有变化|类名:Sensor;<br>方法or属性:precision:number;<br>旧版本信息:|类名:Sensor;<br>方法or属性:precision:number;<br>新版本信息:number|@ohos.sensor.d.ts| 67|type有变化|类名:Sensor;<br>方法or属性:power:number;<br>旧版本信息:|类名:Sensor;<br>方法or属性:power:number;<br>新版本信息:number|@ohos.sensor.d.ts| 68|type有变化|类名:GeomagneticResponse;<br>方法or属性:x: number;<br>旧版本信息:|类名:GeomagneticResponse;<br>方法or属性:x: number;<br>新版本信息:number|@ohos.sensor.d.ts| 69|type有变化|类名:CoordinatesOptions;<br>方法or属性:x: number;<br>旧版本信息:|类名:CoordinatesOptions;<br>方法or属性:x: number;<br>新版本信息:number|@ohos.sensor.d.ts| 70|type有变化|类名:AccelerometerResponse;<br>方法or属性:x: number;<br>旧版本信息:|类名:AccelerometerResponse;<br>方法or属性:x: number;<br>新版本信息:number|@ohos.sensor.d.ts| 71|type有变化|类名:LinearAccelerometerResponse;<br>方法or属性:x: number;<br>旧版本信息:|类名:LinearAccelerometerResponse;<br>方法or属性:x: number;<br>新版本信息:number|@ohos.sensor.d.ts| 72|type有变化|类名:AccelerometerUncalibratedResponse;<br>方法or属性:x: number;<br>旧版本信息:|类名:AccelerometerUncalibratedResponse;<br>方法or属性:x: number;<br>新版本信息:number|@ohos.sensor.d.ts| 73|type有变化|类名:GravityResponse;<br>方法or属性:x: number;<br>旧版本信息:|类名:GravityResponse;<br>方法or属性:x: number;<br>新版本信息:number|@ohos.sensor.d.ts| 74|type有变化|类名:RotationVectorResponse;<br>方法or属性:x: number;<br>旧版本信息:|类名:RotationVectorResponse;<br>方法or属性:x: number;<br>新版本信息:number|@ohos.sensor.d.ts| 75|type有变化|类名:GyroscopeResponse;<br>方法or属性:x: number;<br>旧版本信息:|类名:GyroscopeResponse;<br>方法or属性:x: number;<br>新版本信息:number|@ohos.sensor.d.ts| 76|type有变化|类名:GyroscopeUncalibratedResponse;<br>方法or属性:x: number;<br>旧版本信息:|类名:GyroscopeUncalibratedResponse;<br>方法or属性:x: number;<br>新版本信息:number|@ohos.sensor.d.ts| 77|type有变化|类名:MagneticFieldResponse;<br>方法or属性:x: number;<br>旧版本信息:|类名:MagneticFieldResponse;<br>方法or属性:x: number;<br>新版本信息:number|@ohos.sensor.d.ts| 78|type有变化|类名:MagneticFieldUncalibratedResponse;<br>方法or属性:x: number;<br>旧版本信息:|类名:MagneticFieldUncalibratedResponse;<br>方法or属性:x: number;<br>新版本信息:number|@ohos.sensor.d.ts| 79|type有变化|类名:GeomagneticResponse;<br>方法or属性:y: number;<br>旧版本信息:|类名:GeomagneticResponse;<br>方法or属性:y: number;<br>新版本信息:number|@ohos.sensor.d.ts| 80|type有变化|类名:CoordinatesOptions;<br>方法or属性:y: number;<br>旧版本信息:|类名:CoordinatesOptions;<br>方法or属性:y: number;<br>新版本信息:number|@ohos.sensor.d.ts| 81|type有变化|类名:AccelerometerResponse;<br>方法or属性:y: number;<br>旧版本信息:|类名:AccelerometerResponse;<br>方法or属性:y: number;<br>新版本信息:number|@ohos.sensor.d.ts| 82|type有变化|类名:LinearAccelerometerResponse;<br>方法or属性:y: number;<br>旧版本信息:|类名:LinearAccelerometerResponse;<br>方法or属性:y: number;<br>新版本信息:number|@ohos.sensor.d.ts| 83|type有变化|类名:AccelerometerUncalibratedResponse;<br>方法or属性:y: number;<br>旧版本信息:|类名:AccelerometerUncalibratedResponse;<br>方法or属性:y: number;<br>新版本信息:number|@ohos.sensor.d.ts| 84|type有变化|类名:GravityResponse;<br>方法or属性:y: number;<br>旧版本信息:|类名:GravityResponse;<br>方法or属性:y: number;<br>新版本信息:number|@ohos.sensor.d.ts| 85|type有变化|类名:RotationVectorResponse;<br>方法or属性:y: number;<br>旧版本信息:|类名:RotationVectorResponse;<br>方法or属性:y: number;<br>新版本信息:number|@ohos.sensor.d.ts| 86|type有变化|类名:GyroscopeResponse;<br>方法or属性:y: number;<br>旧版本信息:|类名:GyroscopeResponse;<br>方法or属性:y: number;<br>新版本信息:number|@ohos.sensor.d.ts| 87|type有变化|类名:GyroscopeUncalibratedResponse;<br>方法or属性:y: number;<br>旧版本信息:|类名:GyroscopeUncalibratedResponse;<br>方法or属性:y: number;<br>新版本信息:number|@ohos.sensor.d.ts| 88|type有变化|类名:MagneticFieldResponse;<br>方法or属性:y: number;<br>旧版本信息:|类名:MagneticFieldResponse;<br>方法or属性:y: number;<br>新版本信息:number|@ohos.sensor.d.ts| 89|type有变化|类名:MagneticFieldUncalibratedResponse;<br>方法or属性:y: number;<br>旧版本信息:|类名:MagneticFieldUncalibratedResponse;<br>方法or属性:y: number;<br>新版本信息:number|@ohos.sensor.d.ts| 90|type有变化|类名:GeomagneticResponse;<br>方法or属性:z: number;<br>旧版本信息:|类名:GeomagneticResponse;<br>方法or属性:z: number;<br>新版本信息:number|@ohos.sensor.d.ts| 91|type有变化|类名:AccelerometerResponse;<br>方法or属性:z: number;<br>旧版本信息:|类名:AccelerometerResponse;<br>方法or属性:z: number;<br>新版本信息:number|@ohos.sensor.d.ts| 92|type有变化|类名:LinearAccelerometerResponse;<br>方法or属性:z: number;<br>旧版本信息:|类名:LinearAccelerometerResponse;<br>方法or属性:z: number;<br>新版本信息:number|@ohos.sensor.d.ts| 93|type有变化|类名:AccelerometerUncalibratedResponse;<br>方法or属性:z: number;<br>旧版本信息:|类名:AccelerometerUncalibratedResponse;<br>方法or属性:z: number;<br>新版本信息:number|@ohos.sensor.d.ts| 94|type有变化|类名:GravityResponse;<br>方法or属性:z: number;<br>旧版本信息:|类名:GravityResponse;<br>方法or属性:z: number;<br>新版本信息:number|@ohos.sensor.d.ts| 95|type有变化|类名:RotationVectorResponse;<br>方法or属性:z: number;<br>旧版本信息:|类名:RotationVectorResponse;<br>方法or属性:z: number;<br>新版本信息:number|@ohos.sensor.d.ts| 96|type有变化|类名:GyroscopeResponse;<br>方法or属性:z: number;<br>旧版本信息:|类名:GyroscopeResponse;<br>方法or属性:z: number;<br>新版本信息:number|@ohos.sensor.d.ts| 97|type有变化|类名:GyroscopeUncalibratedResponse;<br>方法or属性:z: number;<br>旧版本信息:|类名:GyroscopeUncalibratedResponse;<br>方法or属性:z: number;<br>新版本信息:number|@ohos.sensor.d.ts| 98|type有变化|类名:MagneticFieldResponse;<br>方法or属性:z: number;<br>旧版本信息:|类名:MagneticFieldResponse;<br>方法or属性:z: number;<br>新版本信息:number|@ohos.sensor.d.ts| 99|type有变化|类名:MagneticFieldUncalibratedResponse;<br>方法or属性:z: number;<br>旧版本信息:|类名:MagneticFieldUncalibratedResponse;<br>方法or属性:z: number;<br>新版本信息:number|@ohos.sensor.d.ts| 100|type有变化|类名:GeomagneticResponse;<br>方法or属性:geomagneticDip: number;<br>旧版本信息:|类名:GeomagneticResponse;<br>方法or属性:geomagneticDip: number;<br>新版本信息:number|@ohos.sensor.d.ts| 101|type有变化|类名:GeomagneticResponse;<br>方法or属性:deflectionAngle: number;<br>旧版本信息:|类名:GeomagneticResponse;<br>方法or属性:deflectionAngle: number;<br>新版本信息:number|@ohos.sensor.d.ts| 102|type有变化|类名:GeomagneticResponse;<br>方法or属性:levelIntensity: number;<br>旧版本信息:|类名:GeomagneticResponse;<br>方法or属性:levelIntensity: number;<br>新版本信息:number|@ohos.sensor.d.ts| 103|type有变化|类名:GeomagneticResponse;<br>方法or属性:totalIntensity: number;<br>旧版本信息:|类名:GeomagneticResponse;<br>方法or属性:totalIntensity: number;<br>新版本信息:number|@ohos.sensor.d.ts| 104|type有变化|类名:LocationOptions;<br>方法or属性:latitude: number;<br>旧版本信息:|类名:LocationOptions;<br>方法or属性:latitude: number;<br>新版本信息:number|@ohos.sensor.d.ts| 105|type有变化|类名:LocationOptions;<br>方法or属性:longitude: number;<br>旧版本信息:|类名:LocationOptions;<br>方法or属性:longitude: number;<br>新版本信息:number|@ohos.sensor.d.ts| 106|type有变化|类名:LocationOptions;<br>方法or属性:altitude: number;<br>旧版本信息:|类名:LocationOptions;<br>方法or属性:altitude: number;<br>新版本信息:number|@ohos.sensor.d.ts| 107|type有变化|类名:RotationMatrixResponse;<br>方法or属性:rotation: Array\<number>;<br>旧版本信息:|类名:RotationMatrixResponse;<br>方法or属性:rotation: Array\<number>;<br>新版本信息:Array\<number>|@ohos.sensor.d.ts| 108|type有变化|类名:RotationMatrixResponse;<br>方法or属性:inclination: Array\<number><br>旧版本信息:|类名:RotationMatrixResponse;<br>方法or属性:inclination: Array\<number><br>新版本信息:Array\<number>|@ohos.sensor.d.ts| 109|type有变化|类名:Options;<br>方法or属性:interval?: number;<br>旧版本信息:|类名:Options;<br>方法or属性:interval?: number;<br>新版本信息:?number|@ohos.sensor.d.ts| 110|type有变化|类名:Response;<br>方法or属性:timestamp: number;<br>旧版本信息:|类名:Response;<br>方法or属性:timestamp: number;<br>新版本信息:number|@ohos.sensor.d.ts| 111|type有变化|类名:AccelerometerUncalibratedResponse;<br>方法or属性:biasX: number;<br>旧版本信息:|类名:AccelerometerUncalibratedResponse;<br>方法or属性:biasX: number;<br>新版本信息:number|@ohos.sensor.d.ts| 112|type有变化|类名:GyroscopeUncalibratedResponse;<br>方法or属性:biasX: number;<br>旧版本信息:|类名:GyroscopeUncalibratedResponse;<br>方法or属性:biasX: number;<br>新版本信息:number|@ohos.sensor.d.ts| 113|type有变化|类名:MagneticFieldUncalibratedResponse;<br>方法or属性:biasX: number;<br>旧版本信息:|类名:MagneticFieldUncalibratedResponse;<br>方法or属性:biasX: number;<br>新版本信息:number|@ohos.sensor.d.ts| 114|type有变化|类名:AccelerometerUncalibratedResponse;<br>方法or属性:biasY: number;<br>旧版本信息:|类名:AccelerometerUncalibratedResponse;<br>方法or属性:biasY: number;<br>新版本信息:number|@ohos.sensor.d.ts| 115|type有变化|类名:GyroscopeUncalibratedResponse;<br>方法or属性:biasY: number;<br>旧版本信息:|类名:GyroscopeUncalibratedResponse;<br>方法or属性:biasY: number;<br>新版本信息:number|@ohos.sensor.d.ts| 116|type有变化|类名:MagneticFieldUncalibratedResponse;<br>方法or属性:biasY: number;<br>旧版本信息:|类名:MagneticFieldUncalibratedResponse;<br>方法or属性:biasY: number;<br>新版本信息:number|@ohos.sensor.d.ts| 117|type有变化|类名:AccelerometerUncalibratedResponse;<br>方法or属性:biasZ: number;<br>旧版本信息:|类名:AccelerometerUncalibratedResponse;<br>方法or属性:biasZ: number;<br>新版本信息:number|@ohos.sensor.d.ts| 118|type有变化|类名:GyroscopeUncalibratedResponse;<br>方法or属性:biasZ: number;<br>旧版本信息:|类名:GyroscopeUncalibratedResponse;<br>方法or属性:biasZ: number;<br>新版本信息:number|@ohos.sensor.d.ts| 119|type有变化|类名:MagneticFieldUncalibratedResponse;<br>方法or属性:biasZ: number;<br>旧版本信息:|类名:MagneticFieldUncalibratedResponse;<br>方法or属性:biasZ: number;<br>新版本信息:number|@ohos.sensor.d.ts| 120|type有变化|类名:OrientationResponse;<br>方法or属性:alpha: number;<br>旧版本信息:|类名:OrientationResponse;<br>方法or属性:alpha: number;<br>新版本信息:number|@ohos.sensor.d.ts| 121|type有变化|类名:OrientationResponse;<br>方法or属性:beta: number;<br>旧版本信息:|类名:OrientationResponse;<br>方法or属性:beta: number;<br>新版本信息:number|@ohos.sensor.d.ts| 122|type有变化|类名:OrientationResponse;<br>方法or属性:gamma: number;<br>旧版本信息:|类名:OrientationResponse;<br>方法or属性:gamma: number;<br>新版本信息:number|@ohos.sensor.d.ts| 123|type有变化|类名:RotationVectorResponse;<br>方法or属性:w: number;<br>旧版本信息:|类名:RotationVectorResponse;<br>方法or属性:w: number;<br>新版本信息:number|@ohos.sensor.d.ts| 124|type有变化|类名:SignificantMotionResponse;<br>方法or属性:scalar: number;<br>旧版本信息:|类名:SignificantMotionResponse;<br>方法or属性:scalar: number;<br>新版本信息:number|@ohos.sensor.d.ts| 125|type有变化|类名:PedometerDetectionResponse;<br>方法or属性:scalar: number;<br>旧版本信息:|类名:PedometerDetectionResponse;<br>方法or属性:scalar: number;<br>新版本信息:number|@ohos.sensor.d.ts| 126|type有变化|类名:ProximityResponse;<br>方法or属性:distance: number;<br>旧版本信息:|类名:ProximityResponse;<br>方法or属性:distance: number;<br>新版本信息:number|@ohos.sensor.d.ts| 127|type有变化|类名:LightResponse;<br>方法or属性:intensity: number;<br>旧版本信息:|类名:LightResponse;<br>方法or属性:intensity: number;<br>新版本信息:number|@ohos.sensor.d.ts| 128|type有变化|类名:HallResponse;<br>方法or属性:status: number;<br>旧版本信息:|类名:HallResponse;<br>方法or属性:status: number;<br>新版本信息:number|@ohos.sensor.d.ts| 129|type有变化|类名:PedometerResponse;<br>方法or属性:steps: number;<br>旧版本信息:|类名:PedometerResponse;<br>方法or属性:steps: number;<br>新版本信息:number|@ohos.sensor.d.ts| 130|type有变化|类名:HumidityResponse;<br>方法or属性:humidity: number;<br>旧版本信息:|类名:HumidityResponse;<br>方法or属性:humidity: number;<br>新版本信息:number|@ohos.sensor.d.ts| 131|type有变化|类名:AmbientTemperatureResponse;<br>方法or属性:temperature: number;<br>旧版本信息:|类名:AmbientTemperatureResponse;<br>方法or属性:temperature: number;<br>新版本信息:number|@ohos.sensor.d.ts| 132|type有变化|类名:BarometerResponse;<br>方法or属性:pressure: number;<br>旧版本信息:|类名:BarometerResponse;<br>方法or属性:pressure: number;<br>新版本信息:number|@ohos.sensor.d.ts| 133|type有变化|类名:HeartRateResponse;<br>方法or属性:heartRate: number;<br>旧版本信息:|类名:HeartRateResponse;<br>方法or属性:heartRate: number;<br>新版本信息:number|@ohos.sensor.d.ts| 134|type有变化|类名:WearDetectionResponse;<br>方法or属性:value: number;<br>旧版本信息:|类名:WearDetectionResponse;<br>方法or属性:value: number;<br>新版本信息:number|@ohos.sensor.d.ts| 135|type有变化|类名:vibrator;<br>方法or属性:type VibrateEffect = VibrateTime \| VibratePreset \| VibrateFromFile;<br>旧版本信息:|类名:vibrator;<br>方法or属性:type VibrateEffect = VibrateTime \| VibratePreset \| VibrateFromFile;<br>新版本信息:VibrateTime \| VibratePreset \| VibrateFromFile|@ohos.vibrator.d.ts| 136|函数有变化|类名:vibrator;<br>方法or属性:type VibrateEffect = VibrateTime \| VibratePreset;|类名:vibrator;<br>方法or属性:type VibrateEffect = VibrateTime \| VibratePreset \| VibrateFromFile;|@ohos.vibrator.d.ts| 137