操作 旧版本 新版本 d.ts文件
新增错误码 类名:sensor;
API声明:function getSingleSensor(type: SensorId, callback: AsyncCallback<Sensor>): void;
差异内容:NA
类名:sensor;
API声明:function getSingleSensor(type: SensorId, callback: AsyncCallback<Sensor>): void;
差异内容:14500102
api/@ohos.sensor.d.ts
新增错误码 类名:sensor;
API声明:function getSingleSensor(type: SensorId): Promise<Sensor>;
差异内容:NA
类名:sensor;
API声明:function getSingleSensor(type: SensorId): Promise<Sensor>;
差异内容:14500102
api/@ohos.sensor.d.ts
属性变更 类名:VibratePreset;
API声明:count: number;
差异内容:count: number;
类名:VibratePreset;
API声明:count?: number;
差异内容:count?: number;
api/@ohos.vibrator.d.ts
新增API NA 类名:sensor;
API声明:function getSingleSensorSync(type: SensorId): Sensor;
差异内容:function getSingleSensorSync(type: SensorId): Sensor;
api/@ohos.sensor.d.ts
新增API NA 类名:sensor;
API声明:function getSensorListSync(): Array<Sensor>;
差异内容:function getSensorListSync(): Array<Sensor>;
api/@ohos.sensor.d.ts
新增API NA 类名:LightResponse;
API声明:colorTemperature?: number;
差异内容:colorTemperature?: number;
api/@ohos.sensor.d.ts
新增API NA 类名:LightResponse;
API声明:infraredLuminance?: number;
差异内容:infraredLuminance?: number;
api/@ohos.sensor.d.ts
新增API NA 类名:vibrator;
API声明:function stopVibrationSync(): void;
差异内容:function stopVibrationSync(): void;
api/@ohos.vibrator.d.ts
新增API NA 类名:vibrator;
API声明:function isSupportEffectSync(effectId: string): boolean;
差异内容:function isSupportEffectSync(effectId: string): boolean;
api/@ohos.vibrator.d.ts
新增API NA 类名:vibrator;
API声明:function isHdHapticSupported(): boolean;
差异内容:function isHdHapticSupported(): boolean;
api/@ohos.vibrator.d.ts
新增API NA 类名:vibrator;
API声明:enum HapticFeedback
差异内容:enum HapticFeedback
api/@ohos.vibrator.d.ts
新增API NA 类名:HapticFeedback;
API声明:EFFECT_SOFT = 'haptic.effect.soft'
差异内容:EFFECT_SOFT = 'haptic.effect.soft'
api/@ohos.vibrator.d.ts
新增API NA 类名:HapticFeedback;
API声明:EFFECT_HARD = 'haptic.effect.hard'
差异内容:EFFECT_HARD = 'haptic.effect.hard'
api/@ohos.vibrator.d.ts
新增API NA 类名:HapticFeedback;
API声明:EFFECT_SHARP = 'haptic.effect.sharp'
差异内容:EFFECT_SHARP = 'haptic.effect.sharp'
api/@ohos.vibrator.d.ts
新增API NA 类名:VibratePreset;
API声明:intensity?: number;
差异内容:intensity?: number;
api/@ohos.vibrator.d.ts