diff --git a/api/@internal/component/ets/toggle.d.ts b/api/@internal/component/ets/toggle.d.ts index 4f1a07f3087dbbb03d2c1e70df48c4d01c473a5b..ed93586da5d95fcd072aab2b00606e4cf35645e2 100644 --- a/api/@internal/component/ets/toggle.d.ts +++ b/api/@internal/component/ets/toggle.d.ts @@ -375,20 +375,19 @@ declare interface ToggleOptions { * @atomicservice * @since 18 */ - isOn?: boolean - /** * Whether the toggle is on. + * Anonymous Object Rectification. * - * @type { ?(boolean | undefined | Bindable) } + * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice - * @since 20 - * @arkts 1.2 + * @since arkts {'1.1':'20','1.2':'20'} + * @arkts 1.1&1.2 */ - isOn?: boolean | undefined | Bindable + isOn?: boolean } /** diff --git a/api/@internal/component/ets/ui_extension_component.d.ts b/api/@internal/component/ets/ui_extension_component.d.ts index 7637cdeaaaa74c343b90d4093d29fa37a8b0b3e8..7fe841ede722e672076d2213ea367196129b17d4 100644 --- a/api/@internal/component/ets/ui_extension_component.d.ts +++ b/api/@internal/component/ets/ui_extension_component.d.ts @@ -61,16 +61,14 @@ declare enum DpiFollowStrategy { * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ declare enum WindowModeFollowStrategy { /** * Followed the host Window Mode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ FOLLOW_HOST_WINDOW_MODE = 0, @@ -78,8 +76,7 @@ declare enum WindowModeFollowStrategy { * Followed the UIExtensionAbility. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ FOLLOW_UI_EXTENSION_ABILITY_WINDOW_MODE = 1 } @@ -150,8 +147,7 @@ declare interface UIExtensionOptions { * @default WindowModeFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_WINDOW_MODE * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'18','1.2':'20'} - * @arkts 1.1&1.2 + * @since 18 */ windowModeFollowStrategy?: WindowModeFollowStrategy; } @@ -546,8 +542,7 @@ declare class UIExtensionComponentAttribute extends CommonMethod): UIExtensionComponentAttribute; } diff --git a/api/@ohos.arkui.UIContext.d.ts b/api/@ohos.arkui.UIContext.d.ts index bda9777e8cacf7a6dfe2d4c02a26ea3e88efee65..31107f0821666a756b106865e04e271e83f5ed59 100644 --- a/api/@ohos.arkui.UIContext.d.ts +++ b/api/@ohos.arkui.UIContext.d.ts @@ -1355,8 +1355,7 @@ export declare class PromptAction { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since arkts { '1.1':'12','1.2':'20' } - * @arkts 1.1&1.2 + * @since 12 */ closeCustomDialog(dialogContent: ComponentContent): Promise; @@ -4822,32 +4821,6 @@ export declare class UIContext { * @arkts 1.1&1.2 */ static destroyUIContextWithoutWindow(): void; - - /** - * Thread-safe UI state variables updates interface. - * - * @param { VoidCallback } callback - The callback function to be executed in the UI thread. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - setUIStates(callback: VoidCallback): void; - - /** - * Retrieves the UIContext corresponding to the UI instance of the currently focused window. - * Returns undefined if it does not exist. - * - * @returns { UIContext | undefined } The focused UIContext, or undefined if it does not exist. - * @static - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ - static getFocusedUIContext(): UIContext | undefined; } /** diff --git a/api/@ohos.arkui.drawableDescriptor.d.ts b/api/@ohos.arkui.drawableDescriptor.d.ts index e57f057fc71547d07bb5349a5e903c81e25d4ed9..c78d96e202580089ee620280d1e329f4c995184b 100644 --- a/api/@ohos.arkui.drawableDescriptor.d.ts +++ b/api/@ohos.arkui.drawableDescriptor.d.ts @@ -134,20 +134,17 @@ export declare class DrawableDescriptor { * @atomicservice * @since 12 */ - getPixelMap(): image.PixelMap; - /** * Get pixelMap of drawable image. * - * @returns { image.PixelMap | undefined } Return the PixelMap of the calling DrawableDescriptor object. + * @returns { image.PixelMap } Return the PixelMap of the calling DrawableDescriptor object. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 20 - * @arkts 1.2 + * @since arkts {'1.1':'20','1.2':'20'} + * @arkts 1.1&1.2 */ - getPixelMap(): image.PixelMap | undefined; - + getPixelMap(): image.PixelMap; /** * Get original width of drawable object. * @@ -263,20 +260,17 @@ export declare class LayeredDrawableDescriptor extends DrawableDescriptor { * @crossplatform * @atomicservice * @since 12 - */ - getForeground(): DrawableDescriptor; - /** * Get DrawableDescriptor for the foreground. * - * @returns { DrawableDescriptor | undefined } Return the DrawableDescriptor object of foreground. + * @returns { DrawableDescriptor } Return the DrawableDescriptor object of foreground. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 20 - * @arkts 1.2 + * @since arkts {'1.1':'20','1.2':'20'} + * @arkts 1.1&1.2 */ - getForeground(): DrawableDescriptor | undefined; + getForeground(): DrawableDescriptor; /** * Get DrawableDescriptor for the background. @@ -302,19 +296,17 @@ export declare class LayeredDrawableDescriptor extends DrawableDescriptor { * @atomicservice * @since 12 */ - getBackground(): DrawableDescriptor; - /** * Get DrawableDescriptor for the background. * - * @returns { DrawableDescriptor | undefined } Return the DrawableDescriptor object of background. + * @returns { DrawableDescriptor } Return the DrawableDescriptor object of background. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 20 - * @arkts 1.2 + * @since arkts {'1.1':'20','1.2':'20'} + * @arkts 1.1&1.2 */ - getBackground(): DrawableDescriptor | undefined; + getBackground(): DrawableDescriptor; /** * Get DrawableDescriptor for the mask. @@ -340,20 +332,17 @@ export declare class LayeredDrawableDescriptor extends DrawableDescriptor { * @atomicservice * @since 12 */ - getMask(): DrawableDescriptor; - /** * Get DrawableDescriptor for the mask. * - * @returns { DrawableDescriptor | undefined } Return the DrawableDescriptor object of mask. + * @returns { DrawableDescriptor } Return the DrawableDescriptor object of mask. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 20 - * @arkts 1.2 + * @since arkts {'1.1':'20','1.2':'20'} + * @arkts 1.1&1.2 */ - getMask(): DrawableDescriptor | undefined; - + getMask(): DrawableDescriptor; /** * Get the clip path info of the adaptive icon mask. diff --git a/api/@ohos.arkui.inspector.d.ts b/api/@ohos.arkui.inspector.d.ts index 2634340ef8a1c270e2f0626d4c1d20bdec2c1d1d..2db8ffcb75ab4a4726037654d0289b3e5458bbcc 100644 --- a/api/@ohos.arkui.inspector.d.ts +++ b/api/@ohos.arkui.inspector.d.ts @@ -235,34 +235,4 @@ declare namespace inspector { function sendEventByKey(id: string, action: number, params: string): boolean; } -export default inspector; -/** - * export function getInspectorByKey from inspector namespace and provide it for kit ArkUI. - * @constant - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ -export const GETINSPECTORBYKEY = inspector.getInspectorByKey; -/** - * export function getInspectorTree from inspector namespace and provide it for kit ArkUI. - * @constant - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ -export const GETINSPECTORTREE = inspector.getInspectorTree; -/** - * export function sendEventByKey from inspector namespace and provide it for kit ArkUI. - * @constant - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - * @arkts 1.2 - */ -export const SENDEVENTBYKEY = inspector.sendEventByKey; \ No newline at end of file +export default inspector; \ No newline at end of file diff --git a/api/@ohos.arkui.node.d.ts b/api/@ohos.arkui.node.d.ts index 86df2cbda1e09409c8aa584d12824666f25aefe2..6afc842c2b21ebafc6a00b266b6301f609f92cd4 100644 --- a/api/@ohos.arkui.node.d.ts +++ b/api/@ohos.arkui.node.d.ts @@ -128,7 +128,6 @@ export { typeNode, NodeAdapter } from './arkui/FrameNode'; * @since 12 */ export { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, RoundRect, Circle, CommandPath, ShapeMask, ShapeClip, BorderRadiuses, CornerRadius, Rect, Edges, edgeColors, edgeWidths, borderStyles, borderRadiuses, LengthMetricsUnit } from './arkui/Graphics'; - /** * Export Graphics. Defines the basic types related to the Graphics. * @@ -138,7 +137,7 @@ export { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4 * @since 20 * @arkts 1.2 */ -export { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, RoundRect, Circle, CommandPath, ShapeMask, ShapeClip, BorderRadiuses, CornerRadius, /*Rect, */Edges, edgeColors, edgeWidths, borderStyles, borderRadiuses, LengthMetricsUnit } from './arkui/Graphics'; +export { DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, RoundRect, Circle, CommandPath, ShapeMask, ShapeClip, BorderRadiuses, CornerRadius, Rect, Edges, edgeColors, edgeWidths, borderStyles, borderRadiuses, LengthMetricsUnit } from './arkui/Graphics'; /** * Export Graphics. Defines the basic types related to the Graphics.