js-apidiff-sensor.md 718 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# JS API Changes of the Pan-Sensor Subsystem

The table below lists the APIs changes of the pan-sensor subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.

## API Changes

| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.vibrator | VibratePreset    | count: number;    | Added|
| ohos.vibrator | VibratePreset    | effectId: string; | Added|
| ohos.vibrator | VibratePreset    | type: "preset";   | Added|
| ohos.vibrator | VibrateTime      | duration: number; | Added|
| ohos.vibrator | VibrateTime      | type: "time";     | Added|
| ohos.vibrator | VibrateAttribute | usage: Usage,     | Added|
| ohos.vibrator | VibrateAttribute | id?: number,      | Added|