diff --git a/api/@ohos.deviceStatus.dragInteraction.d.ts b/api/@ohos.deviceStatus.dragInteraction.d.ts index 9793b2cfb89af5f7e8dcd33d1cb8a8a365d05c17..619ded318ac7eb25c43b349ffad565233bdcda76 100644 --- a/api/@ohos.deviceStatus.dragInteraction.d.ts +++ b/api/@ohos.deviceStatus.dragInteraction.d.ts @@ -178,6 +178,7 @@ declare namespace dragInteraction { * @syscap SystemCapability.Msdp.DeviceStatus.Drag * @systemapi Hide this for inner system use. * @since 18 dynamic + * @since 20 static */ function setDragSwitchState(enabled: boolean): void; @@ -192,6 +193,7 @@ declare namespace dragInteraction { * @syscap SystemCapability.Msdp.DeviceStatus.Drag * @systemapi Hide this for inner system use. * @since 18 dynamic + * @since 20 static */ function setAppDragSwitchState(enabled: boolean, bundleName: string): void; } diff --git a/api/@ohos.multimodalAwareness.metadataBinding.d.ts b/api/@ohos.multimodalAwareness.metadataBinding.d.ts index b2d6813d6cc82b059d5731bd0bc69305e1eb3d7a..8b383914e8b06cd36877f0cba278b68e7f7cdc22 100644 --- a/api/@ohos.multimodalAwareness.metadataBinding.d.ts +++ b/api/@ohos.multimodalAwareness.metadataBinding.d.ts @@ -18,7 +18,7 @@ * @kit MultimodalAwarenessKit */ -import type { image } from '@ohos.multimedia.image'; +import type image from './@ohos.multimedia.image'; import type { Callback } from './@ohos.base'; /** @@ -26,7 +26,8 @@ import type { Callback } from './@ohos.base'; * @namespace metadataBinding * @syscap SystemCapability.MultimodalAwareness.MetadataBinding * @atomicservice - * @since 18 + * @since 18 dynamic + * @since 20 static */ declare namespace metadataBinding { /** @@ -39,7 +40,8 @@ declare namespace metadataBinding { * @throws { BusinessError } 32100002 - Encode process fail. Possible causes: 1. Image processing error; 2. Channel coding error * @syscap SystemCapability.MultimodalAwareness.MetadataBinding * @systemapi - * @since 18 + * @since 18 dynamic + * @since 20 static */ function encodeImage(srcImage: image.PixelMap, metadata: string): Promise; @@ -52,7 +54,8 @@ declare namespace metadataBinding { * @throws { BusinessError } 32100003 - Decode process fail. Possible causes: 1. Image is not an encoded Image; 2. Image destroyed, decoding failed * @syscap SystemCapability.MultimodalAwareness.MetadataBinding * @systemapi - * @since 18 + * @since 18 dynamic + * @since 20 static */ function decodeImage(encodedImage: image.PixelMap): Promise; @@ -64,7 +67,8 @@ declare namespace metadataBinding { * @throws { BusinessError } 32100001 - Internal handling failed. Obtain metadata failed. * @syscap SystemCapability.MultimodalAwareness.MetadataBinding * @systemapi - * @since 18 + * @since 18 dynamic + * @since 20 static */ function notifyMetadataBindingEvent(bundleName: string): Promise; @@ -74,7 +78,8 @@ declare namespace metadataBinding { * @throws { BusinessError } 32100001 - Internal handling failed. Set Meta data to screenshot app fail. * @syscap SystemCapability.MultimodalAwareness.MetadataBinding * @atomicservice - * @since 18 + * @since 18 dynamic + * @since 20 static */ function submitMetadata(metadata: string): void; @@ -82,28 +87,30 @@ declare namespace metadataBinding { * Third-party app registration screenshot event * @param { 'operationSubmitMetadata' } type - Event Type * @param { string } bundleName - Bundle name of a third-party application - * @param { Callback } callback - Call back the screenshot event + * @param { Callback } callback - Call back the screenshot event * @throws { BusinessError } 32100001 - Internal handling failed. Service exception. * @throws { BusinessError } 32100004 - Subscribe Failed. Possible causes: 1. Abnormal system capability; 2. IPC communication abnormality; *
3. Algorithm loading exception. * @syscap SystemCapability.MultimodalAwareness.MetadataBinding * @atomicservice - * @since 18 + * @since 18 dynamic + * @since 20 static */ - function on(type: 'operationSubmitMetadata', bundleName: string, callback: Callback): void; + function on(type: 'operationSubmitMetadata', bundleName: string, callback: Callback): void; /** * Third-party app unregistration screenshot event * @param { 'operationSubmitMetadata' } type - Event Type * @param { string } bundleName - Bundle name of a third-party application - * @param { Callback } callback - Call back the screenshot event + * @param { Callback } callback - Call back the screenshot event * @throws { BusinessError } 32100001 - Internal handling failed. Service exception. * @throws { BusinessError } 32100005 - Unsubscribe Failed. Possible causes: 1. Abnormal system capability; 2. IPC communication abnormality * @syscap SystemCapability.MultimodalAwareness.MetadataBinding * @atomicservice - * @since 18 + * @since 18 dynamic + * @since 20 static */ - function off(type: 'operationSubmitMetadata', bundleName: string, callback?: Callback): void; + function off(type: 'operationSubmitMetadata', bundleName: string, callback?: Callback): void; } export default metadataBinding;