From 48a425bc7cca8f8ee301bb347e36caa11b875dfb Mon Sep 17 00:00:00 2001 From: zhanghang Date: Mon, 1 Sep 2025 16:17:29 +0800 Subject: [PATCH] obtains the content size Signed-off-by: zhanghang --- api/@internal/component/ets/scroll.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/@internal/component/ets/scroll.d.ts b/api/@internal/component/ets/scroll.d.ts index 42bfadfe7b..e68f6ac5a8 100644 --- a/api/@internal/component/ets/scroll.d.ts +++ b/api/@internal/component/ets/scroll.d.ts @@ -922,6 +922,18 @@ declare class Scroller { * @arkts 1.1&1.2 */ getItemIndex(x: number, y: number): number; + + /** + * Obtains the content size. + * + * @returns { SizeResult } Returns the content size. If the scroller not bound to a component, the return value is void. + * @throws { BusinessError } 100004 - Controller not bound to a component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 22 + */ + contentSize() : SizeResult; } /** -- Gitee