openharmony 鸿蒙 capi-arkui-nativemodule-arkui-visibleareaeventoptions

2026-08-25 浏览 (1)

ArkUI_VisibleAreaEventOptions

typedef struct ArkUI_VisibleAreaEventOptions ArkUI_VisibleAreaEventOptions

Overview

Defines the parameters for visible area change events.

Before using this struct type, you need to call OH_ArkUI_VisibleAreaEventOptions_Create to create an ArkUI_VisibleAreaEventOptions object. Then, you can configure listening behavior using the following APIs:

Use OH_ArkUI_VisibleAreaEventOptions_SetRatios to set a threshold array, which defines the threshold conditions for triggering visible area changes.

Use OH_ArkUI_VisibleAreaEventOptions_SetExpectedUpdateInterval to set an expected update interval.

Use OH_ArkUI_VisibleAreaEventOptions_SetMeasureFromViewport to set a calculation mode of a visible area.

To obtain the parameter values that have been set, you can:

Use OH_ArkUI_VisibleAreaEventOptions_GetRatios to obtain the threshold array.

Use OH_ArkUI_VisibleAreaEventOptions_GetExpectedUpdateInterval to obtain the expected update interval.

Use OH_ArkUI_VisibleAreaEventOptions_GetMeasureFromViewport to obtain the calculation mode of the visible area.

After using the APIs, call OH_ArkUI_VisibleAreaEventOptions_Dispose to dispose of the resources.

Since: 17

Related module: ArkUI_NativeModule

Header file: native_type.h

你可能感兴趣的鸿蒙文章

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