diff --git a/api/@internal/component/ets/ui_extension_component.d.ts b/api/@internal/component/ets/ui_extension_component.d.ts index eac19b4aa3ca5ce3bc9a027ceb7bb15ee0d12457..22e89482e1623347acb54570651fc4490eb6f608 100644 --- a/api/@internal/component/ets/ui_extension_component.d.ts +++ b/api/@internal/component/ets/ui_extension_component.d.ts @@ -61,14 +61,16 @@ declare enum DpiFollowStrategy { * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ declare enum WindowModeFollowStrategy { /** * Followed the host Window Mode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ FOLLOW_HOST_WINDOW_MODE = 0, @@ -76,9 +78,10 @@ declare enum WindowModeFollowStrategy { * Followed the UIExtensionAbility. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - FOLLOW_UI_EXTENSION_ABILITY_WINDOW_MODE = 1, + FOLLOW_UI_EXTENSION_ABILITY_WINDOW_MODE = 1 } /** @@ -147,7 +150,8 @@ declare interface UIExtensionOptions { * @default WindowModeFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_WINDOW_MODE * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ windowModeFollowStrategy?: WindowModeFollowStrategy; } @@ -217,6 +221,7 @@ declare interface TerminationInfo { /** * Get Callback from @ohos.base. + * AnonyMous Object Rectification * * @typedef { import('../api/@ohos.base').Callback> } * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -254,11 +259,11 @@ declare interface UIExtensionProxy { * @param { object } data * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'10','1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ /** * This function is for sending data to the UIExtensionAbility. + * AnonyMous Object Rectification * * @param { Record } data * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -273,7 +278,7 @@ declare interface UIExtensionProxy { * * @param { object } data - data send to the UIExtensionAbility * @returns { object } data - data transferred from the UIExtensionAbility - * @throws { BusinessError } 100011 - No callback has been registered to response this request. + * @throws { BusinessError } 100011 - No callback has been registered to respond to this request. * @throws { BusinessError } 100012 - Transferring data failed. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi @@ -281,10 +286,11 @@ declare interface UIExtensionProxy { */ /** * This function is for sending data to the UIExtensionAbility and waiting the result in blocking mode. + * AnonyMous Object Rectification * * @param { Record } data - Data send to the UIExtensionAbility. * @returns { Record } data - Data transferred from the UIExtensionAbility. - * @throws { BusinessError } 100011 - No callback has been registered to response this request. + * @throws { BusinessError } 100011 - No callback has been registered to respond to this request. * @throws { BusinessError } 100012 - Transferring data failed. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi @@ -304,6 +310,7 @@ declare interface UIExtensionProxy { */ /** * Register the listener that watches for async data receiver callback being registered by UIExtensionAbility. + * AnonyMous Object Rectification * * @param { 'asyncReceiverRegister' } type - Indicates the type of event. * @param { Callback } callback - Callback of the listened event. @@ -325,6 +332,7 @@ declare interface UIExtensionProxy { */ /** * Register the listener that watches for sync data receiver callback being registered by UIExtensionAbility. + * AnonyMous Object Rectification * * @param { 'syncReceiverRegister' } type - Indicates the type of event. * @param { Callback } callback - Callback of the listened event. @@ -346,6 +354,7 @@ declare interface UIExtensionProxy { */ /** * Deregisters the listener that watches for async data receiver callback being registered by UIExtensionAbility. + * AnonyMous Object Rectification * * @param { 'asyncReceiverRegister' } type - Type of the listened event. * @param { Callback } [callback] - Callback of the listened event. @@ -367,6 +376,7 @@ declare interface UIExtensionProxy { */ /** * Deregisters the listener that watches for sync data receiver callback being registered by UIExtensionAbility. + * AnonyMous Object Rectification * * @param { 'syncReceiverRegister' } type - Type of the listened event. * @param { Callback } [callback] - Callback of the listened event. @@ -419,9 +429,10 @@ interface UIExtensionComponentInterface { * Construct the UIExtensionComponent.
* Called when the UIExtensionComponent is used. * - * @param { import('../api/@ohos.app.ability.Want').default } want - indicates the want of UIExtensionAbility + * @param { Want } want - indicates the want of UIExtensionAbility * @param { UIExtensionOptions } [options] - Construction configuration of UIExtensionComponentAttribute * @returns { UIExtensionComponentAttribute } + * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 20 @@ -457,10 +468,11 @@ declare class UIExtensionComponentAttribute extends CommonMethod } callback - * - callback called when remote UIExtensionAbility object is - *
ready for receive data + * callback called when remote UIExtensionAbility object is ready for receive data + * + * @param { Callback } callback * @returns { UIExtensionComponentAttribute } + * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 20 @@ -479,6 +491,8 @@ declare class UIExtensionComponentAttribute extends CommonMethod } callback * @returns { UIExtensionComponentAttribute } + * @throws { BusinessError } 202 - Non-system applications are not allowed to use system APIs. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 20 @@ -563,7 +579,8 @@ declare class UIExtensionComponentAttribute extends CommonMethod): UIExtensionComponentAttribute; }