openharmony 鸿蒙 js-apidiff-SensorServiceKit

2026-08-25 浏览 (1)

Change TypeOld VersionNew Versiond.ts File
Custom type changeClass name: vibrator;
API declaration: type VibrateEffect = VibrateTime |VibratePreset |VibrateFromFile;
DIfferences: VibrateTime |VibratePreset |VibrateFromFile
Class name: vibrator;
API declaration: type VibrateEffect = VibrateTime |VibratePreset |VibrateFromFile |VibrateFromPattern;
DIfferences: VibrateTime |VibratePreset |VibrateFromFile |VibrateFromPattern
api/@ohos.vibrator.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass 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;
api/@ohos.sensor.d.ts
New APINAClass name: Sensor;
API declaration: sensorIndex?: number;
DIfferences: sensorIndex?: number;
api/@ohos.sensor.d.ts
New APINAClass name: Sensor;
API declaration: deviceId?: number;
DIfferences: deviceId?: number;
api/@ohos.sensor.d.ts
New APINAClass name: Sensor;
API declaration: deviceName?: string;
DIfferences: deviceName?: string;
api/@ohos.sensor.d.ts
New APINAClass name: Sensor;
API declaration: isLocalSensor?: boolean;
DIfferences: isLocalSensor?: boolean;
api/@ohos.sensor.d.ts
New APINAClass name: sensor;
API declaration: function getSingleSensorByDeviceSync(type: SensorId, deviceId?: number): Array<Sensor>;
DIfferences: function getSingleSensorByDeviceSync(type: SensorId, deviceId?: number): Array<Sensor>;
api/@ohos.sensor.d.ts
New APINAClass name: sensor;
API declaration: function getSensorListByDeviceSync(deviceId?: number): Array<Sensor>;
DIfferences: function getSensorListByDeviceSync(deviceId?: number): Array<Sensor>;
api/@ohos.sensor.d.ts
New APINAClass name: Options;
API declaration: sensorInfoParam?: SensorInfoParam;
DIfferences: sensorInfoParam?: SensorInfoParam;
api/@ohos.sensor.d.ts
New APINAClass name: sensor;
API declaration: function on(type: 'sensorStatusChange', callback: Callback<SensorStatusEvent>): void;
DIfferences: function on(type: 'sensorStatusChange', callback: Callback<SensorStatusEvent>): void;
api/@ohos.sensor.d.ts
New APINAClass name: sensor;
API declaration: function off(type: 'sensorStatusChange', callback?: Callback<SensorStatusEvent>): void;
DIfferences: function off(type: 'sensorStatusChange', callback?: Callback<SensorStatusEvent>): void;
api/@ohos.sensor.d.ts
New APINAClass name: sensor;
API declaration: interface SensorStatusEvent
DIfferences: interface SensorStatusEvent
api/@ohos.sensor.d.ts
New APINAClass name: SensorStatusEvent;
API declaration: timestamp: number;
DIfferences: timestamp: number;
api/@ohos.sensor.d.ts
New APINAClass name: SensorStatusEvent;
API declaration: sensorId: number;
DIfferences: sensorId: number;
api/@ohos.sensor.d.ts
New APINAClass name: SensorStatusEvent;
API declaration: sensorIndex: number;
DIfferences: sensorIndex: number;
api/@ohos.sensor.d.ts
New APINAClass name: SensorStatusEvent;
API declaration: isSensorOnline: boolean;
DIfferences: isSensorOnline: boolean;
api/@ohos.sensor.d.ts
New APINAClass name: SensorStatusEvent;
API declaration: deviceId: number;
DIfferences: deviceId: number;
api/@ohos.sensor.d.ts
New APINAClass name: SensorStatusEvent;
API declaration: deviceName: string;
DIfferences: deviceName: string;
api/@ohos.sensor.d.ts
New APINAClass name: sensor;
API declaration: interface SensorInfoParam
DIfferences: interface SensorInfoParam
api/@ohos.sensor.d.ts
New APINAClass name: SensorInfoParam;
API declaration: deviceId?: number;
DIfferences: deviceId?: number;
api/@ohos.sensor.d.ts
New APINAClass name: SensorInfoParam;
API declaration: sensorIndex?: number;
DIfferences: sensorIndex?: number;
api/@ohos.sensor.d.ts
New APINAClass name: vibrator;
API declaration: function stopVibration(param?: VibratorInfoParam): Promise<void>;
DIfferences: function stopVibration(param?: VibratorInfoParam): Promise<void>;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: function getEffectInfoSync(effectId: string, param?: VibratorInfoParam): EffectInfo;
DIfferences: function getEffectInfoSync(effectId: string, param?: VibratorInfoParam): EffectInfo;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: interface EffectInfo
DIfferences: interface EffectInfo
api/@ohos.vibrator.d.ts
New APINAClass name: EffectInfo;
API declaration: isEffectSupported: boolean;
DIfferences: isEffectSupported: boolean;
api/@ohos.vibrator.d.ts
New APINAClass name: HapticFeedback;
API declaration: EFFECT_NOTICE_SUCCESS = 'haptic.notice.success'
DIfferences: EFFECT_NOTICE_SUCCESS = 'haptic.notice.success'
api/@ohos.vibrator.d.ts
New APINAClass name: HapticFeedback;
API declaration: EFFECT_NOTICE_FAILURE = 'haptic.notice.fail'
DIfferences: EFFECT_NOTICE_FAILURE = 'haptic.notice.fail'
api/@ohos.vibrator.d.ts
New APINAClass name: HapticFeedback;
API declaration: EFFECT_NOTICE_WARNING = 'haptic.notice.warning'
DIfferences: EFFECT_NOTICE_WARNING = 'haptic.notice.warning'
api/@ohos.vibrator.d.ts
New APINAClass name: VibrateAttribute;
API declaration: deviceId?: number;
DIfferences: deviceId?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: enum VibratorEventType
DIfferences: enum VibratorEventType
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorEventType;
API declaration: CONTINUOUS = 0
DIfferences: CONTINUOUS = 0
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorEventType;
API declaration: TRANSIENT = 1
DIfferences: TRANSIENT = 1
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: interface VibratorCurvePoint
DIfferences: interface VibratorCurvePoint
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorCurvePoint;
API declaration: time: number;
DIfferences: time: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorCurvePoint;
API declaration: intensity?: number;
DIfferences: intensity?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorCurvePoint;
API declaration: frequency?: number;
DIfferences: frequency?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: interface VibratorEvent
DIfferences: interface VibratorEvent
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorEvent;
API declaration: eventType: VibratorEventType;
DIfferences: eventType: VibratorEventType;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorEvent;
API declaration: time: number;
DIfferences: time: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorEvent;
API declaration: duration?: number;
DIfferences: duration?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorEvent;
API declaration: intensity?: number;
DIfferences: intensity?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorEvent;
API declaration: frequency?: number;
DIfferences: frequency?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorEvent;
API declaration: index?: number;
DIfferences: index?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorEvent;
API declaration: points?: Array<VibratorCurvePoint>;
DIfferences: points?: Array<VibratorCurvePoint>;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: interface VibratorPattern
DIfferences: interface VibratorPattern
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorPattern;
API declaration: time: number;
DIfferences: time: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorPattern;
API declaration: events: Array<VibratorEvent>;
DIfferences: events: Array<VibratorEvent>;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: interface ContinuousParam
DIfferences: interface ContinuousParam
api/@ohos.vibrator.d.ts
New APINAClass name: ContinuousParam;
API declaration: intensity?: number;
DIfferences: intensity?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: ContinuousParam;
API declaration: frequency?: number;
DIfferences: frequency?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: ContinuousParam;
API declaration: points?: VibratorCurvePoint[];
DIfferences: points?: VibratorCurvePoint[];
api/@ohos.vibrator.d.ts
New APINAClass name: ContinuousParam;
API declaration: index?: number;
DIfferences: index?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: interface TransientParam
DIfferences: interface TransientParam
api/@ohos.vibrator.d.ts
New APINAClass name: TransientParam;
API declaration: intensity?: number;
DIfferences: intensity?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: TransientParam;
API declaration: frequency?: number;
DIfferences: frequency?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: TransientParam;
API declaration: index?: number;
DIfferences: index?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: class VibratorPatternBuilder
DIfferences: class VibratorPatternBuilder
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorPatternBuilder;
API declaration: addContinuousEvent(time: number, duration: number, options?: ContinuousParam): VibratorPatternBuilder;
DIfferences: addContinuousEvent(time: number, duration: number, options?: ContinuousParam): VibratorPatternBuilder;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorPatternBuilder;
API declaration: addTransientEvent(time: number, options?: TransientParam): VibratorPatternBuilder;
DIfferences: addTransientEvent(time: number, options?: TransientParam): VibratorPatternBuilder;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorPatternBuilder;
API declaration: build(): VibratorPattern;
DIfferences: build(): VibratorPattern;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: interface VibrateFromPattern
DIfferences: interface VibrateFromPattern
api/@ohos.vibrator.d.ts
New APINAClass name: VibrateFromPattern;
API declaration: type: 'pattern';
DIfferences: type: 'pattern';
api/@ohos.vibrator.d.ts
New APINAClass name: VibrateFromPattern;
API declaration: pattern: VibratorPattern;
DIfferences: pattern: VibratorPattern;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: interface VibratorInfoParam
DIfferences: interface VibratorInfoParam
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorInfoParam;
API declaration: deviceId?: number;
DIfferences: deviceId?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorInfoParam;
API declaration: vibratorId?: number;
DIfferences: vibratorId?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: interface VibratorInfo
DIfferences: interface VibratorInfo
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorInfo;
API declaration: deviceId: number;
DIfferences: deviceId: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorInfo;
API declaration: vibratorId: number;
DIfferences: vibratorId: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorInfo;
API declaration: deviceName: string;
DIfferences: deviceName: string;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorInfo;
API declaration: isHdHapticSupported: boolean;
DIfferences: isHdHapticSupported: boolean;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorInfo;
API declaration: isLocalVibrator: boolean;
DIfferences: isLocalVibrator: boolean;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: function getVibratorInfoSync(param?: VibratorInfoParam): Array<VibratorInfo>;
DIfferences: function getVibratorInfoSync(param?: VibratorInfoParam): Array<VibratorInfo>;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: function on(type: 'vibratorStateChange', callback: Callback<VibratorStatusEvent>): void;
DIfferences: function on(type: 'vibratorStateChange', callback: Callback<VibratorStatusEvent>): void;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: function off(type: 'vibratorStateChange', callback?: Callback<VibratorStatusEvent>): void;
DIfferences: function off(type: 'vibratorStateChange', callback?: Callback<VibratorStatusEvent>): void;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: interface VibratorStatusEvent
DIfferences: interface VibratorStatusEvent
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorStatusEvent;
API declaration: timestamp: number;
DIfferences: timestamp: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorStatusEvent;
API declaration: deviceId: number;
DIfferences: deviceId: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorStatusEvent;
API declaration: vibratorCount: number;
DIfferences: vibratorCount: number;
api/@ohos.vibrator.d.ts
New APINAClass name: VibratorStatusEvent;
API declaration: isVibratorOnline: boolean;
DIfferences: isVibratorOnline: boolean;
api/@ohos.vibrator.d.ts

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 js-apidiff-ArkGraphics2D

openharmony 鸿蒙 js-apidiff-ArkGraphics3D

openharmony 鸿蒙 js-apidiff-MediaKit

openharmony 鸿蒙 js-apidiff-InputKit

openharmony 鸿蒙 js-apidiff-BasicServicesKit

openharmony 鸿蒙 js-apidiff-ConnectivityKit

openharmony 鸿蒙 js-apidiff-ArkWeb

openharmony 鸿蒙 js-apidiff-MultimodalAwarenessKit

openharmony 鸿蒙 js-apidiff-ArkData

openharmony 鸿蒙 js-apidiff-NA

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/g5XB0Jxl