openharmony 鸿蒙 ts-securitycomponent-attributes-sys

2026-08-25 浏览 (1)

Security Component Universal Attributes (System API)

Universal attributes of security components are basic attributes applicable to all security components.

NOTE

This component is supported since API version 10. Updates will be marked with a superscript to indicate their earliest API version.

This topic describes only system APIs provided by the module. For details about its public APIs, see Security Component Universal Attributes.

key

key(value: string): T

Unique ID you assigned for the component. When this attribute is used in conjunction with id, the last assigned value takes effect. You are advised to set only id.

This API is used only for test purposes.

System API: This is a system API.

System capability: SystemCapability.ArkUI.ArkUI.Full

Parameters

ParameterTypeMandatoryDescription
valuestringYesUnique ID you assigned for the component.
The default value is an empty string.

Return value

TypeDescription
TAttributes of the security component.

你可能感兴趣的鸿蒙文章

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/zVyTQygp