目录

ArkUI_NodeAttributeType (EmbeddedComponent Attribute)

enum ArkUI_NodeAttributeType

Overview

Enumerates the EmbeddedComponent attribute types that can be set by ArkUI on the native side. It supports setting the want parameter for starting an EmbeddedAbility and runtime options such as controlling the UI display behavior of the EmbeddedAbility. It is applicable to scenarios where the attributes of an embedded component need to be set on the native side. EmbeddedComponent is applicable to scenarios where the UI pages provided by other Abilities (such as system settings and maps) need to be embedded in the current application page.

Since: 12

Related module: ArkUI_NativeModule

Header file: native_node.h

NODE_EMBEDDED_COMPONENT_WANT

NODE_EMBEDDED_COMPONENT_WANT = MAX_NODE_SCOPE_NUM * ARKUI_NODE_EMBEDDED_COMPONENT = 1016000

Want used to launch an EmbeddedAbility. This attribute can be set. It is used in the following scenario: When an application needs to embed a specified Ability in the current page (such as embedding a system settings page or a map component), this attribute is used to specify the target Ability.

The format of the ArkUI_AttributeItem parameter for setting the attribute is as follows.

Since: 20

Parameters

Name Description
.object Want parameter for EmbeddedComponent, used to specify the target information required for launching EmbeddedAbility. The parameter type is AbilityBase_Want. The default value is nullptr.

NODE_EMBEDDED_COMPONENT_OPTION

NODE_EMBEDDED_COMPONENT_OPTION = 1016001

Runtime option of EmbeddedComponent, which is used to control the UI display behavior of the EmbeddedAbility. This attribute can be set.

The format of the ArkUI_AttributeItem parameter for setting the attribute is as follows.

Since: 20

Parameters

Name Description
.object List of options for EmbeddedComponent. The parameter type is ArkUI_EmbeddedComponentOption. The default value is nullptr.