openharmony 鸿蒙 ts-custom-component-parameter

2026-08-25 浏览 (1)

Custom Component Parameters

NOTE

The initial APIs of this module are supported since API version 11. Newly added APIs will be marked with a superscript to indicate their earliest API version.

ComponentOptions

Defines the custom component parameters used to configure whether component freezing is supported.

Widget capability: This API can be used in ArkTS widgets since API version 11.

Atomic service API: This API can be used in atomic services since API version 12.

System capability: SystemCapability.ArkUI.ArkUI.Full

NOTE

Since API version 11, this parameter can be used to configure component freezing for @Component. For implementation examples, see Freezing a Custom Component.

Since API version 12, this parameter can be used to configure component freezing for @ComponentV2. For implementation examples, see Freezing a Custom Component.

NameTypeRead-OnlyOptionalDescription
freezeWhenInactivebooleanNoNoWhether to enable component freezing. The value true means to enable component freezing, and false means the opposite. If ComponentOptions is not specified, the default value false is used.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 ts-drawing-components-shape

openharmony 鸿蒙 ts-universal-attributes-sharp-clipping

openharmony 鸿蒙 ts-universal-attributes-toolbar

openharmony 鸿蒙 ts-container-lazyvgridlayout

openharmony 鸿蒙 ohos-arkui-advanced-FoldSplitContainer

openharmony 鸿蒙 ts-methods-calendarpicker-dialog

openharmony 鸿蒙 ts-uicommonevent

openharmony 鸿蒙 ts-basic-gestures-tapgesture

openharmony 鸿蒙 ohos-arkui-advanced-DialogV2

openharmony 鸿蒙 ts-components-canvas-canvas

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/tKwuQhiH