diff --git a/api/arkui/component/pasteButton.d.ets b/api/arkui/component/pasteButton.d.ets deleted file mode 100644 index cc40d57a6d7a31ee5ea29eb8e9b551c2c27810da..0000000000000000000000000000000000000000 --- a/api/arkui/component/pasteButton.d.ets +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * @file - * @kit ArkUI - * @arkts 1.2 - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime' -import { ButtonType } from './button' -import { ClickEvent } from './common' -import { SecurityComponentMethod, SecurityComponentLayoutDirection } from './securityComponent' -import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from './units' -import { FontStyle, FontWeight, BorderStyle } from './enums' -import { Resource } from './../../../api/global/resource' -export enum PasteIconStyle { - LINES = 0 -} -export enum PasteDescription { - PASTE = 0 -} -export interface PasteButtonOptions { - icon?: PasteIconStyle; - text?: PasteDescription; - buttonType?: ButtonType; -} -export enum PasteButtonOnClickResult { - SUCCESS = 0, - TEMPORARY_AUTHORIZATION_FAILED = 1 -} -export interface PasteButtonInterface { - invoke(): PasteButtonAttribute; - -} -export type Callback_ClickEvent_PasteButtonOnClickResult_Void = (event: ClickEvent, - result: PasteButtonOnClickResult) => void; -export interface PasteButtonAttribute extends SecurityComponentMethod { - @memo - onClick(value: ((event: ClickEvent,result: PasteButtonOnClickResult) => void)): this; -} -@memo -@ComponentBuilder -export declare function PasteButton( - options?: PasteButtonOptions | undefined, - @memo - content_?: () => void, -): PasteButtonAttribute diff --git a/api/arkui/component/pasteButton.static.d.ets b/api/arkui/component/pasteButton.static.d.ets new file mode 100644 index 0000000000000000000000000000000000000000..3f2ea3f8664d9ed99fbd46aec7391f31e076d146 --- /dev/null +++ b/api/arkui/component/pasteButton.static.d.ets @@ -0,0 +1,182 @@ + +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"), + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @file + * @kit ArkUI + * @arkts 1.2 + */ + +import { ButtonType } from "./button"; +import { ClickEvent, AttributeModifier, CommonMethod } from "./common"; +import { SecurityComponentMethod } from "./securityComponent"; +import { BusinessError } from '../../@ohos.base'; +import { memo, ComponentBuilder } from "./../stateManagement/runtime"; + +/** + * Enumerates the icon styles. + * + * @enum { int } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export declare enum PasteIconStyle { + /** + * Icon rendered as lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + LINES = 0 +} + +/** + * Enumerates the text that can be displayed on the paste button. + * + * @enum { int } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export declare enum PasteDescription { + /** + * Paste + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + PASTE = 0 +} + +/** + * Declares the interface for setting the paste button options. + * + * @interface PasteButtonOptions + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export declare interface PasteButtonOptions { + /** + * Style of the icon to be drawn. + * + * @type { ?PasteIconStyle } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + icon?: PasteIconStyle; + + /** + * Text to be displayed on the button. + * + * @type { ?PasteDescription } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + text?: PasteDescription; + + /** + * Type of the button. + * + * @type { ?ButtonType } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + buttonType?: ButtonType; +} + +/** + * Enumerates the click event results of the paste button. + * + * @enum { int } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export declare enum PasteButtonOnClickResult { + /** + * Success. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + SUCCESS = 0, + /** + * Failure because the application is not temporarily authorized for accessing the current pasteboard data. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + TEMPORARY_AUTHORIZATION_FAILED = 1 +} + +/** + * Callback function when the paste button is clicked. + * + * @typedef { function } PasteButtonCallback + * @param { ClickEvent } event - The click event. + * @param { PasteButtonOnClickResult } result - The result of click event. + * @param { BusinessError } [error] - The error code and message of click event. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export type PasteButtonCallback = (event: ClickEvent, result: PasteButtonOnClickResult, error?: BusinessError) => void; + +/** + * Declare interfaces for the attributes of the paste button. + * + * @extends SecurityComponentMethod + * @interface PasteButtonAttribute + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export declare interface PasteButtonAttribute extends SecurityComponentMethod { + /** + * Called when the paste button is clicked. + * + * @param { PasteButtonCallback | undefined } event + * @returns { PasteButtonAttribute } Returns the attribute of the paste button. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + onClick(event: PasteButtonCallback | undefined): this; +} + +/** + * Set a paste button. + * + * @param { PasteButtonOptions } [options] - Options of the paste button. + * @returns { PasteButtonAttribute } Attributes of the paste button. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +@memo +@ComponentBuilder +export declare function PasteButton( + options?: PasteButtonOptions +): PasteButtonAttribute; \ No newline at end of file diff --git a/api/arkui/component/saveButton.d.ets b/api/arkui/component/saveButton.d.ets deleted file mode 100644 index 0189578297647a673f5e60588fce1f464476d45c..0000000000000000000000000000000000000000 --- a/api/arkui/component/saveButton.d.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * @file - * @kit ArkUI - * @arkts 1.2 - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime' -import { ButtonType } from './button' -import { ClickEvent } from './common' -import { SecurityComponentMethod, SecurityComponentLayoutDirection } from './securityComponent' -import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from './units' -import { FontStyle, FontWeight, BorderStyle } from './enums' -import { Resource } from './../../../api/global/resource' -export enum SaveIconStyle { - FULL_FILLED = 0, - LINES = 1, - PICTURE = 2 -} -export enum SaveDescription { - DOWNLOAD = 0, - DOWNLOAD_FILE = 1, - SAVE = 2, - SAVE_IMAGE = 3, - SAVE_FILE = 4, - DOWNLOAD_AND_SHARE = 5, - RECEIVE = 6, - CONTINUE_TO_RECEIVE = 7, - SAVE_TO_GALLERY = 8, - EXPORT_TO_GALLERY = 9, - QUICK_SAVE_TO_GALLERY = 10, - RESAVE_TO_GALLERY = 11 -} -export interface SaveButtonOptions { - icon?: SaveIconStyle; - text?: SaveDescription; - buttonType?: ButtonType; -} -export enum SaveButtonOnClickResult { - SUCCESS = 0, - TEMPORARY_AUTHORIZATION_FAILED = 1 -} -export interface SaveButtonInterface { - invoke(): SaveButtonAttribute; - -} -export type Callback_ClickEvent_SaveButtonOnClickResult_Void = (event: ClickEvent, - result: SaveButtonOnClickResult) => void; -export interface SaveButtonAttribute extends SecurityComponentMethod { - @memo - onClick(value: ((event: ClickEvent,result: SaveButtonOnClickResult) => void)): this; -} -@memo -@ComponentBuilder -export declare function SaveButton( - options?: SaveButtonOptions | undefined, - @memo - content_?: () => void, -): SaveButtonAttribute diff --git a/api/arkui/component/saveButton.static.d.ets b/api/arkui/component/saveButton.static.d.ets new file mode 100644 index 0000000000000000000000000000000000000000..f49d58dd75cbe595a418989b7b36f805d8db9a32 --- /dev/null +++ b/api/arkui/component/saveButton.static.d.ets @@ -0,0 +1,289 @@ + +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"), + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @file + * @kit ArkUI + * @arkts 1.2 + */ +import { Resource, Dimension, BorderRadiuses, SizeOptions } from "./units"; +import { ButtonType } from "./button"; +import { ClickEvent, AttributeModifier, CommonMethod } from "./common"; +import { SecurityComponentMethod } from "./securityComponent"; +import { BusinessError } from '../../@ohos.base'; +import { memo, ComponentBuilder } from "./../stateManagement/runtime"; +/** + * Enumerates the icon styles. + * + * @enum { int } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export declare enum SaveIconStyle { + /** + * Icon filled with the specified color. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + FULL_FILLED = 0, + /** + * Icon rendered as lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + LINES = 1, + /** + * Icon rendered as picture. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 20 + */ + PICTURE = 2 +} +/** + * Enumerates the text that can be displayed on the save button. + * + * @enum { int } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export declare enum SaveDescription { + /** + * Download + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + DOWNLOAD = 0, + /** + * Download File + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + DOWNLOAD_FILE = 1, + /** + * Save + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + SAVE = 2, + /** + * Save Image + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + SAVE_IMAGE = 3, + /** + * Save File + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + SAVE_FILE = 4, + /** + * Download and Share + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + DOWNLOAD_AND_SHARE = 5, + /** + * Receive + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + RECEIVE = 6, + /** + * Continue to Receive + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + CONTINUE_TO_RECEIVE = 7, + /** + * Save to gallery + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + SAVE_TO_GALLERY = 8, + /** + * Export to gallery + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + EXPORT_TO_GALLERY = 9, + /** + * Quick save to gallery + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + QUICK_SAVE_TO_GALLERY = 10, + /** + * Resave to gallery + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + RESAVE_TO_GALLERY = 11, + + /** + * Save all + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + SAVE_ALL = 12 +} +/** + * Declares the interface for setting the save button options. + * + * @interface SaveButtonOptions + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export declare interface SaveButtonOptions { + /** + * Style of the icon to be drawn. + * + * @type { ?SaveIconStyle } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + icon?: SaveIconStyle; + /** + * Text to be displayed on the button. + * + * @type { ?SaveDescription } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + text?: SaveDescription; + /** + * Type of the button. + * + * @type { ?ButtonType } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + buttonType?: ButtonType; +} +/** + * Enumerates the click event results of the save button. + * + * @enum { int } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export declare enum SaveButtonOnClickResult { + /** + * Success. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + SUCCESS = 0, + /** + * Failure because the application is not temporarily authorized for saving files. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + TEMPORARY_AUTHORIZATION_FAILED = 1 +} +/** + * Callback function when the save button is clicked. + * + * @typedef { function } SaveButtonCallback + * @param { ClickEvent } event - The click event. + * @param { SaveButtonOnClickResult } result - The result of click event. + * @param { BusinessError } [error] - The error code and message of click event. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export type SaveButtonCallback = (event: ClickEvent, result: SaveButtonOnClickResult, error?: BusinessError) => void; + +/** + * Declares interface for the attributes of the save button. + * + * @extends SecurityComponentMethod + * @interface SaveButtonAttribute + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export declare interface SaveButtonAttribute extends SecurityComponentMethod { + /** + * Called when the save button is clicked. + * + * @param { SaveButtonCallback | undefined } event + * @returns { SaveButtonAttribute } Returns the attribute of the save button. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + onClick(event: SaveButtonCallback | undefined): this; +} + + +/** + * Set a save button. + * + * @param { SaveButtonOptions } [options] - Options of the save button. + * @returns { SaveButtonAttribute } Attributes of the save button. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +@memo +@ComponentBuilder +export declare function SaveButton( + options?: SaveButtonOptions, +): SaveButtonAttribute; \ No newline at end of file diff --git a/api/arkui/component/securityComponent.d.ets b/api/arkui/component/securityComponent.d.ets deleted file mode 100644 index 14acb144b6fbf890946a7cb0cc38ea036199f1c7..0000000000000000000000000000000000000000 --- a/api/arkui/component/securityComponent.d.ets +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * @file - * @kit ArkUI - * @arkts 1.2 - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime' -import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from './units' -import { FontStyle, FontWeight, BorderStyle } from './enums' -import { Resource } from './../../../api/global/resource' -export enum SecurityComponentLayoutDirection { - HORIZONTAL = 0, - VERTICAL = 1 -} -export interface SecurityComponentMethod { - @memo - iconSize(value: Dimension): this; - @memo - layoutDirection(value: SecurityComponentLayoutDirection): this; - @memo - position(value: Position): this; - @memo - markAnchor(value: Position): this; - @memo - offset(value: Position | Edges | LocalizedEdges): this; - @memo - fontSize(value: Dimension): this; - @memo - fontStyle(value: FontStyle): this; - @memo - fontWeight(value: number | FontWeight | string): this; - @memo - fontFamily(value: string | Resource): this; - @memo - fontColor(value: ResourceColor): this; - @memo - iconColor(value: ResourceColor): this; - @memo - backgroundColor(value: ResourceColor): this; - @memo - borderStyle(value: BorderStyle): this; - @memo - borderWidth(value: Dimension): this; - @memo - borderColor(value: ResourceColor): this; - @memo - borderRadius(value: Dimension): this; - @memo - padding(value: Padding | Dimension): this; - @memo - textIconSpace(value: Dimension): this; - @memo - key(value: string): this; - @memo - width(value: Length): this; - @memo - height(value: Length): this; - @memo - size(value: SizeOptions): this; - @memo - constraintSize(value: ConstraintSizeOptions): this; -} diff --git a/api/arkui/component/securityComponent.static.d.ets b/api/arkui/component/securityComponent.static.d.ets new file mode 100644 index 0000000000000000000000000000000000000000..aa647b36b28cbac0c930026538661f851d69160e --- /dev/null +++ b/api/arkui/component/securityComponent.static.d.ets @@ -0,0 +1,393 @@ + +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"), + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @file + * @kit ArkUI + * @arkts 1.2 + */ + +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, BorderRadiuses } from "./units"; +import { FontStyle, FontWeight, BorderStyle, TextHeightAdaptivePolicy, Axis, Alignment } from "./enums"; +import { ChainStyle, LocalizedAlignRuleOptions, AlignRuleOption, AttributeModifier, CommonMethod } from "./common"; +import { Resource } from '../../global/resource'; +import { memo, ComponentBuilder } from "./../stateManagement/runtime"; + +/** + * Enumerates the layout direction of the icon and text. + * + * @enum { int } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export declare enum SecurityComponentLayoutDirection { + /** + * Horizontal layout. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + HORIZONTAL = 0, + /** + * Vertical layout. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + VERTICAL = 1 +} + +/** + * Declares the interface for the method of a security component. + * + * @interface SecurityComponentMethod + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ +export declare interface SecurityComponentMethod { + /** + * Icon size. + * + * @param { Dimension | undefined } value - Indicates the size of the icon. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + iconSize(value: Dimension | undefined): this; + /** + * Layout direction of the icon and text. + * + * @param { SecurityComponentLayoutDirection | undefined } value - Indicates the layout direction of the icon and text. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + layoutDirection(value: SecurityComponentLayoutDirection | undefined): this; + /** + * Position of the security component. + * + * @param { Position | undefined } value - Indicates the position of the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + position(value: Position | undefined): this; + /** + * Anchor of the security component for positioning. The top start edge of the component is used as + * the reference point for offset. + * + * @param { Position | undefined } value - Indicates the anchor of the component when it is positioned. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + markAnchor(value: Position | undefined): this; + /** + * Coordinate offset relative to the layout completion position. + * Setting this attribute does not affect the layout of the parent container. + * The position is adjusted only during drawing. + * + * @param { Position | Edges | LocalizedEdges | undefined } value + * @returns { SecurityComponentMethod } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + offset(value: Position | Edges | LocalizedEdges | undefined): this; + /** + * Font size of the inner text. + * + * @param { Dimension | undefined } value - Indicates the font size of the text in the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + fontSize(value: Dimension | undefined): this; + /** + * Font style of the inner text. + * + * @param { FontStyle | undefined } value - Indicates the font style of the text in the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + fontStyle(value: FontStyle | undefined): this; + /** + * Font family of the inner text. + * + * @param { string | Resource | undefined } value - Indicates the font family of the text in the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + fontFamily(value: string | Resource | undefined): this; + /** + * Font color of the inner text. + * + * @param { ResourceColor | undefined } value - Indicates the font color of the text in the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + fontColor(value: ResourceColor | undefined): this; + /** + * Color of the icon. + * + * @param { ResourceColor | undefined } value - Indicates the icon color in the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + iconColor(value: ResourceColor | undefined): this; + /** + * Background color. + * + * @param { ResourceColor | undefined } value - Indicates the background color of the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + backgroundColor(value: ResourceColor | undefined): this; + /** + * Style of the border. + * + * @param { BorderStyle | undefined } value - Indicates the border style of the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + borderStyle(value: BorderStyle | undefined): this; + /** + * Width of the border. + * + * @param { Dimension | undefined } value - Indicates the border width of the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + borderWidth(value: Dimension | undefined): this; + /** + * Color of the border. + * + * @param { ResourceColor | undefined } value - Indicates the border color of the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + borderColor(value: ResourceColor | undefined): this; + /** + * Radius of the border. + * + * @param { Dimension| BorderRadiuses | undefined } radius - Indicates the border radius of the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + borderRadius(radius: Dimension | BorderRadiuses | undefined): this; + /** + * Padding between the background border and icon/inner text. + * + * @param { Padding | Dimension | undefined } value - Indicates the padding of the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + padding(value: Padding | Dimension | undefined): this; + /** + * Space between the inner text and icon. + * + * @param { Dimension | undefined } value - Indicates the space between the inner text and icon. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + textIconSpace(value: Dimension | undefined): this; + /** + * Key. User can set an key to the component to identify it. + * + * @param { string | undefined } value - identify the key of the component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 20 + * @test + */ + key(value: string | undefined): this; + /** + * Sets the width of the component. + * + * @param { Length | undefined } value - Indicates the width of the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + width(value: Length | undefined): this; + /** + * Sets the height of the component. + * + * @param { Length | undefined } value - Indicates the height of the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + height(value: Length | undefined): this; + /** + * The size of the component. + * + * @param { SizeOptions | undefined } value - Indicates the size of the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + size(value: SizeOptions | undefined): this; + /** + * constraint Size: + * minWidth: minimum Width, maxWidth: maximum Width, minHeight: minimum Height, maxHeight: maximum Height. + * + * @param { ConstraintSizeOptions | undefined } value - Indicates the constraint size of the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + constraintSize(value: ConstraintSizeOptions | undefined): this; + /** + * align + * + * @param { Alignment | undefined } alignType - Indicates the align type of the security component. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + align(alignType: Alignment | undefined): this; + /** + * Specifies the alignRules of relative container + * + * @param { AlignRuleOption | LocalizedAlignRuleOptions | undefined } alignRule + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + alignRules(alignRule: AlignRuleOption | LocalizedAlignRuleOptions | undefined): this; + + /** + * Id. User can set an id to the component to identify it. + * + * @param { string | undefined } description + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + id(description: string | undefined): this; + /** + * Specifies the direction and style of chain in relative container + * + * @param { Axis | undefined } direction - Indicates direction of the chain + * @param { ChainStyle | undefined } style - Indicates style of the chain + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + chainMode(direction: Axis | undefined, style: ChainStyle | undefined): this; + /** + * Sets the minimum font scale factor for text. + * + * @param { double | Resource | undefined } scale Minimum font scale factor to set. + * @returns { SecurityComponentMethod } Returns the attributes of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + minFontScale(scale: double | Resource | undefined): this; + /** + * Sets the maximum font scale factor for text. + * + * @param { double | Resource | undefined } scale Maximum font scale factor to set. + * @returns { SecurityComponentMethod } Returns the attributes of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + maxFontScale(scale: double | Resource | undefined): this; + /** + * Called when the minimum font size of the font is set. + * + * @param { double | string | Resource | undefined } minSize + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + minFontSize(minSize: double | string | Resource | undefined): this; + /** + * Called when the maximum font size of the font is set. + * + * @param { double | string | Resource | undefined } maxSize + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + maxFontSize(maxSize: double | string | Resource | undefined): this; + /** + * Called when the height adaptive policy is set. + * + * @param { TextHeightAdaptivePolicy | undefined } policy - The height adaptive policy. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + heightAdaptivePolicy(policy: TextHeightAdaptivePolicy | undefined): this; + /** + * If the value is true, the component is available and can respond to operations such as clicking. + * If it is set to false, click operations are not responded. + * + * @param { boolean | undefined } respond - Indicates whether the button is responded to. + * @returns { SecurityComponentMethod } Returns the attribute of the security component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + */ + enabled(respond: boolean | undefined): this; +} \ No newline at end of file