| 操作 | 旧版本 | 新版本 | d.ts文件 |
| ---- | ------ | ------ | -------- |
|新增|NA|类名:sensor;
方法or属性:function on(type: SensorId.COLOR, callback: Callback\, options?: Options): void;|@ohos.sensor.d.ts|
|新增|NA|类名:sensor;
方法or属性:function on(type: SensorId.SAR, callback: Callback\, options?: Options): void;|@ohos.sensor.d.ts|
|新增|NA|类名:sensor;
方法or属性:function off(type: SensorId.COLOR, callback?: Callback\): void;|@ohos.sensor.d.ts|
|新增|NA|类名:sensor;
方法or属性:function off(type: SensorId.SAR, callback?: Callback\): void;|@ohos.sensor.d.ts|
|新增|NA|类名:SensorId;
方法or属性:COLOR = 14|@ohos.sensor.d.ts|
|新增|NA|类名:SensorId;
方法or属性:SAR = 15|@ohos.sensor.d.ts|
|新增|NA|类名:ColorResponse;
方法or属性:lightIntensity: number;|@ohos.sensor.d.ts|
|新增|NA|类名:ColorResponse;
方法or属性:colorTemperature: number;|@ohos.sensor.d.ts|
|新增|NA|类名:SarResponse;
方法or属性:absorptionRatio: number;|@ohos.sensor.d.ts|
|新增|NA|类名:vibrator;
方法or属性:function stopVibration(callback: AsyncCallback\): void;|@ohos.vibrator.d.ts|
|新增|NA|类名:vibrator;
方法or属性:function stopVibration(): Promise\;|@ohos.vibrator.d.ts|
|新增|NA|类名:vibrator;
方法or属性:function isSupportEffect(effectId: string, callback: AsyncCallback\): void;|@ohos.vibrator.d.ts|
|新增|NA|类名:vibrator;
方法or属性:function isSupportEffect(effectId: string): Promise\;|@ohos.vibrator.d.ts|
|新增|NA|类名:HapticFileDescriptor;
方法or属性:fd: number;|@ohos.vibrator.d.ts|
|新增|NA|类名:HapticFileDescriptor;
方法or属性:offset?: number;|@ohos.vibrator.d.ts|
|新增|NA|类名:HapticFileDescriptor;
方法or属性:length?: number;|@ohos.vibrator.d.ts|
|废弃版本有变化|类名:sensor;
方法or属性:function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise\;
旧版本信息:|类名:sensor;
方法or属性:function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise\;
新版本信息:9
代替接口: sensor#getGeomagneticInfo|@ohos.sensor.d.ts|
|废弃版本有变化|类名:sensor;
方法or属性:function getAltitude(seaPressure: number, currentPressure: number): Promise\;
旧版本信息:|类名:sensor;
方法or属性:function getAltitude(seaPressure: number, currentPressure: number): Promise\;
新版本信息:9
代替接口: sensor#getDeviceAltitude|@ohos.sensor.d.ts|
|废弃版本有变化|类名:sensor;
方法or属性:function getGeomagneticDip(inclinationMatrix: Array\): Promise\;
旧版本信息:|类名:sensor;
方法or属性:function getGeomagneticDip(inclinationMatrix: Array\): Promise\;
新版本信息:9
代替接口: sensor#getInclination|@ohos.sensor.d.ts|
|废弃版本有变化|类名:sensor;
方法or属性:function getAngleModify(currentRotationMatrix: Array\, preRotationMatrix: Array\): Promise\>;
旧版本信息:|类名:sensor;
方法or属性:function getAngleModify(currentRotationMatrix: Array\, preRotationMatrix: Array\): Promise\>;
新版本信息:9
代替接口: sensor#getAngleVariation|@ohos.sensor.d.ts|
|废弃版本有变化|类名:sensor;
方法or属性:function createRotationMatrix(rotationVector: Array\): Promise\>;
旧版本信息:|类名:sensor;
方法or属性:function createRotationMatrix(rotationVector: Array\): Promise\>;
新版本信息:9
代替接口: sensor#getRotationMatrix|@ohos.sensor.d.ts|
|废弃版本有变化|类名:sensor;
方法or属性:function createRotationMatrix(gravity: Array\, geomagnetic: Array\,): Promise\;
旧版本信息:|类名:sensor;
方法or属性:function createRotationMatrix(gravity: Array\, geomagnetic: Array\,): Promise\;
新版本信息:9
代替接口: sensor#getRotationMatrix|@ohos.sensor.d.ts|
|废弃版本有变化|类名:sensor;
方法or属性:function transformCoordinateSystem(inRotationVector: Array\, coordinates: CoordinatesOptions): Promise\>;
旧版本信息:|类名:sensor;
方法or属性:function transformCoordinateSystem(inRotationVector: Array\, coordinates: CoordinatesOptions): Promise\>;
新版本信息:9
代替接口: sensor#transformRotationMatrix|@ohos.sensor.d.ts|
|废弃版本有变化|类名:sensor;
方法or属性:function createQuaternion(rotationVector: Array\): Promise\>;
旧版本信息:|类名:sensor;
方法or属性:function createQuaternion(rotationVector: Array\): Promise\>;
新版本信息:9
代替接口: sensor#getQuaternion|@ohos.sensor.d.ts|
|废弃版本有变化|类名:sensor;
方法or属性:function getDirection(rotationMatrix: Array\): Promise\>;
旧版本信息:|类名:sensor;
方法or属性:function getDirection(rotationMatrix: Array\): Promise\>;
新版本信息:9
代替接口: sensor#getOrientation|@ohos.sensor.d.ts|
|废弃版本有变化|类名:vibrator;
方法or属性:function vibrate(duration: number): Promise\;
旧版本信息:|类名:vibrator;
方法or属性:function vibrate(duration: number): Promise\;
新版本信息:9
代替接口: vibrator#startVibration|@ohos.vibrator.d.ts|
|废弃版本有变化|类名:vibrator;
方法or属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\): void;
旧版本信息:|类名:vibrator;
方法or属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\): void;
新版本信息:9
代替接口: vibrator#startVibration|@ohos.vibrator.d.ts|
|废弃版本有变化|类名:vibrator;
方法or属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\): void;
旧版本信息:|类名:vibrator;
方法or属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\): void;
新版本信息:9
代替接口: vibrator#stopVibration|@ohos.vibrator.d.ts|
|错误码有变化|类名:vibrator;
方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute, callback: AsyncCallback\): void;
旧版本信息:201,401,14600101|类名:vibrator;
方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute, callback: AsyncCallback\): void;
新版本信息:201,401,801,14600101|@ohos.vibrator.d.ts|
|错误码有变化|类名:vibrator;
方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute): Promise\;
旧版本信息:201,401,14600101|类名:vibrator;
方法or属性:function startVibration(effect: VibrateEffect, attribute: VibrateAttribute): Promise\;
新版本信息:201,401,801,14600101|@ohos.vibrator.d.ts|
|权限有变化|类名:vibrator;
方法or属性:function vibrate(duration: number): Promise\;
旧版本信息:|类名:vibrator;
方法or属性:function vibrate(duration: number): Promise\;
新版本信息:ohos.permission.VIBRATE|@ohos.vibrator.d.ts|
|权限有变化|类名:vibrator;
方法or属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\): void;
旧版本信息:|类名:vibrator;
方法or属性:function vibrate(effectId: EffectId, callback?: AsyncCallback\): void;
新版本信息:ohos.permission.VIBRATE|@ohos.vibrator.d.ts|
|权限有变化|类名:vibrator;
方法or属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\): void;
旧版本信息:|类名:vibrator;
方法or属性:function stop(stopMode: VibratorStopMode, callback?: AsyncCallback\): void;
新版本信息:ohos.permission.VIBRATE|@ohos.vibrator.d.ts|
|权限有变化|类名:AccelerometerResponse;
方法or属性:x: number;
旧版本信息:|类名:AccelerometerResponse;
方法or属性:x: number;
新版本信息:ohos.permission.ACCELEROMETER|@system.sensor.d.ts|
|权限有变化|类名:GyroscopeResponse;
方法or属性:x: number;
旧版本信息:|类名:GyroscopeResponse;
方法or属性:x: number;
新版本信息:ohos.permission.GYROSCOPE|@system.sensor.d.ts|
|权限有变化|类名:AccelerometerResponse;
方法or属性:y: number;
旧版本信息:|类名:AccelerometerResponse;
方法or属性:y: number;
新版本信息:ohos.permission.ACCELEROMETER|@system.sensor.d.ts|
|权限有变化|类名:GyroscopeResponse;
方法or属性:y: number;
旧版本信息:|类名:GyroscopeResponse;
方法or属性:y: number;
新版本信息:ohos.permission.GYROSCOPE|@system.sensor.d.ts|
|权限有变化|类名:AccelerometerResponse;
方法or属性:z: number;
旧版本信息:|类名:AccelerometerResponse;
方法or属性:z: number;
新版本信息:ohos.permission.ACCELEROMETER|@system.sensor.d.ts|
|权限有变化|类名:GyroscopeResponse;
方法or属性:z: number;
旧版本信息:|类名:GyroscopeResponse;
方法or属性:z: number;
新版本信息:ohos.permission.GYROSCOPE|@system.sensor.d.ts|
|权限有变化|类名:subscribeAccelerometerOptions;
方法or属性:interval: string;
旧版本信息:|类名:subscribeAccelerometerOptions;
方法or属性:interval: string;
新版本信息:ohos.permission.ACCELEROMETER|@system.sensor.d.ts|
|权限有变化|类名:SubscribeGyroscopeOptions;
方法or属性:interval: string;
旧版本信息:|类名:SubscribeGyroscopeOptions;
方法or属性:interval: string;
新版本信息:ohos.permission.GYROSCOPE|@system.sensor.d.ts|
|权限有变化|类名:subscribeAccelerometerOptions;
方法or属性:success: (data: AccelerometerResponse) => void;
旧版本信息:|类名:subscribeAccelerometerOptions;
方法or属性:success: (data: AccelerometerResponse) => void;
新版本信息:ohos.permission.ACCELEROMETER|@system.sensor.d.ts|
|权限有变化|类名:subscribeAccelerometerOptions;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:|类名:subscribeAccelerometerOptions;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:ohos.permission.ACCELEROMETER|@system.sensor.d.ts|
|权限有变化|类名:SubscribeStepCounterOptions;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:|类名:SubscribeStepCounterOptions;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:ohos.permission.ACTIVITY_MOTION|@system.sensor.d.ts|
|权限有变化|类名:SubscribeHeartRateOptions;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:|类名:SubscribeHeartRateOptions;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:ohos.permission.READ_HEALTH_DATA|@system.sensor.d.ts|
|权限有变化|类名:SubscribeGyroscopeOptions;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:|类名:SubscribeGyroscopeOptions;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:ohos.permission.GYROSCOPE|@system.sensor.d.ts|
|权限有变化|类名:StepCounterResponse;
方法or属性:steps: number;
旧版本信息:|类名:StepCounterResponse;
方法or属性:steps: number;
新版本信息:ohos.permission.ACTIVITY_MOTION|@system.sensor.d.ts|
|权限有变化|类名:SubscribeStepCounterOptions;
方法or属性:success: (data: StepCounterResponse) => void;
旧版本信息:|类名:SubscribeStepCounterOptions;
方法or属性:success: (data: StepCounterResponse) => void;
新版本信息:ohos.permission.ACTIVITY_MOTION|@system.sensor.d.ts|
|权限有变化|类名:HeartRateResponse;
方法or属性:heartRate: number;
旧版本信息:|类名:HeartRateResponse;
方法or属性:heartRate: number;
新版本信息:ohos.permission.READ_HEALTH_DATA|@system.sensor.d.ts|
|权限有变化|类名:SubscribeHeartRateOptions;
方法or属性:success: (data: HeartRateResponse) => void;
旧版本信息:|类名:SubscribeHeartRateOptions;
方法or属性:success: (data: HeartRateResponse) => void;
新版本信息:ohos.permission.READ_HEALTH_DATA|@system.sensor.d.ts|
|权限有变化|类名:SubscribeGyroscopeOptions;
方法or属性:success: (data: GyroscopeResponse) => void;
旧版本信息:|类名:SubscribeGyroscopeOptions;
方法or属性:success: (data: GyroscopeResponse) => void;
新版本信息:ohos.permission.GYROSCOPE|@system.sensor.d.ts|
|权限有变化|类名:VibrateOptions;
方法or属性:mode?: 'long' \| 'short';
旧版本信息:|类名:VibrateOptions;
方法or属性:mode?: 'long' \| 'short';
新版本信息:ohos.permission.VIBRATE|@system.vibrator.d.ts|
|权限有变化|类名:VibrateOptions;
方法or属性:success: () => void;
旧版本信息:|类名:VibrateOptions;
方法or属性:success: () => void;
新版本信息:ohos.permission.VIBRATE|@system.vibrator.d.ts|
|权限有变化|类名:VibrateOptions;
方法or属性:fail?: (data: string, code: number) => void;
旧版本信息:|类名:VibrateOptions;
方法or属性:fail?: (data: string, code: number) => void;
新版本信息:ohos.permission.VIBRATE|@system.vibrator.d.ts|
|权限有变化|类名:VibrateOptions;
方法or属性:complete?: () => void;
旧版本信息:|类名:VibrateOptions;
方法or属性:complete?: () => void;
新版本信息:ohos.permission.VIBRATE|@system.vibrator.d.ts|
|type有变化|类名:Sensor;
方法or属性:sensorName:string;
旧版本信息:|类名:Sensor;
方法or属性:sensorName:string;
新版本信息:string|@ohos.sensor.d.ts|
|type有变化|类名:Sensor;
方法or属性:vendorName:string;
旧版本信息:|类名:Sensor;
方法or属性:vendorName:string;
新版本信息:string|@ohos.sensor.d.ts|
|type有变化|类名:Sensor;
方法or属性:firmwareVersion:string;
旧版本信息:|类名:Sensor;
方法or属性:firmwareVersion:string;
新版本信息:string|@ohos.sensor.d.ts|
|type有变化|类名:Sensor;
方法or属性:hardwareVersion:string;
旧版本信息:|类名:Sensor;
方法or属性:hardwareVersion:string;
新版本信息:string|@ohos.sensor.d.ts|
|type有变化|类名:Sensor;
方法or属性:sensorId:number;
旧版本信息:|类名:Sensor;
方法or属性:sensorId:number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:Sensor;
方法or属性:maxRange:number;
旧版本信息:|类名:Sensor;
方法or属性:maxRange:number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:Sensor;
方法or属性:minSamplePeriod:number;
旧版本信息:|类名:Sensor;
方法or属性:minSamplePeriod:number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:Sensor;
方法or属性:maxSamplePeriod:number;
旧版本信息:|类名:Sensor;
方法or属性:maxSamplePeriod:number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:Sensor;
方法or属性:precision:number;
旧版本信息:|类名:Sensor;
方法or属性:precision:number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:Sensor;
方法or属性:power:number;
旧版本信息:|类名:Sensor;
方法or属性:power:number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GeomagneticResponse;
方法or属性:x: number;
旧版本信息:|类名:GeomagneticResponse;
方法or属性:x: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:CoordinatesOptions;
方法or属性:x: number;
旧版本信息:|类名:CoordinatesOptions;
方法or属性:x: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:AccelerometerResponse;
方法or属性:x: number;
旧版本信息:|类名:AccelerometerResponse;
方法or属性:x: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:LinearAccelerometerResponse;
方法or属性:x: number;
旧版本信息:|类名:LinearAccelerometerResponse;
方法or属性:x: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:AccelerometerUncalibratedResponse;
方法or属性:x: number;
旧版本信息:|类名:AccelerometerUncalibratedResponse;
方法or属性:x: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GravityResponse;
方法or属性:x: number;
旧版本信息:|类名:GravityResponse;
方法or属性:x: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:RotationVectorResponse;
方法or属性:x: number;
旧版本信息:|类名:RotationVectorResponse;
方法or属性:x: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GyroscopeResponse;
方法or属性:x: number;
旧版本信息:|类名:GyroscopeResponse;
方法or属性:x: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GyroscopeUncalibratedResponse;
方法or属性:x: number;
旧版本信息:|类名:GyroscopeUncalibratedResponse;
方法or属性:x: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:MagneticFieldResponse;
方法or属性:x: number;
旧版本信息:|类名:MagneticFieldResponse;
方法or属性:x: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:MagneticFieldUncalibratedResponse;
方法or属性:x: number;
旧版本信息:|类名:MagneticFieldUncalibratedResponse;
方法or属性:x: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GeomagneticResponse;
方法or属性:y: number;
旧版本信息:|类名:GeomagneticResponse;
方法or属性:y: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:CoordinatesOptions;
方法or属性:y: number;
旧版本信息:|类名:CoordinatesOptions;
方法or属性:y: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:AccelerometerResponse;
方法or属性:y: number;
旧版本信息:|类名:AccelerometerResponse;
方法or属性:y: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:LinearAccelerometerResponse;
方法or属性:y: number;
旧版本信息:|类名:LinearAccelerometerResponse;
方法or属性:y: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:AccelerometerUncalibratedResponse;
方法or属性:y: number;
旧版本信息:|类名:AccelerometerUncalibratedResponse;
方法or属性:y: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GravityResponse;
方法or属性:y: number;
旧版本信息:|类名:GravityResponse;
方法or属性:y: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:RotationVectorResponse;
方法or属性:y: number;
旧版本信息:|类名:RotationVectorResponse;
方法or属性:y: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GyroscopeResponse;
方法or属性:y: number;
旧版本信息:|类名:GyroscopeResponse;
方法or属性:y: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GyroscopeUncalibratedResponse;
方法or属性:y: number;
旧版本信息:|类名:GyroscopeUncalibratedResponse;
方法or属性:y: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:MagneticFieldResponse;
方法or属性:y: number;
旧版本信息:|类名:MagneticFieldResponse;
方法or属性:y: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:MagneticFieldUncalibratedResponse;
方法or属性:y: number;
旧版本信息:|类名:MagneticFieldUncalibratedResponse;
方法or属性:y: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GeomagneticResponse;
方法or属性:z: number;
旧版本信息:|类名:GeomagneticResponse;
方法or属性:z: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:AccelerometerResponse;
方法or属性:z: number;
旧版本信息:|类名:AccelerometerResponse;
方法or属性:z: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:LinearAccelerometerResponse;
方法or属性:z: number;
旧版本信息:|类名:LinearAccelerometerResponse;
方法or属性:z: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:AccelerometerUncalibratedResponse;
方法or属性:z: number;
旧版本信息:|类名:AccelerometerUncalibratedResponse;
方法or属性:z: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GravityResponse;
方法or属性:z: number;
旧版本信息:|类名:GravityResponse;
方法or属性:z: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:RotationVectorResponse;
方法or属性:z: number;
旧版本信息:|类名:RotationVectorResponse;
方法or属性:z: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GyroscopeResponse;
方法or属性:z: number;
旧版本信息:|类名:GyroscopeResponse;
方法or属性:z: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GyroscopeUncalibratedResponse;
方法or属性:z: number;
旧版本信息:|类名:GyroscopeUncalibratedResponse;
方法or属性:z: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:MagneticFieldResponse;
方法or属性:z: number;
旧版本信息:|类名:MagneticFieldResponse;
方法or属性:z: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:MagneticFieldUncalibratedResponse;
方法or属性:z: number;
旧版本信息:|类名:MagneticFieldUncalibratedResponse;
方法or属性:z: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GeomagneticResponse;
方法or属性:geomagneticDip: number;
旧版本信息:|类名:GeomagneticResponse;
方法or属性:geomagneticDip: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GeomagneticResponse;
方法or属性:deflectionAngle: number;
旧版本信息:|类名:GeomagneticResponse;
方法or属性:deflectionAngle: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GeomagneticResponse;
方法or属性:levelIntensity: number;
旧版本信息:|类名:GeomagneticResponse;
方法or属性:levelIntensity: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GeomagneticResponse;
方法or属性:totalIntensity: number;
旧版本信息:|类名:GeomagneticResponse;
方法or属性:totalIntensity: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:LocationOptions;
方法or属性:latitude: number;
旧版本信息:|类名:LocationOptions;
方法or属性:latitude: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:LocationOptions;
方法or属性:longitude: number;
旧版本信息:|类名:LocationOptions;
方法or属性:longitude: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:LocationOptions;
方法or属性:altitude: number;
旧版本信息:|类名:LocationOptions;
方法or属性:altitude: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:RotationMatrixResponse;
方法or属性:rotation: Array\;
旧版本信息:|类名:RotationMatrixResponse;
方法or属性:rotation: Array\;
新版本信息:Array\|@ohos.sensor.d.ts|
|type有变化|类名:RotationMatrixResponse;
方法or属性:inclination: Array\
旧版本信息:|类名:RotationMatrixResponse;
方法or属性:inclination: Array\
新版本信息:Array\|@ohos.sensor.d.ts|
|type有变化|类名:Options;
方法or属性:interval?: number;
旧版本信息:|类名:Options;
方法or属性:interval?: number;
新版本信息:?number|@ohos.sensor.d.ts|
|type有变化|类名:Response;
方法or属性:timestamp: number;
旧版本信息:|类名:Response;
方法or属性:timestamp: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:AccelerometerUncalibratedResponse;
方法or属性:biasX: number;
旧版本信息:|类名:AccelerometerUncalibratedResponse;
方法or属性:biasX: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GyroscopeUncalibratedResponse;
方法or属性:biasX: number;
旧版本信息:|类名:GyroscopeUncalibratedResponse;
方法or属性:biasX: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:MagneticFieldUncalibratedResponse;
方法or属性:biasX: number;
旧版本信息:|类名:MagneticFieldUncalibratedResponse;
方法or属性:biasX: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:AccelerometerUncalibratedResponse;
方法or属性:biasY: number;
旧版本信息:|类名:AccelerometerUncalibratedResponse;
方法or属性:biasY: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GyroscopeUncalibratedResponse;
方法or属性:biasY: number;
旧版本信息:|类名:GyroscopeUncalibratedResponse;
方法or属性:biasY: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:MagneticFieldUncalibratedResponse;
方法or属性:biasY: number;
旧版本信息:|类名:MagneticFieldUncalibratedResponse;
方法or属性:biasY: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:AccelerometerUncalibratedResponse;
方法or属性:biasZ: number;
旧版本信息:|类名:AccelerometerUncalibratedResponse;
方法or属性:biasZ: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:GyroscopeUncalibratedResponse;
方法or属性:biasZ: number;
旧版本信息:|类名:GyroscopeUncalibratedResponse;
方法or属性:biasZ: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:MagneticFieldUncalibratedResponse;
方法or属性:biasZ: number;
旧版本信息:|类名:MagneticFieldUncalibratedResponse;
方法or属性:biasZ: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:OrientationResponse;
方法or属性:alpha: number;
旧版本信息:|类名:OrientationResponse;
方法or属性:alpha: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:OrientationResponse;
方法or属性:beta: number;
旧版本信息:|类名:OrientationResponse;
方法or属性:beta: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:OrientationResponse;
方法or属性:gamma: number;
旧版本信息:|类名:OrientationResponse;
方法or属性:gamma: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:RotationVectorResponse;
方法or属性:w: number;
旧版本信息:|类名:RotationVectorResponse;
方法or属性:w: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:SignificantMotionResponse;
方法or属性:scalar: number;
旧版本信息:|类名:SignificantMotionResponse;
方法or属性:scalar: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:PedometerDetectionResponse;
方法or属性:scalar: number;
旧版本信息:|类名:PedometerDetectionResponse;
方法or属性:scalar: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:ProximityResponse;
方法or属性:distance: number;
旧版本信息:|类名:ProximityResponse;
方法or属性:distance: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:LightResponse;
方法or属性:intensity: number;
旧版本信息:|类名:LightResponse;
方法or属性:intensity: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:HallResponse;
方法or属性:status: number;
旧版本信息:|类名:HallResponse;
方法or属性:status: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:PedometerResponse;
方法or属性:steps: number;
旧版本信息:|类名:PedometerResponse;
方法or属性:steps: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:HumidityResponse;
方法or属性:humidity: number;
旧版本信息:|类名:HumidityResponse;
方法or属性:humidity: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:AmbientTemperatureResponse;
方法or属性:temperature: number;
旧版本信息:|类名:AmbientTemperatureResponse;
方法or属性:temperature: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:BarometerResponse;
方法or属性:pressure: number;
旧版本信息:|类名:BarometerResponse;
方法or属性:pressure: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:HeartRateResponse;
方法or属性:heartRate: number;
旧版本信息:|类名:HeartRateResponse;
方法or属性:heartRate: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:WearDetectionResponse;
方法or属性:value: number;
旧版本信息:|类名:WearDetectionResponse;
方法or属性:value: number;
新版本信息:number|@ohos.sensor.d.ts|
|type有变化|类名:vibrator;
方法or属性:type VibrateEffect = VibrateTime \| VibratePreset \| VibrateFromFile;
旧版本信息:|类名:vibrator;
方法or属性:type VibrateEffect = VibrateTime \| VibratePreset \| VibrateFromFile;
新版本信息:VibrateTime \| VibratePreset \| VibrateFromFile|@ohos.vibrator.d.ts|
|函数有变化|类名:vibrator;
方法or属性:type VibrateEffect = VibrateTime \| VibratePreset;|类名:vibrator;
方法or属性:type VibrateEffect = VibrateTime \| VibratePreset \| VibrateFromFile;|@ohos.vibrator.d.ts|