| Change Type | Old Version | New Version | d.ts File |
|---|---|---|---|
| New API | NA | Class name: global; API declaration: declare namespace distributedDeviceManager Differences: declare namespace distributedDeviceManager | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: distributedDeviceManager; API declaration: interface DeviceBasicInfo Differences: interface DeviceBasicInfo | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceBasicInfo; API declaration: deviceId: string; Differences: deviceId: string; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceBasicInfo; API declaration: deviceName: string; Differences: deviceName: string; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceBasicInfo; API declaration: deviceType: string; Differences: deviceType: string; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceBasicInfo; API declaration: networkId?: string; Differences: networkId?: string; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: distributedDeviceManager; API declaration: enum DeviceStateChange Differences: enum DeviceStateChange | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceStateChange; API declaration: UNKNOWN = 0 Differences: UNKNOWN = 0 | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceStateChange; API declaration: AVAILABLE = 1 Differences: AVAILABLE = 1 | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceStateChange; API declaration: UNAVAILABLE = 2 Differences: UNAVAILABLE = 2 | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: distributedDeviceManager; API declaration: function createDeviceManager(bundleName: string): DeviceManager; Differences: function createDeviceManager(bundleName: string): DeviceManager; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: distributedDeviceManager; API declaration: function releaseDeviceManager(deviceManager: DeviceManager): void; Differences: function releaseDeviceManager(deviceManager: DeviceManager): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: distributedDeviceManager; API declaration: interface DeviceManager Differences: interface DeviceManager | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: getAvailableDeviceListSync(): Array<DeviceBasicInfo>; Differences: getAvailableDeviceListSync(): Array<DeviceBasicInfo>; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: getAvailableDeviceList(callback: AsyncCallback<Array<DeviceBasicInfo>>): void; Differences: getAvailableDeviceList(callback: AsyncCallback<Array<DeviceBasicInfo>>): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: getAvailableDeviceList(): Promise<Array<DeviceBasicInfo>>; Differences: getAvailableDeviceList(): Promise<Array<DeviceBasicInfo>>; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: getLocalDeviceNetworkId(): string; Differences: getLocalDeviceNetworkId(): string; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: getLocalDeviceName(): string; Differences: getLocalDeviceName(): string; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: getLocalDeviceType(): number; Differences: getLocalDeviceType(): number; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: getLocalDeviceId(): string; Differences: getLocalDeviceId(): string; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: getDeviceName(networkId: string): string; Differences: getDeviceName(networkId: string): string; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: getDeviceType(networkId: string): number; Differences: getDeviceType(networkId: string): number; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: startDiscovering(discoverParam: { [key: string]: Object; }, filterOptions?: { [key: string]: Object; }): void; Differences: startDiscovering(discoverParam: { [key: string]: Object; }, filterOptions?: { [key: string]: Object; }): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: stopDiscovering(): void; Differences: stopDiscovering(): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: bindTarget(deviceId: string, bindParam: { [key: string]: Object; }, callback: AsyncCallback<{ deviceId: string; }>): void; Differences: bindTarget(deviceId: string, bindParam: { [key: string]: Object; }, callback: AsyncCallback<{ deviceId: string; }>): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: unbindTarget(deviceId: string): void; Differences: unbindTarget(deviceId: string): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: on(type: 'deviceStateChange', callback: Callback<{ action: DeviceStateChange; device: DeviceBasicInfo; }>): void; Differences: on(type: 'deviceStateChange', callback: Callback<{ action: DeviceStateChange; device: DeviceBasicInfo; }>): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: off(type: 'deviceStateChange', callback?: Callback<{ action: DeviceStateChange; device: DeviceBasicInfo; }>): void; Differences: off(type: 'deviceStateChange', callback?: Callback<{ action: DeviceStateChange; device: DeviceBasicInfo; }>): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: on(type: 'discoverSuccess', callback: Callback<{ device: DeviceBasicInfo; }>): void; Differences: on(type: 'discoverSuccess', callback: Callback<{ device: DeviceBasicInfo; }>): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: off(type: 'discoverSuccess', callback?: Callback<{ device: DeviceBasicInfo; }>): void; Differences: off(type: 'discoverSuccess', callback?: Callback<{ device: DeviceBasicInfo; }>): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: on(type: 'deviceNameChange', callback: Callback<{ deviceName: string; }>): void; Differences: on(type: 'deviceNameChange', callback: Callback<{ deviceName: string; }>): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: off(type: 'deviceNameChange', callback?: Callback<{ deviceName: string; }>): void; Differences: off(type: 'deviceNameChange', callback?: Callback<{ deviceName: string; }>): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: on(type: 'discoverFailure', callback: Callback<{ reason: number; }>): void; Differences: on(type: 'discoverFailure', callback: Callback<{ reason: number; }>): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: off(type: 'discoverFailure', callback?: Callback<{ reason: number; }>): void; Differences: off(type: 'discoverFailure', callback?: Callback<{ reason: number; }>): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: on(type: 'serviceDie', callback?: Callback<{}>): void; Differences: on(type: 'serviceDie', callback?: Callback<{}>): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: DeviceManager; API declaration: off(type: 'serviceDie', callback?: Callback<{}>): void; Differences: off(type: 'serviceDie', callback?: Callback<{}>): void; | api/@ohos.distributedDeviceManager.d.ts |
| New API | NA | Class name: global; API declaration: declare namespace deviceManager Differences: declare namespace deviceManager | api/@ohos.distributedHardware.deviceManager.d.ts |
| New API | NA | Class name: deviceManager; API declaration: interface DeviceManager Differences: interface DeviceManager | api/@ohos.distributedHardware.deviceManager.d.ts |
| New Kit | Class name: global; API declaration: Differences: NA | Class name: global; API declaration: api@ohos.distributedDeviceManager.d.ts Differences: DistributedServiceKit | api/@ohos.distributedDeviceManager.d.ts |
| New Kit | Class name: global; API declaration: Differences: NA | Class name: global; API declaration: api@ohos.distributedHardware.deviceManager.d.ts Differences: DistributedServiceKit | api/@ohos.distributedHardware.deviceManager.d.ts |
| New Kit | Class name: global; API declaration: Differences: NA | Class name: global; API declaration: kits@kit.DistributedServiceKit.d.ts Differences: DistributedServiceKit | kits/@kit.DistributedServiceKit.d.ts |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 js-apidiff-ArkGraphics2D
openharmony 鸿蒙 js-apidiff-MediaKit
openharmony 鸿蒙 js-apidiff-InputKit
openharmony 鸿蒙 js-apidiff-BasicServicesKit
openharmony 鸿蒙 js-apidiff-ConnectivityKit
openharmony 鸿蒙 js-apidiff-ArkWeb
openharmony 鸿蒙 js-apidiff-MultimodalAwarenessKit