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
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| value | string | Yes | Unique ID you assigned for the component. The default value is an empty string. |
Return value
| Type | Description |
|---|---|
| T | Attributes 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