diff --git a/api/@ohos.distributedHardware.hardwareManager.d.ts b/api/@ohos.distributedHardware.hardwareManager.d.ts index 7e9c9da0a82d388bf0b58c0fc19b4155d3f6a9f1..6e4c69db60ec6e6c984833dbe31bcc3696acb121 100644 --- a/api/@ohos.distributedHardware.hardwareManager.d.ts +++ b/api/@ohos.distributedHardware.hardwareManager.d.ts @@ -25,7 +25,8 @@ import type { AsyncCallback, Callback } from './@ohos.base'; * @namespace hardwareManager * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare namespace hardwareManager { /** @@ -33,56 +34,64 @@ declare namespace hardwareManager { * @enum {number} * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ enum DistributedHardwareType { /** * Indicates all hardware * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ ALL = 0, /** * Distributed camera * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ CAMERA = 1, /** * Distributed screen * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ SCREEN = 8, /** * Mic of distributed modem * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ MODEM_MIC = 256, /** * Speaker of distributed modem * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ MODEM_SPEAKER = 512, /** * Distributed mic * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ MIC = 1024, /** * Distributed speaker * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ SPEAKER = 2048 } @@ -92,14 +101,16 @@ declare namespace hardwareManager { * @enum {number} * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ enum DistributedHardwareErrorCode { /** * The distributed hardware is not started. * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ ERR_CODE_DISTRIBUTED_HARDWARE_NOT_STARTED = 24200101, @@ -107,7 +118,8 @@ declare namespace hardwareManager { * The source device is not connected. * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ ERR_CODE_DEVICE_NOT_CONNECTED = 24200102 } @@ -117,7 +129,8 @@ declare namespace hardwareManager { * @typedef HardwareDescriptor * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ interface HardwareDescriptor { /** @@ -126,7 +139,8 @@ declare namespace hardwareManager { * @type {DistributedHardwareType} * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ type: DistributedHardwareType; @@ -136,7 +150,8 @@ declare namespace hardwareManager { * @type {?string} * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ srcNetworkId?: string; } @@ -153,7 +168,8 @@ declare namespace hardwareManager { * @throws {BusinessError} 24200102 - The specified source device is not connected. * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function pauseDistributedHardware(description: HardwareDescriptor): Promise; @@ -169,7 +185,8 @@ declare namespace hardwareManager { * @throws {BusinessError} 24200102 - The specified source device is not connected. * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function resumeDistributedHardware(description: HardwareDescriptor): Promise; @@ -185,7 +202,8 @@ declare namespace hardwareManager { * @throws {BusinessError} 24200102 - The specified source device is not connected. * @syscap SystemCapability.DistributedHardware.DistributedHardwareFWK * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ function stopDistributedHardware(description: HardwareDescriptor): Promise; }