• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Distributed Hardware Subsystem
2
3The table below lists the APIs changes of the distributed hardware subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| ohos.distributedHardware.deviceManager | DeviceManager | off(type: 'publishFail', callback?: Callback<{ publishId: number, reason: number }>): void; | Added|
10| ohos.distributedHardware.deviceManager | DeviceManager | on(type: 'publishFail', callback: Callback<{ publishId: number, reason: number }>): void;   | Added|
11| ohos.distributedHardware.deviceManager | DeviceManager | off(type: 'publishSuccess', callback?: Callback<{ publishId: number }>): void;              | Added|
12| ohos.distributedHardware.deviceManager | DeviceManager | on(type: 'publishSuccess', callback: Callback<{ publishId: number }>): void;                | Added|
13| ohos.distributedHardware.deviceManager | DeviceManager | unPublishDeviceDiscovery(publishId: number): void;                                          | Added|
14| ohos.distributedHardware.deviceManager | DeviceManager | publishDeviceDiscovery(publishInfo: PublishInfo): void;                                     | Added|
15| ohos.distributedHardware.deviceManager | PublishInfo   | ranging : boolean;                                                                          | Added|
16| ohos.distributedHardware.deviceManager | PublishInfo   | freq: ExchangeFreq;                                                                         | Added|
17| ohos.distributedHardware.deviceManager | PublishInfo   | mode: DiscoverMode;                                                                         | Added|
18| ohos.distributedHardware.deviceManager | PublishInfo   | publishId: number;                                                                          | Added|
19| ohos.distributedHardware.deviceManager | DeviceInfo    | range: number;                                                                              | Added|
20