openharmony 鸿蒙 js-apidiff-SensorServiceKit

2026-08-25 浏览 (1)

Change TypeOld VersionNew Versiond.ts File
New error codeClass name: sensor;
API declaration: function getSingleSensor(type: SensorId, callback: AsyncCallback<Sensor>): void;
Differences: NA
Class name: sensor;
API declaration: function getSingleSensor(type: SensorId, callback: AsyncCallback<Sensor>): void;
Differences: 14500102
api/@ohos.sensor.d.ts
New error codeClass name: sensor;
API declaration: function getSingleSensor(type: SensorId): Promise<Sensor>;
Differences: NA
Class name: sensor;
API declaration: function getSingleSensor(type: SensorId): Promise<Sensor>;
Differences: 14500102
api/@ohos.sensor.d.ts
Property changeClass name: VibratePreset;
API declaration: count: number;
Differences: count: number;
Class name: VibratePreset;
API declaration: count?: number;
Differences: count?: number;
api/@ohos.vibrator.d.ts
New APINAClass name: sensor;
API declaration: function getSingleSensorSync(type: SensorId): Sensor;
Differences: function getSingleSensorSync(type: SensorId): Sensor;
api/@ohos.sensor.d.ts
New APINAClass name: sensor;
API declaration: function getSensorListSync(): Array<Sensor>;
Differences: function getSensorListSync(): Array<Sensor>;
api/@ohos.sensor.d.ts
New APINAClass name: LightResponse;
API declaration: colorTemperature?: number;
Differences: colorTemperature?: number;
api/@ohos.sensor.d.ts
New APINAClass name: LightResponse;
API declaration: infraredLuminance?: number;
Differences: infraredLuminance?: number;
api/@ohos.sensor.d.ts
New APINAClass name: vibrator;
API declaration: function stopVibrationSync(): void;
Differences: function stopVibrationSync(): void;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: function isSupportEffectSync(effectId: string): boolean;
Differences: function isSupportEffectSync(effectId: string): boolean;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: function isHdHapticSupported(): boolean;
Differences: function isHdHapticSupported(): boolean;
api/@ohos.vibrator.d.ts
New APINAClass name: vibrator;
API declaration: enum HapticFeedback
Differences: enum HapticFeedback
api/@ohos.vibrator.d.ts
New APINAClass name: HapticFeedback;
API declaration: EFFECT_SOFT = 'haptic.effect.soft'
Differences: EFFECT_SOFT = 'haptic.effect.soft'
api/@ohos.vibrator.d.ts
New APINAClass name: HapticFeedback;
API declaration: EFFECT_HARD = 'haptic.effect.hard'
Differences: EFFECT_HARD = 'haptic.effect.hard'
api/@ohos.vibrator.d.ts
New APINAClass name: HapticFeedback;
API declaration: EFFECT_SHARP = 'haptic.effect.sharp'
Differences: EFFECT_SHARP = 'haptic.effect.sharp'
api/@ohos.vibrator.d.ts
New APINAClass name: VibratePreset;
API declaration: intensity?: number;
Differences: intensity?: number;
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-ArkData

openharmony 鸿蒙 js-apidiff-NA

openharmony 鸿蒙 js-apidiff-IPCKit

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