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