openharmony 鸿蒙 arkts-apis-uicontext-i

2026-08-25 浏览 (1)

Interfaces (Others)

NOTE

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

TargetInfo18+

Specifies the target node for component binding.

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

System capability: SystemCapability.ArkUI.ArkUI.Full

Parameters

NameTypeRead-OnlyOptionalDescription
idstring | numberNoNoTarget node for binding popups or menus.
NOTE
1. When id is a number, it corresponds to the component's UniqueID, whose uniqueness is guaranteed by the system.
2. When id is a string, it corresponds to the component specified by the universal attribute id. You must ensure the uniqueness of this ID, although there may be multiple instances.
componentIdnumberNoYesUnique ID of the custom component where the target node is located. When the above id is specified as a string, this property can be used to narrow down the scope, helping you ensure the uniqueness of id: string within a certain range.

PageInfo12+

Represents the page information of the router or navigation destination. If there is no related page information, undefined is returned.

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

System capability: SystemCapability.ArkUI.ArkUI.Full

NameTypeRead-OnlyOptionalDescription
routerPageInfoobserver.RouterPageInfoNoYesRouter information.
navDestinationInfoobserver.NavDestinationInfoNoYesNavigation destination information.

OverlayManagerOptions15+

Provides the parameters used for initializing OverlayManager.

System capability: SystemCapability.ArkUI.ArkUI.Full

NameTypeRead-OnlyOptionalDescription
renderRootOverlaybooleanNoYesWhether to render the overlay root node. The value true means to render the overlay root node, and false means the opposite. The default value is true.
Atomic service API: This API can be used in atomic services since API version 15.
enableBackPressedEvent19+booleanNoYesWhether to enable the swipe-to-dismiss gesture for ComponentContent under OverlayManager. The value true means to enable the swipe-to-dismiss gesture, and false means the opposite. Default value: false.
Atomic service API: This API can be used in atomic services since API version 19.

GestureTriggerInfo20+

Defines the information provided when a specific gesture callback is triggered.

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

System capability: SystemCapability.ArkUI.ArkUI.Full

NameTypeRead-OnlyOptionalDescription
eventGestureEventNoNoGesture event object.
currentGestureRecognizerNoNoGesture recognizer object. Detailed gesture information can be obtained from this object. However, avoid retaining this object locally as it may become invalid after the node is released.
currentPhaseGestureActionPhaseNoNoPhase of the gesture action callback.
nodeFrameNodeNoYesNode that triggers the gesture. The default value is null, indicating that no specific node triggers the gesture.

GestureObserverConfigs20+

Specifies the gesture callback phases to listen for (passing an empty array will be ineffective). Notifications are sent only when the gesture triggers the specified phases.

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

System capability: SystemCapability.ArkUI.ArkUI.Full

NameTypeRead-OnlyOptionalDescription
actionPhasesArray<GestureActionPhase>NoNoGesture event object.

SwiperContentInfo22+

Provides content area information of the Swiper component.

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

System capability: SystemCapability.ArkUI.ArkUI.Full

NameTypeRead-OnlyOptionalDescription
idstringNoNoID of the Swiper component.
uniqueIdnumberNoNoUnique ID of the Swiper component.
swiperItemInfosArray<SwiperItemInfo>NoNoInformation about the currently visible child components within the Swiper container.

SwiperItemInfo22+

Provides information about Swiper child components.

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

System capability: SystemCapability.ArkUI.ArkUI.Full

NameTypeRead-OnlyOptionalDescription
uniqueIdnumberNoNoUnique ID of the Swiper child component.
indexnumberNoNoIndex of the child component in the Swiper container.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 arkts-apis-uicontext-contextmenucontroller

openharmony 鸿蒙 errorcode-canvas

openharmony 鸿蒙 capi-oh-nativexcomponent-native-xcomponent-oh-nativexcomponent

openharmony 鸿蒙 errorcode-bindSheet

openharmony 鸿蒙 js-apis-arkui-uiExtension-sys

openharmony 鸿蒙 capi-arkui-accessibility-arkui-accessibilityeventinfo

openharmony 鸿蒙 capi-arkui-rendernodeutils

openharmony 鸿蒙 js-apis-arkui-node

openharmony 鸿蒙 capi-native-node-h

openharmony 鸿蒙 capi-arkui-nativemodule-arkui-listitemswipeactionitem

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