161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 461847f8eSopenharmony_ci * you may not use this file except in compliance with the License. 561847f8eSopenharmony_ci * You may obtain a copy of the License at 661847f8eSopenharmony_ci * 761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 861847f8eSopenharmony_ci * 961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and 1361847f8eSopenharmony_ci * limitations under the License. 1461847f8eSopenharmony_ci */ 1561847f8eSopenharmony_ci 1661847f8eSopenharmony_ci/** 1761847f8eSopenharmony_ci * @file 1861847f8eSopenharmony_ci * @kit ArkUI 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ci/** 2261847f8eSopenharmony_ci * Declare scroll status 2361847f8eSopenharmony_ci * 2461847f8eSopenharmony_ci * @enum { number } 2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 2661847f8eSopenharmony_ci * @since 7 2761847f8eSopenharmony_ci */ 2861847f8eSopenharmony_ci/** 2961847f8eSopenharmony_ci * Declare scroll status 3061847f8eSopenharmony_ci * 3161847f8eSopenharmony_ci * @enum { number } 3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 3361847f8eSopenharmony_ci * @form 3461847f8eSopenharmony_ci * @since 9 3561847f8eSopenharmony_ci */ 3661847f8eSopenharmony_ci/** 3761847f8eSopenharmony_ci * Declare scroll status 3861847f8eSopenharmony_ci * 3961847f8eSopenharmony_ci * @enum { number } 4061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4161847f8eSopenharmony_ci * @crossplatform 4261847f8eSopenharmony_ci * @form 4361847f8eSopenharmony_ci * @since 10 4461847f8eSopenharmony_ci */ 4561847f8eSopenharmony_ci/** 4661847f8eSopenharmony_ci * Declare scroll status 4761847f8eSopenharmony_ci * 4861847f8eSopenharmony_ci * @enum { number } 4961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5061847f8eSopenharmony_ci * @crossplatform 5161847f8eSopenharmony_ci * @form 5261847f8eSopenharmony_ci * @atomicservice 5361847f8eSopenharmony_ci * @since 11 5461847f8eSopenharmony_ci */ 5561847f8eSopenharmony_cideclare enum ScrollState { 5661847f8eSopenharmony_ci /** 5761847f8eSopenharmony_ci * Not activated. 5861847f8eSopenharmony_ci * 5961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6061847f8eSopenharmony_ci * @since 7 6161847f8eSopenharmony_ci */ 6261847f8eSopenharmony_ci /** 6361847f8eSopenharmony_ci * Not activated. 6461847f8eSopenharmony_ci * 6561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6661847f8eSopenharmony_ci * @form 6761847f8eSopenharmony_ci * @since 9 6861847f8eSopenharmony_ci */ 6961847f8eSopenharmony_ci /** 7061847f8eSopenharmony_ci * Not activated. 7161847f8eSopenharmony_ci * 7261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7361847f8eSopenharmony_ci * @crossplatform 7461847f8eSopenharmony_ci * @form 7561847f8eSopenharmony_ci * @since 10 7661847f8eSopenharmony_ci */ 7761847f8eSopenharmony_ci /** 7861847f8eSopenharmony_ci * Not activated. 7961847f8eSopenharmony_ci * 8061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8161847f8eSopenharmony_ci * @crossplatform 8261847f8eSopenharmony_ci * @form 8361847f8eSopenharmony_ci * @atomicservice 8461847f8eSopenharmony_ci * @since 11 8561847f8eSopenharmony_ci */ 8661847f8eSopenharmony_ci Idle, 8761847f8eSopenharmony_ci 8861847f8eSopenharmony_ci /** 8961847f8eSopenharmony_ci * Scrolling status. 9061847f8eSopenharmony_ci * 9161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 9261847f8eSopenharmony_ci * @since 7 9361847f8eSopenharmony_ci */ 9461847f8eSopenharmony_ci /** 9561847f8eSopenharmony_ci * Scrolling status. 9661847f8eSopenharmony_ci * 9761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 9861847f8eSopenharmony_ci * @form 9961847f8eSopenharmony_ci * @since 9 10061847f8eSopenharmony_ci */ 10161847f8eSopenharmony_ci /** 10261847f8eSopenharmony_ci * Scrolling status. 10361847f8eSopenharmony_ci * 10461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10561847f8eSopenharmony_ci * @crossplatform 10661847f8eSopenharmony_ci * @form 10761847f8eSopenharmony_ci * @since 10 10861847f8eSopenharmony_ci */ 10961847f8eSopenharmony_ci /** 11061847f8eSopenharmony_ci * Scrolling status. 11161847f8eSopenharmony_ci * 11261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 11361847f8eSopenharmony_ci * @crossplatform 11461847f8eSopenharmony_ci * @form 11561847f8eSopenharmony_ci * @atomicservice 11661847f8eSopenharmony_ci * @since 11 11761847f8eSopenharmony_ci */ 11861847f8eSopenharmony_ci Scroll, 11961847f8eSopenharmony_ci 12061847f8eSopenharmony_ci /** 12161847f8eSopenharmony_ci * Drag status. 12261847f8eSopenharmony_ci * 12361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 12461847f8eSopenharmony_ci * @since 7 12561847f8eSopenharmony_ci */ 12661847f8eSopenharmony_ci /** 12761847f8eSopenharmony_ci * Drag status. 12861847f8eSopenharmony_ci * 12961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 13061847f8eSopenharmony_ci * @form 13161847f8eSopenharmony_ci * @since 9 13261847f8eSopenharmony_ci */ 13361847f8eSopenharmony_ci /** 13461847f8eSopenharmony_ci * Drag status. 13561847f8eSopenharmony_ci * 13661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 13761847f8eSopenharmony_ci * @crossplatform 13861847f8eSopenharmony_ci * @form 13961847f8eSopenharmony_ci * @since 10 14061847f8eSopenharmony_ci */ 14161847f8eSopenharmony_ci /** 14261847f8eSopenharmony_ci * Drag status. 14361847f8eSopenharmony_ci * 14461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 14561847f8eSopenharmony_ci * @crossplatform 14661847f8eSopenharmony_ci * @form 14761847f8eSopenharmony_ci * @atomicservice 14861847f8eSopenharmony_ci * @since 11 14961847f8eSopenharmony_ci */ 15061847f8eSopenharmony_ci Fling, 15161847f8eSopenharmony_ci} 15261847f8eSopenharmony_ci 15361847f8eSopenharmony_ci/** 15461847f8eSopenharmony_ci * Declare list item alignment status 15561847f8eSopenharmony_ci * 15661847f8eSopenharmony_ci * @enum { number } 15761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 15861847f8eSopenharmony_ci * @form 15961847f8eSopenharmony_ci * @since 9 16061847f8eSopenharmony_ci */ 16161847f8eSopenharmony_ci/** 16261847f8eSopenharmony_ci * Declare list item alignment status 16361847f8eSopenharmony_ci * 16461847f8eSopenharmony_ci * @enum { number } 16561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 16661847f8eSopenharmony_ci * @crossplatform 16761847f8eSopenharmony_ci * @form 16861847f8eSopenharmony_ci * @since 10 16961847f8eSopenharmony_ci */ 17061847f8eSopenharmony_ci/** 17161847f8eSopenharmony_ci * Declare list item alignment status 17261847f8eSopenharmony_ci * 17361847f8eSopenharmony_ci * @enum { number } 17461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 17561847f8eSopenharmony_ci * @crossplatform 17661847f8eSopenharmony_ci * @form 17761847f8eSopenharmony_ci * @atomicservice 17861847f8eSopenharmony_ci * @since 11 17961847f8eSopenharmony_ci */ 18061847f8eSopenharmony_cideclare enum ListItemAlign { 18161847f8eSopenharmony_ci /** 18261847f8eSopenharmony_ci * Start position in the direction of cross axis. 18361847f8eSopenharmony_ci * 18461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 18561847f8eSopenharmony_ci * @form 18661847f8eSopenharmony_ci * @since 9 18761847f8eSopenharmony_ci */ 18861847f8eSopenharmony_ci /** 18961847f8eSopenharmony_ci * Start position in the direction of cross axis. 19061847f8eSopenharmony_ci * 19161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 19261847f8eSopenharmony_ci * @crossplatform 19361847f8eSopenharmony_ci * @form 19461847f8eSopenharmony_ci * @since 10 19561847f8eSopenharmony_ci */ 19661847f8eSopenharmony_ci /** 19761847f8eSopenharmony_ci * Start position in the direction of cross axis. 19861847f8eSopenharmony_ci * 19961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 20061847f8eSopenharmony_ci * @crossplatform 20161847f8eSopenharmony_ci * @form 20261847f8eSopenharmony_ci * @atomicservice 20361847f8eSopenharmony_ci * @since 11 20461847f8eSopenharmony_ci */ 20561847f8eSopenharmony_ci Start, 20661847f8eSopenharmony_ci 20761847f8eSopenharmony_ci /** 20861847f8eSopenharmony_ci * Center position in the direction of cross axis. 20961847f8eSopenharmony_ci * 21061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 21161847f8eSopenharmony_ci * @form 21261847f8eSopenharmony_ci * @since 9 21361847f8eSopenharmony_ci */ 21461847f8eSopenharmony_ci /** 21561847f8eSopenharmony_ci * Center position in the direction of cross axis. 21661847f8eSopenharmony_ci * 21761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 21861847f8eSopenharmony_ci * @crossplatform 21961847f8eSopenharmony_ci * @form 22061847f8eSopenharmony_ci * @since 10 22161847f8eSopenharmony_ci */ 22261847f8eSopenharmony_ci /** 22361847f8eSopenharmony_ci * Center position in the direction of cross axis. 22461847f8eSopenharmony_ci * 22561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 22661847f8eSopenharmony_ci * @crossplatform 22761847f8eSopenharmony_ci * @form 22861847f8eSopenharmony_ci * @atomicservice 22961847f8eSopenharmony_ci * @since 11 23061847f8eSopenharmony_ci */ 23161847f8eSopenharmony_ci Center, 23261847f8eSopenharmony_ci 23361847f8eSopenharmony_ci /** 23461847f8eSopenharmony_ci * End position in the direction of cross axis 23561847f8eSopenharmony_ci * 23661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 23761847f8eSopenharmony_ci * @form 23861847f8eSopenharmony_ci * @since 9 23961847f8eSopenharmony_ci */ 24061847f8eSopenharmony_ci /** 24161847f8eSopenharmony_ci * End position in the direction of cross axis 24261847f8eSopenharmony_ci * 24361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 24461847f8eSopenharmony_ci * @crossplatform 24561847f8eSopenharmony_ci * @form 24661847f8eSopenharmony_ci * @since 10 24761847f8eSopenharmony_ci */ 24861847f8eSopenharmony_ci /** 24961847f8eSopenharmony_ci * End position in the direction of cross axis 25061847f8eSopenharmony_ci * 25161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 25261847f8eSopenharmony_ci * @crossplatform 25361847f8eSopenharmony_ci * @form 25461847f8eSopenharmony_ci * @atomicservice 25561847f8eSopenharmony_ci * @since 11 25661847f8eSopenharmony_ci */ 25761847f8eSopenharmony_ci End, 25861847f8eSopenharmony_ci} 25961847f8eSopenharmony_ci 26061847f8eSopenharmony_ci/** 26161847f8eSopenharmony_ci * Declare list item group area 26261847f8eSopenharmony_ci * 26361847f8eSopenharmony_ci * @enum { number } 26461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 26561847f8eSopenharmony_ci * @crossplatform 26661847f8eSopenharmony_ci * @atomicservice 26761847f8eSopenharmony_ci * @since 12 26861847f8eSopenharmony_ci */ 26961847f8eSopenharmony_cideclare enum ListItemGroupArea { 27061847f8eSopenharmony_ci /** 27161847f8eSopenharmony_ci * List item group area is none 27261847f8eSopenharmony_ci * 27361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 27461847f8eSopenharmony_ci * @crossplatform 27561847f8eSopenharmony_ci * @atomicservice 27661847f8eSopenharmony_ci * @since 12 27761847f8eSopenharmony_ci */ 27861847f8eSopenharmony_ci NONE = 0, 27961847f8eSopenharmony_ci 28061847f8eSopenharmony_ci /** 28161847f8eSopenharmony_ci * List item group area is list item 28261847f8eSopenharmony_ci * 28361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 28461847f8eSopenharmony_ci * @crossplatform 28561847f8eSopenharmony_ci * @atomicservice 28661847f8eSopenharmony_ci * @since 12 28761847f8eSopenharmony_ci */ 28861847f8eSopenharmony_ci IN_LIST_ITEM_AREA = 1, 28961847f8eSopenharmony_ci 29061847f8eSopenharmony_ci /** 29161847f8eSopenharmony_ci * List item group area is header 29261847f8eSopenharmony_ci * 29361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 29461847f8eSopenharmony_ci * @crossplatform 29561847f8eSopenharmony_ci * @atomicservice 29661847f8eSopenharmony_ci * @since 12 29761847f8eSopenharmony_ci */ 29861847f8eSopenharmony_ci IN_HEADER_AREA = 2, 29961847f8eSopenharmony_ci 30061847f8eSopenharmony_ci /** 30161847f8eSopenharmony_ci * List item group area is footer 30261847f8eSopenharmony_ci * 30361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 30461847f8eSopenharmony_ci * @crossplatform 30561847f8eSopenharmony_ci * @atomicservice 30661847f8eSopenharmony_ci * @since 12 30761847f8eSopenharmony_ci */ 30861847f8eSopenharmony_ci IN_FOOTER_AREA = 3, 30961847f8eSopenharmony_ci} 31061847f8eSopenharmony_ci 31161847f8eSopenharmony_ci/** 31261847f8eSopenharmony_ci * Declare item group sticky style. 31361847f8eSopenharmony_ci * 31461847f8eSopenharmony_ci * @enum { number } 31561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 31661847f8eSopenharmony_ci * @form 31761847f8eSopenharmony_ci * @since 9 31861847f8eSopenharmony_ci */ 31961847f8eSopenharmony_ci/** 32061847f8eSopenharmony_ci * Declare item group sticky style. 32161847f8eSopenharmony_ci * 32261847f8eSopenharmony_ci * @enum { number } 32361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 32461847f8eSopenharmony_ci * @crossplatform 32561847f8eSopenharmony_ci * @form 32661847f8eSopenharmony_ci * @since 10 32761847f8eSopenharmony_ci */ 32861847f8eSopenharmony_ci/** 32961847f8eSopenharmony_ci * Declare item group sticky style. 33061847f8eSopenharmony_ci * 33161847f8eSopenharmony_ci * @enum { number } 33261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 33361847f8eSopenharmony_ci * @crossplatform 33461847f8eSopenharmony_ci * @form 33561847f8eSopenharmony_ci * @atomicservice 33661847f8eSopenharmony_ci * @since 11 33761847f8eSopenharmony_ci */ 33861847f8eSopenharmony_cideclare enum StickyStyle { 33961847f8eSopenharmony_ci /** 34061847f8eSopenharmony_ci * The header and footer of each item group will not be pinned. 34161847f8eSopenharmony_ci * 34261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 34361847f8eSopenharmony_ci * @form 34461847f8eSopenharmony_ci * @since 9 34561847f8eSopenharmony_ci */ 34661847f8eSopenharmony_ci /** 34761847f8eSopenharmony_ci * The header and footer of each item group will not be pinned. 34861847f8eSopenharmony_ci * 34961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 35061847f8eSopenharmony_ci * @crossplatform 35161847f8eSopenharmony_ci * @form 35261847f8eSopenharmony_ci * @since 10 35361847f8eSopenharmony_ci */ 35461847f8eSopenharmony_ci /** 35561847f8eSopenharmony_ci * The header and footer of each item group will not be pinned. 35661847f8eSopenharmony_ci * 35761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 35861847f8eSopenharmony_ci * @crossplatform 35961847f8eSopenharmony_ci * @form 36061847f8eSopenharmony_ci * @atomicservice 36161847f8eSopenharmony_ci * @since 11 36261847f8eSopenharmony_ci */ 36361847f8eSopenharmony_ci None = 0, 36461847f8eSopenharmony_ci 36561847f8eSopenharmony_ci /** 36661847f8eSopenharmony_ci * The header of each item group will be pinned. 36761847f8eSopenharmony_ci * 36861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 36961847f8eSopenharmony_ci * @form 37061847f8eSopenharmony_ci * @since 9 37161847f8eSopenharmony_ci */ 37261847f8eSopenharmony_ci /** 37361847f8eSopenharmony_ci * The header of each item group will be pinned. 37461847f8eSopenharmony_ci * 37561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 37661847f8eSopenharmony_ci * @crossplatform 37761847f8eSopenharmony_ci * @form 37861847f8eSopenharmony_ci * @since 10 37961847f8eSopenharmony_ci */ 38061847f8eSopenharmony_ci /** 38161847f8eSopenharmony_ci * The header of each item group will be pinned. 38261847f8eSopenharmony_ci * 38361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 38461847f8eSopenharmony_ci * @crossplatform 38561847f8eSopenharmony_ci * @form 38661847f8eSopenharmony_ci * @atomicservice 38761847f8eSopenharmony_ci * @since 11 38861847f8eSopenharmony_ci */ 38961847f8eSopenharmony_ci Header = 1, 39061847f8eSopenharmony_ci 39161847f8eSopenharmony_ci /** 39261847f8eSopenharmony_ci * The footer of each item group will be pinned. 39361847f8eSopenharmony_ci * 39461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 39561847f8eSopenharmony_ci * @form 39661847f8eSopenharmony_ci * @since 9 39761847f8eSopenharmony_ci */ 39861847f8eSopenharmony_ci /** 39961847f8eSopenharmony_ci * The footer of each item group will be pinned. 40061847f8eSopenharmony_ci * 40161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 40261847f8eSopenharmony_ci * @crossplatform 40361847f8eSopenharmony_ci * @form 40461847f8eSopenharmony_ci * @since 10 40561847f8eSopenharmony_ci */ 40661847f8eSopenharmony_ci /** 40761847f8eSopenharmony_ci * The footer of each item group will be pinned. 40861847f8eSopenharmony_ci * 40961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 41061847f8eSopenharmony_ci * @crossplatform 41161847f8eSopenharmony_ci * @form 41261847f8eSopenharmony_ci * @atomicservice 41361847f8eSopenharmony_ci * @since 11 41461847f8eSopenharmony_ci */ 41561847f8eSopenharmony_ci Footer = 2, 41661847f8eSopenharmony_ci} 41761847f8eSopenharmony_ci 41861847f8eSopenharmony_ci/** 41961847f8eSopenharmony_ci * Declare edge effect of chain animation. 42061847f8eSopenharmony_ci * 42161847f8eSopenharmony_ci * @enum { number } 42261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 42361847f8eSopenharmony_ci * @systemapi 42461847f8eSopenharmony_ci * @since 10 42561847f8eSopenharmony_ci */ 42661847f8eSopenharmony_cideclare enum ChainEdgeEffect { 42761847f8eSopenharmony_ci /** 42861847f8eSopenharmony_ci * Default edge effect. Compress the space in the drag direction 42961847f8eSopenharmony_ci * and stretch the space in the opposite drag direction. 43061847f8eSopenharmony_ci * 43161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 43261847f8eSopenharmony_ci * @systemapi 43361847f8eSopenharmony_ci * @since 10 43461847f8eSopenharmony_ci */ 43561847f8eSopenharmony_ci DEFAULT, 43661847f8eSopenharmony_ci 43761847f8eSopenharmony_ci /** 43861847f8eSopenharmony_ci * Stretch all space. 43961847f8eSopenharmony_ci * 44061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 44161847f8eSopenharmony_ci * @systemapi 44261847f8eSopenharmony_ci * @since 10 44361847f8eSopenharmony_ci */ 44461847f8eSopenharmony_ci STRETCH, 44561847f8eSopenharmony_ci} 44661847f8eSopenharmony_ci 44761847f8eSopenharmony_ci/** 44861847f8eSopenharmony_ci * Declare limited position when scroll end. 44961847f8eSopenharmony_ci * 45061847f8eSopenharmony_ci * @enum { number } 45161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 45261847f8eSopenharmony_ci * @since 10 45361847f8eSopenharmony_ci */ 45461847f8eSopenharmony_ci/** 45561847f8eSopenharmony_ci * Declare limited position when scroll end. 45661847f8eSopenharmony_ci * 45761847f8eSopenharmony_ci * @enum { number } 45861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 45961847f8eSopenharmony_ci * @crossplatform 46061847f8eSopenharmony_ci * @atomicservice 46161847f8eSopenharmony_ci * @since 11 46261847f8eSopenharmony_ci */ 46361847f8eSopenharmony_cideclare enum ScrollSnapAlign { 46461847f8eSopenharmony_ci /** 46561847f8eSopenharmony_ci * Default no item scroll snap alignment effect. When scroll end, 46661847f8eSopenharmony_ci * list item will stop without limit. 46761847f8eSopenharmony_ci * 46861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 46961847f8eSopenharmony_ci * @since 10 47061847f8eSopenharmony_ci */ 47161847f8eSopenharmony_ci /** 47261847f8eSopenharmony_ci * Default no item scroll snap alignment effect. When scroll end, 47361847f8eSopenharmony_ci * list item will stop without limit. 47461847f8eSopenharmony_ci * 47561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 47661847f8eSopenharmony_ci * @crossplatform 47761847f8eSopenharmony_ci * @atomicservice 47861847f8eSopenharmony_ci * @since 11 47961847f8eSopenharmony_ci */ 48061847f8eSopenharmony_ci NONE, 48161847f8eSopenharmony_ci 48261847f8eSopenharmony_ci /** 48361847f8eSopenharmony_ci * The first item in view will be aligned at the start of list. 48461847f8eSopenharmony_ci * 48561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 48661847f8eSopenharmony_ci * @since 10 48761847f8eSopenharmony_ci */ 48861847f8eSopenharmony_ci /** 48961847f8eSopenharmony_ci * The first item in view will be aligned at the start of list. 49061847f8eSopenharmony_ci * 49161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 49261847f8eSopenharmony_ci * @crossplatform 49361847f8eSopenharmony_ci * @atomicservice 49461847f8eSopenharmony_ci * @since 11 49561847f8eSopenharmony_ci */ 49661847f8eSopenharmony_ci START, 49761847f8eSopenharmony_ci 49861847f8eSopenharmony_ci /** 49961847f8eSopenharmony_ci * The middle item in view will be aligned at the center of list. 50061847f8eSopenharmony_ci * 50161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 50261847f8eSopenharmony_ci * @since 10 50361847f8eSopenharmony_ci */ 50461847f8eSopenharmony_ci /** 50561847f8eSopenharmony_ci * The middle item in view will be aligned at the center of list. 50661847f8eSopenharmony_ci * 50761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 50861847f8eSopenharmony_ci * @crossplatform 50961847f8eSopenharmony_ci * @atomicservice 51061847f8eSopenharmony_ci * @since 11 51161847f8eSopenharmony_ci */ 51261847f8eSopenharmony_ci CENTER, 51361847f8eSopenharmony_ci 51461847f8eSopenharmony_ci /** 51561847f8eSopenharmony_ci * The last item in view will be aligned at the end of list. 51661847f8eSopenharmony_ci * 51761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 51861847f8eSopenharmony_ci * @since 10 51961847f8eSopenharmony_ci */ 52061847f8eSopenharmony_ci /** 52161847f8eSopenharmony_ci * The last item in view will be aligned at the end of list. 52261847f8eSopenharmony_ci * 52361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 52461847f8eSopenharmony_ci * @crossplatform 52561847f8eSopenharmony_ci * @atomicservice 52661847f8eSopenharmony_ci * @since 11 52761847f8eSopenharmony_ci */ 52861847f8eSopenharmony_ci END, 52961847f8eSopenharmony_ci} 53061847f8eSopenharmony_ci 53161847f8eSopenharmony_ci/** 53261847f8eSopenharmony_ci * Defines the chain animation options. 53361847f8eSopenharmony_ci * 53461847f8eSopenharmony_ci * @interface ChainAnimationOptions 53561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 53661847f8eSopenharmony_ci * @systemapi 53761847f8eSopenharmony_ci * @since 10 53861847f8eSopenharmony_ci */ 53961847f8eSopenharmony_cideclare interface ChainAnimationOptions { 54061847f8eSopenharmony_ci /** 54161847f8eSopenharmony_ci * Minimum space for chain animation. 54261847f8eSopenharmony_ci * 54361847f8eSopenharmony_ci * @type { Length } 54461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 54561847f8eSopenharmony_ci * @systemapi 54661847f8eSopenharmony_ci * @since 10 54761847f8eSopenharmony_ci */ 54861847f8eSopenharmony_ci minSpace: Length; 54961847f8eSopenharmony_ci 55061847f8eSopenharmony_ci /** 55161847f8eSopenharmony_ci * Maximum space for chain animation. 55261847f8eSopenharmony_ci * 55361847f8eSopenharmony_ci * @type { Length } 55461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 55561847f8eSopenharmony_ci * @systemapi 55661847f8eSopenharmony_ci * @since 10 55761847f8eSopenharmony_ci */ 55861847f8eSopenharmony_ci maxSpace: Length; 55961847f8eSopenharmony_ci 56061847f8eSopenharmony_ci /** 56161847f8eSopenharmony_ci * Conductivity of chain animation. 56261847f8eSopenharmony_ci * 56361847f8eSopenharmony_ci * @type { ?number } 56461847f8eSopenharmony_ci * @default 0.7 56561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 56661847f8eSopenharmony_ci * @systemapi 56761847f8eSopenharmony_ci * @since 10 56861847f8eSopenharmony_ci */ 56961847f8eSopenharmony_ci conductivity?: number; 57061847f8eSopenharmony_ci 57161847f8eSopenharmony_ci /** 57261847f8eSopenharmony_ci * Intensity of chain animation. 57361847f8eSopenharmony_ci * 57461847f8eSopenharmony_ci * @type { ?number } 57561847f8eSopenharmony_ci * @default 0.3 57661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 57761847f8eSopenharmony_ci * @systemapi 57861847f8eSopenharmony_ci * @since 10 57961847f8eSopenharmony_ci */ 58061847f8eSopenharmony_ci intensity?: number; 58161847f8eSopenharmony_ci 58261847f8eSopenharmony_ci /** 58361847f8eSopenharmony_ci * Edge effect of chain animation. 58461847f8eSopenharmony_ci * 58561847f8eSopenharmony_ci * @type { ?ChainEdgeEffect } 58661847f8eSopenharmony_ci * @default ChainEdgeEffect.DEFAULT 58761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 58861847f8eSopenharmony_ci * @systemapi 58961847f8eSopenharmony_ci * @since 10 59061847f8eSopenharmony_ci */ 59161847f8eSopenharmony_ci edgeEffect?: ChainEdgeEffect; 59261847f8eSopenharmony_ci 59361847f8eSopenharmony_ci /** 59461847f8eSopenharmony_ci * Stiffness of chain spring. 59561847f8eSopenharmony_ci * 59661847f8eSopenharmony_ci * @type { ?number } 59761847f8eSopenharmony_ci * @default 228 59861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 59961847f8eSopenharmony_ci * @systemapi 60061847f8eSopenharmony_ci * @since 10 60161847f8eSopenharmony_ci */ 60261847f8eSopenharmony_ci stiffness?: number; 60361847f8eSopenharmony_ci 60461847f8eSopenharmony_ci /** 60561847f8eSopenharmony_ci * Damping of chain spring. 60661847f8eSopenharmony_ci * 60761847f8eSopenharmony_ci * @type { ?number } 60861847f8eSopenharmony_ci * @default 30 60961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 61061847f8eSopenharmony_ci * @systemapi 61161847f8eSopenharmony_ci * @since 10 61261847f8eSopenharmony_ci */ 61361847f8eSopenharmony_ci damping?: number; 61461847f8eSopenharmony_ci} 61561847f8eSopenharmony_ci 61661847f8eSopenharmony_ci/** 61761847f8eSopenharmony_ci * Defines the close swipe action options. 61861847f8eSopenharmony_ci * 61961847f8eSopenharmony_ci * @interface CloseSwipeActionOptions 62061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 62161847f8eSopenharmony_ci * @crossplatform 62261847f8eSopenharmony_ci * @since 11 62361847f8eSopenharmony_ci */ 62461847f8eSopenharmony_ci/** 62561847f8eSopenharmony_ci * Defines the close swipe action options. 62661847f8eSopenharmony_ci * 62761847f8eSopenharmony_ci * @interface CloseSwipeActionOptions 62861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 62961847f8eSopenharmony_ci * @crossplatform 63061847f8eSopenharmony_ci * @atomicservice 63161847f8eSopenharmony_ci * @since 12 63261847f8eSopenharmony_ci */ 63361847f8eSopenharmony_cideclare interface CloseSwipeActionOptions { 63461847f8eSopenharmony_ci /** 63561847f8eSopenharmony_ci * Called after collapse animation completed. 63661847f8eSopenharmony_ci * 63761847f8eSopenharmony_ci * @type { ?function } 63861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 63961847f8eSopenharmony_ci * @crossplatform 64061847f8eSopenharmony_ci * @since 11 64161847f8eSopenharmony_ci */ 64261847f8eSopenharmony_ci /** 64361847f8eSopenharmony_ci * Called after collapse animation completed. 64461847f8eSopenharmony_ci * 64561847f8eSopenharmony_ci * @type { ?function } 64661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 64761847f8eSopenharmony_ci * @crossplatform 64861847f8eSopenharmony_ci * @atomicservice 64961847f8eSopenharmony_ci * @since 12 65061847f8eSopenharmony_ci */ 65161847f8eSopenharmony_ci onFinish?: ()=>void 65261847f8eSopenharmony_ci} 65361847f8eSopenharmony_ci 65461847f8eSopenharmony_ci/** 65561847f8eSopenharmony_ci * Defines the visible list content info. 65661847f8eSopenharmony_ci * 65761847f8eSopenharmony_ci * @interface VisibleListContentInfo 65861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 65961847f8eSopenharmony_ci * @crossplatform 66061847f8eSopenharmony_ci * @atomicservice 66161847f8eSopenharmony_ci * @since 12 66261847f8eSopenharmony_ci */ 66361847f8eSopenharmony_cideclare interface VisibleListContentInfo { 66461847f8eSopenharmony_ci /** 66561847f8eSopenharmony_ci * Index number of a child in the list. 66661847f8eSopenharmony_ci * 66761847f8eSopenharmony_ci * @type { number } 66861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 66961847f8eSopenharmony_ci * @crossplatform 67061847f8eSopenharmony_ci * @atomicservice 67161847f8eSopenharmony_ci * @since 12 67261847f8eSopenharmony_ci */ 67361847f8eSopenharmony_ci index: number 67461847f8eSopenharmony_ci 67561847f8eSopenharmony_ci /** 67661847f8eSopenharmony_ci * Area of the ListItemGroup. 67761847f8eSopenharmony_ci * 67861847f8eSopenharmony_ci * @type { ?ListItemGroupArea } 67961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 68061847f8eSopenharmony_ci * @crossplatform 68161847f8eSopenharmony_ci * @atomicservice 68261847f8eSopenharmony_ci * @since 12 68361847f8eSopenharmony_ci */ 68461847f8eSopenharmony_ci itemGroupArea?: ListItemGroupArea 68561847f8eSopenharmony_ci 68661847f8eSopenharmony_ci /** 68761847f8eSopenharmony_ci * Index number of a ListItem in ListItemGroup. 68861847f8eSopenharmony_ci * 68961847f8eSopenharmony_ci * @type { ?number } 69061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 69161847f8eSopenharmony_ci * @crossplatform 69261847f8eSopenharmony_ci * @atomicservice 69361847f8eSopenharmony_ci * @since 12 69461847f8eSopenharmony_ci */ 69561847f8eSopenharmony_ci itemIndexInGroup?: number 69661847f8eSopenharmony_ci} 69761847f8eSopenharmony_ci 69861847f8eSopenharmony_ci/** 69961847f8eSopenharmony_ci * Callback of scroll visible content, using in onScrollVisibleContentChange. 70061847f8eSopenharmony_ci * 70161847f8eSopenharmony_ci * @typedef {function} OnScrollVisibleContentChangeCallback 70261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 70361847f8eSopenharmony_ci * @crossplatform 70461847f8eSopenharmony_ci * @atomicservice 70561847f8eSopenharmony_ci * @since 12 70661847f8eSopenharmony_ci */ 70761847f8eSopenharmony_cideclare type OnScrollVisibleContentChangeCallback = (start: VisibleListContentInfo, end: VisibleListContentInfo) => void; 70861847f8eSopenharmony_ci 70961847f8eSopenharmony_ci/** 71061847f8eSopenharmony_ci * @extends Scroller 71161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 71261847f8eSopenharmony_ci * @crossplatform 71361847f8eSopenharmony_ci * @since 11 71461847f8eSopenharmony_ci */ 71561847f8eSopenharmony_ci/** 71661847f8eSopenharmony_ci * @extends Scroller 71761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 71861847f8eSopenharmony_ci * @crossplatform 71961847f8eSopenharmony_ci * @atomicservice 72061847f8eSopenharmony_ci * @since 12 72161847f8eSopenharmony_ci */ 72261847f8eSopenharmony_cideclare class ListScroller extends Scroller { 72361847f8eSopenharmony_ci /** 72461847f8eSopenharmony_ci * Gets the size and position of a ListItem in a ListItemGroup. 72561847f8eSopenharmony_ci * 72661847f8eSopenharmony_ci * @param { number } index - Index of the ListItemGroup in List. 72761847f8eSopenharmony_ci * @param { number } indexInGroup - Index of the ListItem in ListItemGroup. 72861847f8eSopenharmony_ci * @returns { RectResult } Returns the size and position. 72961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 73061847f8eSopenharmony_ci * <br> 1. Mandatory parameters are left unspecified. 73161847f8eSopenharmony_ci * <br> 2. Incorrect parameters types. 73261847f8eSopenharmony_ci * <br> 3. Parameter verification failed. 73361847f8eSopenharmony_ci * @throws { BusinessError } 100004 - Controller not bound to component. 73461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 73561847f8eSopenharmony_ci * @crossplatform 73661847f8eSopenharmony_ci * @since 11 73761847f8eSopenharmony_ci */ 73861847f8eSopenharmony_ci /** 73961847f8eSopenharmony_ci * Gets the size and position of a ListItem in a ListItemGroup. 74061847f8eSopenharmony_ci * 74161847f8eSopenharmony_ci * @param { number } index - Index of the ListItemGroup in List. 74261847f8eSopenharmony_ci * @param { number } indexInGroup - Index of the ListItem in ListItemGroup. 74361847f8eSopenharmony_ci * @returns { RectResult } Returns the size and position. 74461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 74561847f8eSopenharmony_ci * <br> 1. Mandatory parameters are left unspecified. 74661847f8eSopenharmony_ci * <br> 2. Incorrect parameters types. 74761847f8eSopenharmony_ci * <br> 3. Parameter verification failed. 74861847f8eSopenharmony_ci * @throws { BusinessError } 100004 - Controller not bound to component. 74961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 75061847f8eSopenharmony_ci * @crossplatform 75161847f8eSopenharmony_ci * @atomicservice 75261847f8eSopenharmony_ci * @since 12 75361847f8eSopenharmony_ci */ 75461847f8eSopenharmony_ci getItemRectInGroup(index: number, indexInGroup: number): RectResult; 75561847f8eSopenharmony_ci 75661847f8eSopenharmony_ci /** 75761847f8eSopenharmony_ci * Called when sliding to the specified index in specified ListItemGroup. 75861847f8eSopenharmony_ci * 75961847f8eSopenharmony_ci * @param { number } index - Index of the ListItemGroup in List. 76061847f8eSopenharmony_ci * @param { number } indexInGroup - Index of the ListItem in ListItemGroup. 76161847f8eSopenharmony_ci * @param { boolean } smooth - If true, scroll to index item with animation. If false, scroll to index item without animation. 76261847f8eSopenharmony_ci * @param { ScrollAlign } align - Sets the alignment mode of a specified index. 76361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 76461847f8eSopenharmony_ci * <br> 1. Mandatory parameters are left unspecified. 76561847f8eSopenharmony_ci * <br> 2. Incorrect parameters types. 76661847f8eSopenharmony_ci * <br> 3. Parameter verification failed. 76761847f8eSopenharmony_ci * @throws { BusinessError } 100004 - Controller not bound to component. 76861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 76961847f8eSopenharmony_ci * @crossplatform 77061847f8eSopenharmony_ci * @since 11 77161847f8eSopenharmony_ci */ 77261847f8eSopenharmony_ci /** 77361847f8eSopenharmony_ci * Called when sliding to the specified index in specified ListItemGroup. 77461847f8eSopenharmony_ci * 77561847f8eSopenharmony_ci * @param { number } index - Index of the ListItemGroup in List. 77661847f8eSopenharmony_ci * @param { number } indexInGroup - Index of the ListItem in ListItemGroup. 77761847f8eSopenharmony_ci * @param { boolean } smooth - If true, scroll to index item with animation. If false, scroll to index item without animation. 77861847f8eSopenharmony_ci * @param { ScrollAlign } align - Sets the alignment mode of a specified index. 77961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 78061847f8eSopenharmony_ci * <br> 1. Mandatory parameters are left unspecified. 78161847f8eSopenharmony_ci * <br> 2. Incorrect parameters types. 78261847f8eSopenharmony_ci * <br> 3. Parameter verification failed. 78361847f8eSopenharmony_ci * @throws { BusinessError } 100004 - Controller not bound to component. 78461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 78561847f8eSopenharmony_ci * @crossplatform 78661847f8eSopenharmony_ci * @atomicservice 78761847f8eSopenharmony_ci * @since 12 78861847f8eSopenharmony_ci */ 78961847f8eSopenharmony_ci scrollToItemInGroup(index: number, indexInGroup:number, smooth?: boolean, align?: ScrollAlign): void; 79061847f8eSopenharmony_ci 79161847f8eSopenharmony_ci /** 79261847f8eSopenharmony_ci * Collapse all listItem. 79361847f8eSopenharmony_ci * 79461847f8eSopenharmony_ci * @param { CloseSwipeActionOptions } options - Options of close Swipe items. 79561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 79661847f8eSopenharmony_ci * <br> 1. Mandatory parameters are left unspecified. 79761847f8eSopenharmony_ci * <br> 2. Incorrect parameters types. 79861847f8eSopenharmony_ci * <br> 3. Parameter verification failed. 79961847f8eSopenharmony_ci * @throws { BusinessError } 100004 - Controller not bound to component. 80061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 80161847f8eSopenharmony_ci * @crossplatform 80261847f8eSopenharmony_ci * @since 11 80361847f8eSopenharmony_ci */ 80461847f8eSopenharmony_ci /** 80561847f8eSopenharmony_ci * Collapse all listItem. 80661847f8eSopenharmony_ci * 80761847f8eSopenharmony_ci * @param { CloseSwipeActionOptions } options - Options of close Swipe items. 80861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 80961847f8eSopenharmony_ci * <br> 1. Mandatory parameters are left unspecified. 81061847f8eSopenharmony_ci * <br> 2. Incorrect parameters types. 81161847f8eSopenharmony_ci * <br> 3. Parameter verification failed. 81261847f8eSopenharmony_ci * @throws { BusinessError } 100004 - Controller not bound to component. 81361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 81461847f8eSopenharmony_ci * @crossplatform 81561847f8eSopenharmony_ci * @atomicservice 81661847f8eSopenharmony_ci * @since 12 81761847f8eSopenharmony_ci */ 81861847f8eSopenharmony_ci closeAllSwipeActions(options?: CloseSwipeActionOptions): void; 81961847f8eSopenharmony_ci 82061847f8eSopenharmony_ci /** 82161847f8eSopenharmony_ci * Get visible list content info by position. 82261847f8eSopenharmony_ci * 82361847f8eSopenharmony_ci * @param { number } x - X coordinate relative to the upper left corner of the list's original area, in vp. 82461847f8eSopenharmony_ci * @param { number } y - Y coordinate relative to the upper left corner of the list's original area, in vp. 82561847f8eSopenharmony_ci * @returns { VisibleListContentInfo } Visible list content info of the position. 82661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 82761847f8eSopenharmony_ci * <br> 1. Mandatory parameters are left unspecified. 82861847f8eSopenharmony_ci * <br> 2. Incorrect parameters types. 82961847f8eSopenharmony_ci * <br> 3. Parameter verification failed. 83061847f8eSopenharmony_ci * @throws { BusinessError } 100004 - The controller not bound to component. 83161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 83261847f8eSopenharmony_ci * @crossplatform 83361847f8eSopenharmony_ci * @atomicservice 83461847f8eSopenharmony_ci * @since 13 83561847f8eSopenharmony_ci */ 83661847f8eSopenharmony_ci getVisibleListContentInfo(x: number, y: number): VisibleListContentInfo; 83761847f8eSopenharmony_ci} 83861847f8eSopenharmony_ci 83961847f8eSopenharmony_ci/** 84061847f8eSopenharmony_ci * Defines List constructor options. 84161847f8eSopenharmony_ci * 84261847f8eSopenharmony_ci * @interface ListOptions 84361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 84461847f8eSopenharmony_ci * @crossplatform 84561847f8eSopenharmony_ci * @form 84661847f8eSopenharmony_ci * @atomicservice 84761847f8eSopenharmony_ci * @since 13 84861847f8eSopenharmony_ci */ 84961847f8eSopenharmony_ciinterface ListOptions { 85061847f8eSopenharmony_ci /** 85161847f8eSopenharmony_ci * Set initialIndex. 85261847f8eSopenharmony_ci * 85361847f8eSopenharmony_ci * @type { ?number } 85461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 85561847f8eSopenharmony_ci * @since 7 85661847f8eSopenharmony_ci */ 85761847f8eSopenharmony_ci /** 85861847f8eSopenharmony_ci * Set initialIndex. 85961847f8eSopenharmony_ci * 86061847f8eSopenharmony_ci * @type { ?number } 86161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 86261847f8eSopenharmony_ci * @form 86361847f8eSopenharmony_ci * @since 9 86461847f8eSopenharmony_ci */ 86561847f8eSopenharmony_ci /** 86661847f8eSopenharmony_ci * Set initialIndex. 86761847f8eSopenharmony_ci * 86861847f8eSopenharmony_ci * @type { ?number } 86961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 87061847f8eSopenharmony_ci * @crossplatform 87161847f8eSopenharmony_ci * @form 87261847f8eSopenharmony_ci * @since 10 87361847f8eSopenharmony_ci */ 87461847f8eSopenharmony_ci /** 87561847f8eSopenharmony_ci * Set initialIndex. 87661847f8eSopenharmony_ci * 87761847f8eSopenharmony_ci * @type { ?number } 87861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 87961847f8eSopenharmony_ci * @crossplatform 88061847f8eSopenharmony_ci * @form 88161847f8eSopenharmony_ci * @atomicservice 88261847f8eSopenharmony_ci * @since 11 88361847f8eSopenharmony_ci */ 88461847f8eSopenharmony_ci initialIndex?: number; 88561847f8eSopenharmony_ci /** 88661847f8eSopenharmony_ci * Set space. 88761847f8eSopenharmony_ci * 88861847f8eSopenharmony_ci * @type { ?(number | string) } 88961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 89061847f8eSopenharmony_ci * @since 7 89161847f8eSopenharmony_ci */ 89261847f8eSopenharmony_ci /** 89361847f8eSopenharmony_ci * Set space. 89461847f8eSopenharmony_ci * 89561847f8eSopenharmony_ci * @type { ?(number | string) } 89661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 89761847f8eSopenharmony_ci * @form 89861847f8eSopenharmony_ci * @since 9 89961847f8eSopenharmony_ci */ 90061847f8eSopenharmony_ci /** 90161847f8eSopenharmony_ci * Set space. 90261847f8eSopenharmony_ci * 90361847f8eSopenharmony_ci * @type { ?(number | string) } 90461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 90561847f8eSopenharmony_ci * @crossplatform 90661847f8eSopenharmony_ci * @form 90761847f8eSopenharmony_ci * @since 10 90861847f8eSopenharmony_ci */ 90961847f8eSopenharmony_ci /** 91061847f8eSopenharmony_ci * Set space. 91161847f8eSopenharmony_ci * 91261847f8eSopenharmony_ci * @type { ?(number | string) } 91361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 91461847f8eSopenharmony_ci * @crossplatform 91561847f8eSopenharmony_ci * @form 91661847f8eSopenharmony_ci * @atomicservice 91761847f8eSopenharmony_ci * @since 11 91861847f8eSopenharmony_ci */ 91961847f8eSopenharmony_ci space?: number | string; 92061847f8eSopenharmony_ci /** 92161847f8eSopenharmony_ci * Set scroller. 92261847f8eSopenharmony_ci * 92361847f8eSopenharmony_ci * @type { ?Scroller } 92461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 92561847f8eSopenharmony_ci * @since 7 92661847f8eSopenharmony_ci */ 92761847f8eSopenharmony_ci /** 92861847f8eSopenharmony_ci * Set scroller. 92961847f8eSopenharmony_ci * 93061847f8eSopenharmony_ci * @type { ?Scroller } 93161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 93261847f8eSopenharmony_ci * @form 93361847f8eSopenharmony_ci * @since 9 93461847f8eSopenharmony_ci */ 93561847f8eSopenharmony_ci /** 93661847f8eSopenharmony_ci * Set scroller. 93761847f8eSopenharmony_ci * 93861847f8eSopenharmony_ci * @type { ?Scroller } 93961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 94061847f8eSopenharmony_ci * @crossplatform 94161847f8eSopenharmony_ci * @form 94261847f8eSopenharmony_ci * @since 10 94361847f8eSopenharmony_ci */ 94461847f8eSopenharmony_ci /** 94561847f8eSopenharmony_ci * Set scroller. 94661847f8eSopenharmony_ci * 94761847f8eSopenharmony_ci * @type { ?Scroller } 94861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 94961847f8eSopenharmony_ci * @crossplatform 95061847f8eSopenharmony_ci * @form 95161847f8eSopenharmony_ci * @atomicservice 95261847f8eSopenharmony_ci * @since 11 95361847f8eSopenharmony_ci */ 95461847f8eSopenharmony_ci scroller?: Scroller; 95561847f8eSopenharmony_ci} 95661847f8eSopenharmony_ci 95761847f8eSopenharmony_ci/** 95861847f8eSopenharmony_ci * The list interface is extended. 95961847f8eSopenharmony_ci * 96061847f8eSopenharmony_ci * @interface ListInterface 96161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 96261847f8eSopenharmony_ci * @since 7 96361847f8eSopenharmony_ci */ 96461847f8eSopenharmony_ci/** 96561847f8eSopenharmony_ci * The list interface is extended. 96661847f8eSopenharmony_ci * 96761847f8eSopenharmony_ci * @interface ListInterface 96861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 96961847f8eSopenharmony_ci * @form 97061847f8eSopenharmony_ci * @since 9 97161847f8eSopenharmony_ci */ 97261847f8eSopenharmony_ci/** 97361847f8eSopenharmony_ci * The list interface is extended. 97461847f8eSopenharmony_ci * 97561847f8eSopenharmony_ci * @interface ListInterface 97661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 97761847f8eSopenharmony_ci * @crossplatform 97861847f8eSopenharmony_ci * @form 97961847f8eSopenharmony_ci * @since 10 98061847f8eSopenharmony_ci */ 98161847f8eSopenharmony_ci/** 98261847f8eSopenharmony_ci * The list interface is extended. 98361847f8eSopenharmony_ci * 98461847f8eSopenharmony_ci * @interface ListInterface 98561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 98661847f8eSopenharmony_ci * @crossplatform 98761847f8eSopenharmony_ci * @form 98861847f8eSopenharmony_ci * @atomicservice 98961847f8eSopenharmony_ci * @since 11 99061847f8eSopenharmony_ci */ 99161847f8eSopenharmony_ciinterface ListInterface { 99261847f8eSopenharmony_ci /** 99361847f8eSopenharmony_ci * Called when interface data is called. 99461847f8eSopenharmony_ci * 99561847f8eSopenharmony_ci * @param { object } value 99661847f8eSopenharmony_ci * @returns { ListAttribute } 99761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 99861847f8eSopenharmony_ci * @since 7 99961847f8eSopenharmony_ci */ 100061847f8eSopenharmony_ci /** 100161847f8eSopenharmony_ci * Called when interface data is called. 100261847f8eSopenharmony_ci * 100361847f8eSopenharmony_ci * @param { object } value 100461847f8eSopenharmony_ci * @returns { ListAttribute } 100561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 100661847f8eSopenharmony_ci * @form 100761847f8eSopenharmony_ci * @since 9 100861847f8eSopenharmony_ci */ 100961847f8eSopenharmony_ci /** 101061847f8eSopenharmony_ci * Called when interface data is called. 101161847f8eSopenharmony_ci * 101261847f8eSopenharmony_ci * @param { object } value 101361847f8eSopenharmony_ci * @returns { ListAttribute } 101461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 101561847f8eSopenharmony_ci * @crossplatform 101661847f8eSopenharmony_ci * @form 101761847f8eSopenharmony_ci * @since 10 101861847f8eSopenharmony_ci */ 101961847f8eSopenharmony_ci /** 102061847f8eSopenharmony_ci * Called when interface data is called. 102161847f8eSopenharmony_ci * 102261847f8eSopenharmony_ci * @param { object } value 102361847f8eSopenharmony_ci * @returns { ListAttribute } 102461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 102561847f8eSopenharmony_ci * @crossplatform 102661847f8eSopenharmony_ci * @form 102761847f8eSopenharmony_ci * @atomicservice 102861847f8eSopenharmony_ci * @since 11 102961847f8eSopenharmony_ci */ 103061847f8eSopenharmony_ci /** 103161847f8eSopenharmony_ci * Called when interface data is called. 103261847f8eSopenharmony_ci * 103361847f8eSopenharmony_ci * @param { ListOptions } [options] - list options 103461847f8eSopenharmony_ci * @returns { ListAttribute } 103561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 103661847f8eSopenharmony_ci * @crossplatform 103761847f8eSopenharmony_ci * @form 103861847f8eSopenharmony_ci * @atomicservice 103961847f8eSopenharmony_ci * @since 13 104061847f8eSopenharmony_ci */ 104161847f8eSopenharmony_ci (options?: ListOptions): ListAttribute; 104261847f8eSopenharmony_ci} 104361847f8eSopenharmony_ci 104461847f8eSopenharmony_ci/** 104561847f8eSopenharmony_ci * Defines List divider opotions. 104661847f8eSopenharmony_ci * 104761847f8eSopenharmony_ci * @interface ListDividerOptions 104861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 104961847f8eSopenharmony_ci * @crossplatform 105061847f8eSopenharmony_ci * @form 105161847f8eSopenharmony_ci * @atomicservice 105261847f8eSopenharmony_ci * @since 13 105361847f8eSopenharmony_ci */ 105461847f8eSopenharmony_cideclare interface ListDividerOptions { 105561847f8eSopenharmony_ci /** 105661847f8eSopenharmony_ci * Set strokeWidth. 105761847f8eSopenharmony_ci * 105861847f8eSopenharmony_ci * @type { Length } 105961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 106061847f8eSopenharmony_ci * @since 7 106161847f8eSopenharmony_ci */ 106261847f8eSopenharmony_ci /** 106361847f8eSopenharmony_ci * Set strokeWidth. 106461847f8eSopenharmony_ci * 106561847f8eSopenharmony_ci * @type { Length } 106661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 106761847f8eSopenharmony_ci * @form 106861847f8eSopenharmony_ci * @since 9 106961847f8eSopenharmony_ci */ 107061847f8eSopenharmony_ci /** 107161847f8eSopenharmony_ci * Set strokeWidth. 107261847f8eSopenharmony_ci * 107361847f8eSopenharmony_ci * @type { Length } 107461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 107561847f8eSopenharmony_ci * @crossplatform 107661847f8eSopenharmony_ci * @form 107761847f8eSopenharmony_ci * @since 10 107861847f8eSopenharmony_ci */ 107961847f8eSopenharmony_ci /** 108061847f8eSopenharmony_ci * Set strokeWidth. 108161847f8eSopenharmony_ci * 108261847f8eSopenharmony_ci * @type { Length } 108361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 108461847f8eSopenharmony_ci * @crossplatform 108561847f8eSopenharmony_ci * @form 108661847f8eSopenharmony_ci * @atomicservice 108761847f8eSopenharmony_ci * @since 11 108861847f8eSopenharmony_ci */ 108961847f8eSopenharmony_ci strokeWidth: Length; 109061847f8eSopenharmony_ci /** 109161847f8eSopenharmony_ci * Set color. 109261847f8eSopenharmony_ci * 109361847f8eSopenharmony_ci * @type { ?ResourceColor } 109461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 109561847f8eSopenharmony_ci * @since 7 109661847f8eSopenharmony_ci */ 109761847f8eSopenharmony_ci /** 109861847f8eSopenharmony_ci * Set color. 109961847f8eSopenharmony_ci * 110061847f8eSopenharmony_ci * @type { ?ResourceColor } 110161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 110261847f8eSopenharmony_ci * @form 110361847f8eSopenharmony_ci * @since 9 110461847f8eSopenharmony_ci */ 110561847f8eSopenharmony_ci /** 110661847f8eSopenharmony_ci * Set color. 110761847f8eSopenharmony_ci * 110861847f8eSopenharmony_ci * @type { ?ResourceColor } 110961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 111061847f8eSopenharmony_ci * @crossplatform 111161847f8eSopenharmony_ci * @form 111261847f8eSopenharmony_ci * @since 10 111361847f8eSopenharmony_ci */ 111461847f8eSopenharmony_ci /** 111561847f8eSopenharmony_ci * Set color. 111661847f8eSopenharmony_ci * 111761847f8eSopenharmony_ci * @type { ?ResourceColor } 111861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 111961847f8eSopenharmony_ci * @crossplatform 112061847f8eSopenharmony_ci * @form 112161847f8eSopenharmony_ci * @atomicservice 112261847f8eSopenharmony_ci * @since 11 112361847f8eSopenharmony_ci */ 112461847f8eSopenharmony_ci color?: ResourceColor; 112561847f8eSopenharmony_ci /** 112661847f8eSopenharmony_ci * Set startMargin. 112761847f8eSopenharmony_ci * 112861847f8eSopenharmony_ci * @type { ?Length } 112961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 113061847f8eSopenharmony_ci * @since 7 113161847f8eSopenharmony_ci */ 113261847f8eSopenharmony_ci /** 113361847f8eSopenharmony_ci * Set startMargin. 113461847f8eSopenharmony_ci * 113561847f8eSopenharmony_ci * @type { ?Length } 113661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 113761847f8eSopenharmony_ci * @form 113861847f8eSopenharmony_ci * @since 9 113961847f8eSopenharmony_ci */ 114061847f8eSopenharmony_ci /** 114161847f8eSopenharmony_ci * Set startMargin. 114261847f8eSopenharmony_ci * 114361847f8eSopenharmony_ci * @type { ?Length } 114461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 114561847f8eSopenharmony_ci * @crossplatform 114661847f8eSopenharmony_ci * @form 114761847f8eSopenharmony_ci * @since 10 114861847f8eSopenharmony_ci */ 114961847f8eSopenharmony_ci /** 115061847f8eSopenharmony_ci * Set startMargin. 115161847f8eSopenharmony_ci * 115261847f8eSopenharmony_ci * @type { ?Length } 115361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 115461847f8eSopenharmony_ci * @crossplatform 115561847f8eSopenharmony_ci * @form 115661847f8eSopenharmony_ci * @atomicservice 115761847f8eSopenharmony_ci * @since 11 115861847f8eSopenharmony_ci */ 115961847f8eSopenharmony_ci startMargin?: Length; 116061847f8eSopenharmony_ci /** 116161847f8eSopenharmony_ci * Set endMargin. 116261847f8eSopenharmony_ci * 116361847f8eSopenharmony_ci * @type { ?Length } 116461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 116561847f8eSopenharmony_ci * @since 7 116661847f8eSopenharmony_ci */ 116761847f8eSopenharmony_ci /** 116861847f8eSopenharmony_ci * Set endMargin. 116961847f8eSopenharmony_ci * 117061847f8eSopenharmony_ci * @type { ?Length } 117161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 117261847f8eSopenharmony_ci * @form 117361847f8eSopenharmony_ci * @since 9 117461847f8eSopenharmony_ci */ 117561847f8eSopenharmony_ci /** 117661847f8eSopenharmony_ci * Set endMargin. 117761847f8eSopenharmony_ci * 117861847f8eSopenharmony_ci * @type { ?Length } 117961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 118061847f8eSopenharmony_ci * @crossplatform 118161847f8eSopenharmony_ci * @form 118261847f8eSopenharmony_ci * @since 10 118361847f8eSopenharmony_ci */ 118461847f8eSopenharmony_ci /** 118561847f8eSopenharmony_ci * Set endMargin. 118661847f8eSopenharmony_ci * 118761847f8eSopenharmony_ci * @type { ?Length } 118861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 118961847f8eSopenharmony_ci * @crossplatform 119061847f8eSopenharmony_ci * @form 119161847f8eSopenharmony_ci * @atomicservice 119261847f8eSopenharmony_ci * @since 11 119361847f8eSopenharmony_ci */ 119461847f8eSopenharmony_ci endMargin?: Length; 119561847f8eSopenharmony_ci} 119661847f8eSopenharmony_ci 119761847f8eSopenharmony_ci/** 119861847f8eSopenharmony_ci * @extends CommonMethod<ListAttribute> 119961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 120061847f8eSopenharmony_ci * @since 7 120161847f8eSopenharmony_ci */ 120261847f8eSopenharmony_ci/** 120361847f8eSopenharmony_ci * @extends CommonMethod<ListAttribute> 120461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 120561847f8eSopenharmony_ci * @form 120661847f8eSopenharmony_ci * @since 9 120761847f8eSopenharmony_ci */ 120861847f8eSopenharmony_ci/** 120961847f8eSopenharmony_ci * @extends CommonMethod<ListAttribute> 121061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 121161847f8eSopenharmony_ci * @crossplatform 121261847f8eSopenharmony_ci * @form 121361847f8eSopenharmony_ci * @since 10 121461847f8eSopenharmony_ci */ 121561847f8eSopenharmony_ci/** 121661847f8eSopenharmony_ci * @extends ScrollableCommonMethod<ListAttribute> 121761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 121861847f8eSopenharmony_ci * @crossplatform 121961847f8eSopenharmony_ci * @form 122061847f8eSopenharmony_ci * @atomicservice 122161847f8eSopenharmony_ci * @since 11 122261847f8eSopenharmony_ci */ 122361847f8eSopenharmony_cideclare class ListAttribute extends ScrollableCommonMethod<ListAttribute> { 122461847f8eSopenharmony_ci /** 122561847f8eSopenharmony_ci * Called when need to decide how much lanes the list will show. 122661847f8eSopenharmony_ci * 122761847f8eSopenharmony_ci * @param { number | LengthConstrain } value 122861847f8eSopenharmony_ci * @returns { ListAttribute } 122961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 123061847f8eSopenharmony_ci * @form 123161847f8eSopenharmony_ci * @since 9 123261847f8eSopenharmony_ci */ 123361847f8eSopenharmony_ci /** 123461847f8eSopenharmony_ci * Called when need to decide how much lanes the list will show. 123561847f8eSopenharmony_ci * 123661847f8eSopenharmony_ci * @param { number | LengthConstrain } value 123761847f8eSopenharmony_ci * @param { Dimension } gutter 123861847f8eSopenharmony_ci * @returns { ListAttribute } 123961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 124061847f8eSopenharmony_ci * @crossplatform 124161847f8eSopenharmony_ci * @form 124261847f8eSopenharmony_ci * @since 10 124361847f8eSopenharmony_ci */ 124461847f8eSopenharmony_ci /** 124561847f8eSopenharmony_ci * Called when need to decide how much lanes the list will show. 124661847f8eSopenharmony_ci * 124761847f8eSopenharmony_ci * @param { number | LengthConstrain } value 124861847f8eSopenharmony_ci * @param { Dimension } gutter 124961847f8eSopenharmony_ci * @returns { ListAttribute } 125061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 125161847f8eSopenharmony_ci * @crossplatform 125261847f8eSopenharmony_ci * @form 125361847f8eSopenharmony_ci * @atomicservice 125461847f8eSopenharmony_ci * @since 11 125561847f8eSopenharmony_ci */ 125661847f8eSopenharmony_ci lanes(value: number | LengthConstrain, gutter?: Dimension): ListAttribute; 125761847f8eSopenharmony_ci 125861847f8eSopenharmony_ci /** 125961847f8eSopenharmony_ci * Called when need to decide how to align lanes in the direction of the cross axis. 126061847f8eSopenharmony_ci * 126161847f8eSopenharmony_ci * @param { ListItemAlign } value 126261847f8eSopenharmony_ci * @returns { ListAttribute } 126361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 126461847f8eSopenharmony_ci * @form 126561847f8eSopenharmony_ci * @since 9 126661847f8eSopenharmony_ci */ 126761847f8eSopenharmony_ci /** 126861847f8eSopenharmony_ci * Called when need to decide how to align lanes in the direction of the cross axis. 126961847f8eSopenharmony_ci * 127061847f8eSopenharmony_ci * @param { ListItemAlign } value 127161847f8eSopenharmony_ci * @returns { ListAttribute } 127261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 127361847f8eSopenharmony_ci * @crossplatform 127461847f8eSopenharmony_ci * @form 127561847f8eSopenharmony_ci * @since 10 127661847f8eSopenharmony_ci */ 127761847f8eSopenharmony_ci /** 127861847f8eSopenharmony_ci * Called when need to decide how to align lanes in the direction of the cross axis. 127961847f8eSopenharmony_ci * 128061847f8eSopenharmony_ci * @param { ListItemAlign } value 128161847f8eSopenharmony_ci * @returns { ListAttribute } 128261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 128361847f8eSopenharmony_ci * @crossplatform 128461847f8eSopenharmony_ci * @form 128561847f8eSopenharmony_ci * @atomicservice 128661847f8eSopenharmony_ci * @since 11 128761847f8eSopenharmony_ci */ 128861847f8eSopenharmony_ci alignListItem(value: ListItemAlign): ListAttribute; 128961847f8eSopenharmony_ci 129061847f8eSopenharmony_ci /** 129161847f8eSopenharmony_ci * Called when the arrangement direction of the list component is set. 129261847f8eSopenharmony_ci * 129361847f8eSopenharmony_ci * @param { Axis } value 129461847f8eSopenharmony_ci * @returns { ListAttribute } 129561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 129661847f8eSopenharmony_ci * @since 7 129761847f8eSopenharmony_ci */ 129861847f8eSopenharmony_ci /** 129961847f8eSopenharmony_ci * Called when the arrangement direction of the list component is set. 130061847f8eSopenharmony_ci * 130161847f8eSopenharmony_ci * @param { Axis } value 130261847f8eSopenharmony_ci * @returns { ListAttribute } 130361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 130461847f8eSopenharmony_ci * @form 130561847f8eSopenharmony_ci * @since 9 130661847f8eSopenharmony_ci */ 130761847f8eSopenharmony_ci /** 130861847f8eSopenharmony_ci * Called when the arrangement direction of the list component is set. 130961847f8eSopenharmony_ci * 131061847f8eSopenharmony_ci * @param { Axis } value 131161847f8eSopenharmony_ci * @returns { ListAttribute } 131261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 131361847f8eSopenharmony_ci * @crossplatform 131461847f8eSopenharmony_ci * @form 131561847f8eSopenharmony_ci * @since 10 131661847f8eSopenharmony_ci */ 131761847f8eSopenharmony_ci /** 131861847f8eSopenharmony_ci * Called when the arrangement direction of the list component is set. 131961847f8eSopenharmony_ci * 132061847f8eSopenharmony_ci * @param { Axis } value 132161847f8eSopenharmony_ci * @returns { ListAttribute } 132261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 132361847f8eSopenharmony_ci * @crossplatform 132461847f8eSopenharmony_ci * @form 132561847f8eSopenharmony_ci * @atomicservice 132661847f8eSopenharmony_ci * @since 11 132761847f8eSopenharmony_ci */ 132861847f8eSopenharmony_ci listDirection(value: Axis): ListAttribute; 132961847f8eSopenharmony_ci 133061847f8eSopenharmony_ci /** 133161847f8eSopenharmony_ci * Called when the display mode of the side slider is set. 133261847f8eSopenharmony_ci * 133361847f8eSopenharmony_ci * @param { BarState } value 133461847f8eSopenharmony_ci * @returns { ListAttribute } 133561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 133661847f8eSopenharmony_ci * @since 7 133761847f8eSopenharmony_ci */ 133861847f8eSopenharmony_ci /** 133961847f8eSopenharmony_ci * Called when the display mode of the side slider is set. 134061847f8eSopenharmony_ci * 134161847f8eSopenharmony_ci * @param { BarState } value 134261847f8eSopenharmony_ci * @returns { ListAttribute } 134361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 134461847f8eSopenharmony_ci * @form 134561847f8eSopenharmony_ci * @since 9 134661847f8eSopenharmony_ci */ 134761847f8eSopenharmony_ci /** 134861847f8eSopenharmony_ci * Called when the display mode of the side slider is set. 134961847f8eSopenharmony_ci * 135061847f8eSopenharmony_ci * @param { BarState } value 135161847f8eSopenharmony_ci * @returns { ListAttribute } 135261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 135361847f8eSopenharmony_ci * @crossplatform 135461847f8eSopenharmony_ci * @form 135561847f8eSopenharmony_ci * @since 10 135661847f8eSopenharmony_ci */ 135761847f8eSopenharmony_ci /** 135861847f8eSopenharmony_ci * Called when the display mode of the side slider is set. 135961847f8eSopenharmony_ci * 136061847f8eSopenharmony_ci * @param { BarState } value 136161847f8eSopenharmony_ci * @returns { ListAttribute } 136261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 136361847f8eSopenharmony_ci * @crossplatform 136461847f8eSopenharmony_ci * @form 136561847f8eSopenharmony_ci * @atomicservice 136661847f8eSopenharmony_ci * @since 11 136761847f8eSopenharmony_ci */ 136861847f8eSopenharmony_ci scrollBar(value: BarState): ListAttribute; 136961847f8eSopenharmony_ci 137061847f8eSopenharmony_ci /** 137161847f8eSopenharmony_ci * Called when the sliding effect is set. 137261847f8eSopenharmony_ci * 137361847f8eSopenharmony_ci * @param { EdgeEffect } value 137461847f8eSopenharmony_ci * @returns { ListAttribute } 137561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 137661847f8eSopenharmony_ci * @since 7 137761847f8eSopenharmony_ci */ 137861847f8eSopenharmony_ci /** 137961847f8eSopenharmony_ci * Called when the sliding effect is set. 138061847f8eSopenharmony_ci * 138161847f8eSopenharmony_ci * @param { EdgeEffect } value 138261847f8eSopenharmony_ci * @returns { ListAttribute } 138361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 138461847f8eSopenharmony_ci * @form 138561847f8eSopenharmony_ci * @since 9 138661847f8eSopenharmony_ci */ 138761847f8eSopenharmony_ci /** 138861847f8eSopenharmony_ci * Called when the sliding effect is set. 138961847f8eSopenharmony_ci * 139061847f8eSopenharmony_ci * @param { EdgeEffect } value 139161847f8eSopenharmony_ci * @returns { ListAttribute } 139261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 139361847f8eSopenharmony_ci * @crossplatform 139461847f8eSopenharmony_ci * @form 139561847f8eSopenharmony_ci * @since 10 139661847f8eSopenharmony_ci */ 139761847f8eSopenharmony_ci /** 139861847f8eSopenharmony_ci * Called when the sliding effect is set. 139961847f8eSopenharmony_ci * 140061847f8eSopenharmony_ci * @param { EdgeEffect } value 140161847f8eSopenharmony_ci * @param { EdgeEffectOptions } options 140261847f8eSopenharmony_ci * @returns { ListAttribute } 140361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 140461847f8eSopenharmony_ci * @crossplatform 140561847f8eSopenharmony_ci * @form 140661847f8eSopenharmony_ci * @atomicservice 140761847f8eSopenharmony_ci * @since 11 140861847f8eSopenharmony_ci */ 140961847f8eSopenharmony_ci edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): ListAttribute; 141061847f8eSopenharmony_ci 141161847f8eSopenharmony_ci /** 141261847f8eSopenharmony_ci * Called when need to decide contentStartOffset the list will show. 141361847f8eSopenharmony_ci * @param { number } value - the value Of startOffset. 141461847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 141561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 141661847f8eSopenharmony_ci * @crossplatform 141761847f8eSopenharmony_ci * @since 11 141861847f8eSopenharmony_ci */ 141961847f8eSopenharmony_ci /** 142061847f8eSopenharmony_ci * Called when need to decide contentStartOffset the list will show. 142161847f8eSopenharmony_ci * @param { number } value - the value Of startOffset. 142261847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 142361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 142461847f8eSopenharmony_ci * @crossplatform 142561847f8eSopenharmony_ci * @atomicservice 142661847f8eSopenharmony_ci * @since 12 142761847f8eSopenharmony_ci */ 142861847f8eSopenharmony_ci contentStartOffset(value: number): ListAttribute; 142961847f8eSopenharmony_ci 143061847f8eSopenharmony_ci /** 143161847f8eSopenharmony_ci * Called when need to decide contentEndOffset the list will show. 143261847f8eSopenharmony_ci * @param { number } value - the value Of endOffset. 143361847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 143461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 143561847f8eSopenharmony_ci * @crossplatform 143661847f8eSopenharmony_ci * @since 11 143761847f8eSopenharmony_ci */ 143861847f8eSopenharmony_ci /** 143961847f8eSopenharmony_ci * Called when need to decide contentEndOffset the list will show. 144061847f8eSopenharmony_ci * @param { number } value - the value Of endOffset. 144161847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 144261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 144361847f8eSopenharmony_ci * @crossplatform 144461847f8eSopenharmony_ci * @atomicservice 144561847f8eSopenharmony_ci * @since 12 144661847f8eSopenharmony_ci */ 144761847f8eSopenharmony_ci contentEndOffset(value: number): ListAttribute; 144861847f8eSopenharmony_ci 144961847f8eSopenharmony_ci /** 145061847f8eSopenharmony_ci * Called when the ListItem split line style is set. 145161847f8eSopenharmony_ci * 145261847f8eSopenharmony_ci * @param { object | null } value 145361847f8eSopenharmony_ci * @returns { ListAttribute } 145461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 145561847f8eSopenharmony_ci * @since 7 145661847f8eSopenharmony_ci */ 145761847f8eSopenharmony_ci /** 145861847f8eSopenharmony_ci * Called when the ListItem split line style is set. 145961847f8eSopenharmony_ci * 146061847f8eSopenharmony_ci * @param { {strokeWidth: Length;color?: ResourceColor;startMargin?: Length;endMargin?: Length;} | null } value 146161847f8eSopenharmony_ci * @returns { ListAttribute } 146261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 146361847f8eSopenharmony_ci * @form 146461847f8eSopenharmony_ci * @since 9 146561847f8eSopenharmony_ci */ 146661847f8eSopenharmony_ci /** 146761847f8eSopenharmony_ci * Called when the ListItem split line style is set. 146861847f8eSopenharmony_ci * 146961847f8eSopenharmony_ci * @param { {strokeWidth: Length;color?: ResourceColor;startMargin?: Length;endMargin?: Length;} | null } value 147061847f8eSopenharmony_ci * @returns { ListAttribute } 147161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 147261847f8eSopenharmony_ci * @crossplatform 147361847f8eSopenharmony_ci * @form 147461847f8eSopenharmony_ci * @since 10 147561847f8eSopenharmony_ci */ 147661847f8eSopenharmony_ci /** 147761847f8eSopenharmony_ci * Called when the ListItem split line style is set. 147861847f8eSopenharmony_ci * 147961847f8eSopenharmony_ci * @param { {strokeWidth: Length;color?: ResourceColor;startMargin?: Length;endMargin?: Length;} | null } value 148061847f8eSopenharmony_ci * @returns { ListAttribute } 148161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 148261847f8eSopenharmony_ci * @crossplatform 148361847f8eSopenharmony_ci * @form 148461847f8eSopenharmony_ci * @atomicservice 148561847f8eSopenharmony_ci * @since 11 148661847f8eSopenharmony_ci */ 148761847f8eSopenharmony_ci /** 148861847f8eSopenharmony_ci * Called when the ListItem split line style is set. 148961847f8eSopenharmony_ci * 149061847f8eSopenharmony_ci * @param { ListDividerOptions | null } value 149161847f8eSopenharmony_ci * @returns { ListAttribute } 149261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 149361847f8eSopenharmony_ci * @crossplatform 149461847f8eSopenharmony_ci * @form 149561847f8eSopenharmony_ci * @atomicservice 149661847f8eSopenharmony_ci * @since 13 149761847f8eSopenharmony_ci */ 149861847f8eSopenharmony_ci divider( 149961847f8eSopenharmony_ci value: ListDividerOptions | null, 150061847f8eSopenharmony_ci ): ListAttribute; 150161847f8eSopenharmony_ci 150261847f8eSopenharmony_ci /** 150361847f8eSopenharmony_ci * Called when judging whether it is in editable mode. 150461847f8eSopenharmony_ci * 150561847f8eSopenharmony_ci * @param { boolean } value 150661847f8eSopenharmony_ci * @returns { ListAttribute } 150761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 150861847f8eSopenharmony_ci * @since 7 150961847f8eSopenharmony_ci * @deprecated since 9 151061847f8eSopenharmony_ci */ 151161847f8eSopenharmony_ci editMode(value: boolean): ListAttribute; 151261847f8eSopenharmony_ci 151361847f8eSopenharmony_ci /** 151461847f8eSopenharmony_ci * Called when judging whether it is multiSelectable. 151561847f8eSopenharmony_ci * 151661847f8eSopenharmony_ci * @param { boolean } value 151761847f8eSopenharmony_ci * @returns { ListAttribute } 151861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 151961847f8eSopenharmony_ci * @since 8 152061847f8eSopenharmony_ci */ 152161847f8eSopenharmony_ci /** 152261847f8eSopenharmony_ci * Called when judging whether it is multiSelectable. 152361847f8eSopenharmony_ci * 152461847f8eSopenharmony_ci * @param { boolean } value 152561847f8eSopenharmony_ci * @returns { ListAttribute } 152661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 152761847f8eSopenharmony_ci * @form 152861847f8eSopenharmony_ci * @since 9 152961847f8eSopenharmony_ci */ 153061847f8eSopenharmony_ci /** 153161847f8eSopenharmony_ci * Called when judging whether it is multiSelectable. 153261847f8eSopenharmony_ci * 153361847f8eSopenharmony_ci * @param { boolean } value 153461847f8eSopenharmony_ci * @returns { ListAttribute } 153561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 153661847f8eSopenharmony_ci * @crossplatform 153761847f8eSopenharmony_ci * @form 153861847f8eSopenharmony_ci * @since 10 153961847f8eSopenharmony_ci */ 154061847f8eSopenharmony_ci /** 154161847f8eSopenharmony_ci * Called when judging whether it is multiSelectable. 154261847f8eSopenharmony_ci * 154361847f8eSopenharmony_ci * @param { boolean } value 154461847f8eSopenharmony_ci * @returns { ListAttribute } 154561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 154661847f8eSopenharmony_ci * @crossplatform 154761847f8eSopenharmony_ci * @form 154861847f8eSopenharmony_ci * @atomicservice 154961847f8eSopenharmony_ci * @since 11 155061847f8eSopenharmony_ci */ 155161847f8eSopenharmony_ci multiSelectable(value: boolean): ListAttribute; 155261847f8eSopenharmony_ci 155361847f8eSopenharmony_ci /** 155461847f8eSopenharmony_ci * Called when the minimum number of list item caches is set for long list deferred loading. 155561847f8eSopenharmony_ci * 155661847f8eSopenharmony_ci * @param { number } value 155761847f8eSopenharmony_ci * @returns { ListAttribute } 155861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 155961847f8eSopenharmony_ci * @since 7 156061847f8eSopenharmony_ci */ 156161847f8eSopenharmony_ci /** 156261847f8eSopenharmony_ci * Called when the minimum number of list item caches is set for long list deferred loading. 156361847f8eSopenharmony_ci * 156461847f8eSopenharmony_ci * @param { number } value 156561847f8eSopenharmony_ci * @returns { ListAttribute } 156661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 156761847f8eSopenharmony_ci * @form 156861847f8eSopenharmony_ci * @since 9 156961847f8eSopenharmony_ci */ 157061847f8eSopenharmony_ci /** 157161847f8eSopenharmony_ci * Called when the minimum number of list item caches is set for long list deferred loading. 157261847f8eSopenharmony_ci * 157361847f8eSopenharmony_ci * @param { number } value 157461847f8eSopenharmony_ci * @returns { ListAttribute } 157561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 157661847f8eSopenharmony_ci * @crossplatform 157761847f8eSopenharmony_ci * @form 157861847f8eSopenharmony_ci * @since 10 157961847f8eSopenharmony_ci */ 158061847f8eSopenharmony_ci /** 158161847f8eSopenharmony_ci * Called when the minimum number of list item caches is set for long list deferred loading. 158261847f8eSopenharmony_ci * 158361847f8eSopenharmony_ci * @param { number } value 158461847f8eSopenharmony_ci * @returns { ListAttribute } 158561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 158661847f8eSopenharmony_ci * @crossplatform 158761847f8eSopenharmony_ci * @form 158861847f8eSopenharmony_ci * @atomicservice 158961847f8eSopenharmony_ci * @since 11 159061847f8eSopenharmony_ci */ 159161847f8eSopenharmony_ci cachedCount(value: number): ListAttribute; 159261847f8eSopenharmony_ci 159361847f8eSopenharmony_ci /** 159461847f8eSopenharmony_ci * Called when the minimum number of list item caches is set for long list deferred loading. 159561847f8eSopenharmony_ci * 159661847f8eSopenharmony_ci * @param { number } count - cached count. 159761847f8eSopenharmony_ci * @param { boolean } show - whether to show the nodes in the cache. 159861847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 159961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 160061847f8eSopenharmony_ci * @crossplatform 160161847f8eSopenharmony_ci * @form 160261847f8eSopenharmony_ci * @atomicservice 160361847f8eSopenharmony_ci * @since 14 160461847f8eSopenharmony_ci */ 160561847f8eSopenharmony_ci cachedCount(count: number, show: boolean): ListAttribute; 160661847f8eSopenharmony_ci 160761847f8eSopenharmony_ci /** 160861847f8eSopenharmony_ci * Called when setting whether to enable chain linkage dynamic effect. 160961847f8eSopenharmony_ci * 161061847f8eSopenharmony_ci * @param { boolean } value 161161847f8eSopenharmony_ci * @returns { ListAttribute } 161261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 161361847f8eSopenharmony_ci * @since 7 161461847f8eSopenharmony_ci */ 161561847f8eSopenharmony_ci /** 161661847f8eSopenharmony_ci * Called when setting whether to enable chain linkage dynamic effect. 161761847f8eSopenharmony_ci * 161861847f8eSopenharmony_ci * @param { boolean } value 161961847f8eSopenharmony_ci * @returns { ListAttribute } 162061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 162161847f8eSopenharmony_ci * @form 162261847f8eSopenharmony_ci * @since 9 162361847f8eSopenharmony_ci */ 162461847f8eSopenharmony_ci /** 162561847f8eSopenharmony_ci * Called when setting whether to enable chain linkage dynamic effect. 162661847f8eSopenharmony_ci * 162761847f8eSopenharmony_ci * @param { boolean } value 162861847f8eSopenharmony_ci * @returns { ListAttribute } 162961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 163061847f8eSopenharmony_ci * @crossplatform 163161847f8eSopenharmony_ci * @form 163261847f8eSopenharmony_ci * @since 10 163361847f8eSopenharmony_ci */ 163461847f8eSopenharmony_ci /** 163561847f8eSopenharmony_ci * Called when setting whether to enable chain linkage dynamic effect. 163661847f8eSopenharmony_ci * 163761847f8eSopenharmony_ci * @param { boolean } value 163861847f8eSopenharmony_ci * @returns { ListAttribute } 163961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 164061847f8eSopenharmony_ci * @crossplatform 164161847f8eSopenharmony_ci * @form 164261847f8eSopenharmony_ci * @atomicservice 164361847f8eSopenharmony_ci * @since 11 164461847f8eSopenharmony_ci */ 164561847f8eSopenharmony_ci chainAnimation(value: boolean): ListAttribute; 164661847f8eSopenharmony_ci 164761847f8eSopenharmony_ci /** 164861847f8eSopenharmony_ci * Called to setting chain linkage dynamic effect options. 164961847f8eSopenharmony_ci * 165061847f8eSopenharmony_ci * @param { ChainAnimationOptions } value - options of the chain animation. 165161847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 165261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 165361847f8eSopenharmony_ci * @systemapi 165461847f8eSopenharmony_ci * @since 10 165561847f8eSopenharmony_ci */ 165661847f8eSopenharmony_ci chainAnimationOptions(value: ChainAnimationOptions): ListAttribute; 165761847f8eSopenharmony_ci 165861847f8eSopenharmony_ci /** 165961847f8eSopenharmony_ci * Called when header or footer of item group will be pinned. 166061847f8eSopenharmony_ci * 166161847f8eSopenharmony_ci * @param { StickyStyle } value 166261847f8eSopenharmony_ci * @returns { ListAttribute } 166361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 166461847f8eSopenharmony_ci * @form 166561847f8eSopenharmony_ci * @since 9 166661847f8eSopenharmony_ci */ 166761847f8eSopenharmony_ci /** 166861847f8eSopenharmony_ci * Called when header or footer of item group will be pinned. 166961847f8eSopenharmony_ci * 167061847f8eSopenharmony_ci * @param { StickyStyle } value 167161847f8eSopenharmony_ci * @returns { ListAttribute } 167261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 167361847f8eSopenharmony_ci * @crossplatform 167461847f8eSopenharmony_ci * @form 167561847f8eSopenharmony_ci * @since 10 167661847f8eSopenharmony_ci */ 167761847f8eSopenharmony_ci /** 167861847f8eSopenharmony_ci * Called when header or footer of item group will be pinned. 167961847f8eSopenharmony_ci * 168061847f8eSopenharmony_ci * @param { StickyStyle } value 168161847f8eSopenharmony_ci * @returns { ListAttribute } 168261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 168361847f8eSopenharmony_ci * @crossplatform 168461847f8eSopenharmony_ci * @form 168561847f8eSopenharmony_ci * @atomicservice 168661847f8eSopenharmony_ci * @since 11 168761847f8eSopenharmony_ci */ 168861847f8eSopenharmony_ci sticky(value: StickyStyle): ListAttribute; 168961847f8eSopenharmony_ci 169061847f8eSopenharmony_ci /** 169161847f8eSopenharmony_ci * Called to set list item scroll end alignment effect. 169261847f8eSopenharmony_ci * 169361847f8eSopenharmony_ci * @param { ScrollSnapAlign } value - options of the list alignment effect. 169461847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 169561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 169661847f8eSopenharmony_ci * @since 10 169761847f8eSopenharmony_ci */ 169861847f8eSopenharmony_ci /** 169961847f8eSopenharmony_ci * Called to set list item scroll end alignment effect. 170061847f8eSopenharmony_ci * 170161847f8eSopenharmony_ci * @param { ScrollSnapAlign } value - options of the list alignment effect. 170261847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 170361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 170461847f8eSopenharmony_ci * @crossplatform 170561847f8eSopenharmony_ci * @atomicservice 170661847f8eSopenharmony_ci * @since 11 170761847f8eSopenharmony_ci */ 170861847f8eSopenharmony_ci scrollSnapAlign(value: ScrollSnapAlign): ListAttribute; 170961847f8eSopenharmony_ci 171061847f8eSopenharmony_ci /** 171161847f8eSopenharmony_ci * Called to setting the nested scroll options. 171261847f8eSopenharmony_ci * 171361847f8eSopenharmony_ci * @param { NestedScrollOptions } value - options for nested scrolling. 171461847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 171561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 171661847f8eSopenharmony_ci * @since 10 171761847f8eSopenharmony_ci */ 171861847f8eSopenharmony_ci /** 171961847f8eSopenharmony_ci * Called to setting the nested scroll options. 172061847f8eSopenharmony_ci * 172161847f8eSopenharmony_ci * @param { NestedScrollOptions } value - options for nested scrolling. 172261847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 172361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 172461847f8eSopenharmony_ci * @crossplatform 172561847f8eSopenharmony_ci * @atomicservice 172661847f8eSopenharmony_ci * @since 11 172761847f8eSopenharmony_ci */ 172861847f8eSopenharmony_ci nestedScroll(value: NestedScrollOptions): ListAttribute; 172961847f8eSopenharmony_ci 173061847f8eSopenharmony_ci /** 173161847f8eSopenharmony_ci * Called when setting whether to enable scroll by gesture or mouse. 173261847f8eSopenharmony_ci * 173361847f8eSopenharmony_ci * @param { boolean } value 173461847f8eSopenharmony_ci * @returns { ListAttribute } The attribute of the list 173561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 173661847f8eSopenharmony_ci * @crossplatform 173761847f8eSopenharmony_ci * @since 10 173861847f8eSopenharmony_ci */ 173961847f8eSopenharmony_ci /** 174061847f8eSopenharmony_ci * Called when setting whether to enable scroll by gesture or mouse. 174161847f8eSopenharmony_ci * 174261847f8eSopenharmony_ci * @param { boolean } value 174361847f8eSopenharmony_ci * @returns { ListAttribute } The attribute of the list 174461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 174561847f8eSopenharmony_ci * @crossplatform 174661847f8eSopenharmony_ci * @atomicservice 174761847f8eSopenharmony_ci * @since 11 174861847f8eSopenharmony_ci */ 174961847f8eSopenharmony_ci enableScrollInteraction(value: boolean): ListAttribute; 175061847f8eSopenharmony_ci 175161847f8eSopenharmony_ci /** 175261847f8eSopenharmony_ci * Called to setting the friction. 175361847f8eSopenharmony_ci * 175461847f8eSopenharmony_ci * @param { number | Resource } value - options for scrolling friction. 175561847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 175661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 175761847f8eSopenharmony_ci * @crossplatform 175861847f8eSopenharmony_ci * @since 10 175961847f8eSopenharmony_ci */ 176061847f8eSopenharmony_ci /** 176161847f8eSopenharmony_ci * Called to setting the friction. 176261847f8eSopenharmony_ci * 176361847f8eSopenharmony_ci * @param { number | Resource } value - options for scrolling friction. 176461847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 176561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 176661847f8eSopenharmony_ci * @crossplatform 176761847f8eSopenharmony_ci * @atomicservice 176861847f8eSopenharmony_ci * @since 11 176961847f8eSopenharmony_ci */ 177061847f8eSopenharmony_ci friction(value: number | Resource): ListAttribute; 177161847f8eSopenharmony_ci 177261847f8eSopenharmony_ci /** 177361847f8eSopenharmony_ci * Set children main size for List. 177461847f8eSopenharmony_ci * 177561847f8eSopenharmony_ci * @param { ChildrenMainSize } value - children main size for List 177661847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 177761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 177861847f8eSopenharmony_ci * @crossplatform 177961847f8eSopenharmony_ci * @atomicservice 178061847f8eSopenharmony_ci * @since 12 178161847f8eSopenharmony_ci */ 178261847f8eSopenharmony_ci childrenMainSize(value: ChildrenMainSize): ListAttribute; 178361847f8eSopenharmony_ci 178461847f8eSopenharmony_ci /** 178561847f8eSopenharmony_ci * Set maintain visible content position List. 178661847f8eSopenharmony_ci * 178761847f8eSopenharmony_ci * @param { boolean } enabled - maintain visible content position. 178861847f8eSopenharmony_ci * @returns { ListAttribute } the attribute of the list. 178961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 179061847f8eSopenharmony_ci * @crossplatform 179161847f8eSopenharmony_ci * @atomicservice 179261847f8eSopenharmony_ci * @since 12 179361847f8eSopenharmony_ci */ 179461847f8eSopenharmony_ci maintainVisibleContentPosition(enabled: boolean): ListAttribute; 179561847f8eSopenharmony_ci 179661847f8eSopenharmony_ci /** 179761847f8eSopenharmony_ci * Called when the offset and status callback of the slide are set. 179861847f8eSopenharmony_ci * 179961847f8eSopenharmony_ci * @param { function } event 180061847f8eSopenharmony_ci * @returns { ListAttribute } 180161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 180261847f8eSopenharmony_ci * @since 7 180361847f8eSopenharmony_ci */ 180461847f8eSopenharmony_ci /** 180561847f8eSopenharmony_ci * Called when the offset and status callback of the slide are set. 180661847f8eSopenharmony_ci * 180761847f8eSopenharmony_ci * @param { function } event 180861847f8eSopenharmony_ci * @returns { ListAttribute } 180961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 181061847f8eSopenharmony_ci * @form 181161847f8eSopenharmony_ci * @since 9 181261847f8eSopenharmony_ci */ 181361847f8eSopenharmony_ci /** 181461847f8eSopenharmony_ci * Called when the offset and status callback of the slide are set. 181561847f8eSopenharmony_ci * 181661847f8eSopenharmony_ci * @param { function } event 181761847f8eSopenharmony_ci * @returns { ListAttribute } 181861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 181961847f8eSopenharmony_ci * @crossplatform 182061847f8eSopenharmony_ci * @form 182161847f8eSopenharmony_ci * @since 10 182261847f8eSopenharmony_ci */ 182361847f8eSopenharmony_ci /** 182461847f8eSopenharmony_ci * Called when the offset and status callback of the slide are set. 182561847f8eSopenharmony_ci * 182661847f8eSopenharmony_ci * @param { function } event 182761847f8eSopenharmony_ci * @returns { ListAttribute } 182861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 182961847f8eSopenharmony_ci * @crossplatform 183061847f8eSopenharmony_ci * @form 183161847f8eSopenharmony_ci * @atomicservice 183261847f8eSopenharmony_ci * @since 11 183361847f8eSopenharmony_ci * @deprecated since 12 183461847f8eSopenharmony_ci * @useinstead common.ScrollableCommonMethod#onDidScroll 183561847f8eSopenharmony_ci */ 183661847f8eSopenharmony_ci onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void): ListAttribute; 183761847f8eSopenharmony_ci 183861847f8eSopenharmony_ci /** 183961847f8eSopenharmony_ci * Called when the start and end positions of the display change. 184061847f8eSopenharmony_ci * 184161847f8eSopenharmony_ci * @param { function } event 184261847f8eSopenharmony_ci * @returns { ListAttribute } 184361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 184461847f8eSopenharmony_ci * @since 7 184561847f8eSopenharmony_ci */ 184661847f8eSopenharmony_ci /** 184761847f8eSopenharmony_ci * Called when the start and end positions of the display change. 184861847f8eSopenharmony_ci * 184961847f8eSopenharmony_ci * @param { function } event 185061847f8eSopenharmony_ci * @returns { ListAttribute } 185161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 185261847f8eSopenharmony_ci * @form 185361847f8eSopenharmony_ci * @since 9 185461847f8eSopenharmony_ci */ 185561847f8eSopenharmony_ci /** 185661847f8eSopenharmony_ci * Called when the start and end positions of the display change. 185761847f8eSopenharmony_ci * 185861847f8eSopenharmony_ci * @param { function } event 185961847f8eSopenharmony_ci * @returns { ListAttribute } 186061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 186161847f8eSopenharmony_ci * @crossplatform 186261847f8eSopenharmony_ci * @form 186361847f8eSopenharmony_ci * @since 10 186461847f8eSopenharmony_ci */ 186561847f8eSopenharmony_ci /** 186661847f8eSopenharmony_ci * Called when the start and end positions of the display change. 186761847f8eSopenharmony_ci * 186861847f8eSopenharmony_ci * @param { function } event 186961847f8eSopenharmony_ci * @returns { ListAttribute } 187061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 187161847f8eSopenharmony_ci * @crossplatform 187261847f8eSopenharmony_ci * @form 187361847f8eSopenharmony_ci * @atomicservice 187461847f8eSopenharmony_ci * @since 11 187561847f8eSopenharmony_ci */ 187661847f8eSopenharmony_ci onScrollIndex(event: (start: number, end: number, center: number) => void): ListAttribute; 187761847f8eSopenharmony_ci 187861847f8eSopenharmony_ci /** 187961847f8eSopenharmony_ci * Called when the list visible content changes. 188061847f8eSopenharmony_ci * 188161847f8eSopenharmony_ci * @param { OnScrollVisibleContentChangeCallback } handler - Callback of Scroll Visible. 188261847f8eSopenharmony_ci * @returns { ListAttribute } 188361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 188461847f8eSopenharmony_ci * @crossplatform 188561847f8eSopenharmony_ci * @atomicservice 188661847f8eSopenharmony_ci * @since 12 188761847f8eSopenharmony_ci */ 188861847f8eSopenharmony_ci onScrollVisibleContentChange(handler: OnScrollVisibleContentChangeCallback): ListAttribute; 188961847f8eSopenharmony_ci 189061847f8eSopenharmony_ci /** 189161847f8eSopenharmony_ci * Called when the list begins to arrive. 189261847f8eSopenharmony_ci * 189361847f8eSopenharmony_ci * @param { function } event 189461847f8eSopenharmony_ci * @returns { ListAttribute } 189561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 189661847f8eSopenharmony_ci * @since 7 189761847f8eSopenharmony_ci */ 189861847f8eSopenharmony_ci /** 189961847f8eSopenharmony_ci * Called when the list begins to arrive. 190061847f8eSopenharmony_ci * 190161847f8eSopenharmony_ci * @param { function } event 190261847f8eSopenharmony_ci * @returns { ListAttribute } 190361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 190461847f8eSopenharmony_ci * @form 190561847f8eSopenharmony_ci * @since 9 190661847f8eSopenharmony_ci */ 190761847f8eSopenharmony_ci /** 190861847f8eSopenharmony_ci * Called when the list begins to arrive. 190961847f8eSopenharmony_ci * 191061847f8eSopenharmony_ci * @param { function } event 191161847f8eSopenharmony_ci * @returns { ListAttribute } 191261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 191361847f8eSopenharmony_ci * @crossplatform 191461847f8eSopenharmony_ci * @form 191561847f8eSopenharmony_ci * @since 10 191661847f8eSopenharmony_ci */ 191761847f8eSopenharmony_ci /** 191861847f8eSopenharmony_ci * Called when the list begins to arrive. 191961847f8eSopenharmony_ci * 192061847f8eSopenharmony_ci * @param { function } event 192161847f8eSopenharmony_ci * @returns { ListAttribute } 192261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 192361847f8eSopenharmony_ci * @crossplatform 192461847f8eSopenharmony_ci * @form 192561847f8eSopenharmony_ci * @atomicservice 192661847f8eSopenharmony_ci * @since 11 192761847f8eSopenharmony_ci */ 192861847f8eSopenharmony_ci onReachStart(event: () => void): ListAttribute; 192961847f8eSopenharmony_ci 193061847f8eSopenharmony_ci /** 193161847f8eSopenharmony_ci * Called when the list reaches the end. 193261847f8eSopenharmony_ci * 193361847f8eSopenharmony_ci * @param { function } event 193461847f8eSopenharmony_ci * @returns { ListAttribute } 193561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 193661847f8eSopenharmony_ci * @since 7 193761847f8eSopenharmony_ci */ 193861847f8eSopenharmony_ci /** 193961847f8eSopenharmony_ci * Called when the list reaches the end. 194061847f8eSopenharmony_ci * 194161847f8eSopenharmony_ci * @param { function } event 194261847f8eSopenharmony_ci * @returns { ListAttribute } 194361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 194461847f8eSopenharmony_ci * @form 194561847f8eSopenharmony_ci * @since 9 194661847f8eSopenharmony_ci */ 194761847f8eSopenharmony_ci /** 194861847f8eSopenharmony_ci * Called when the list reaches the end. 194961847f8eSopenharmony_ci * 195061847f8eSopenharmony_ci * @param { function } event 195161847f8eSopenharmony_ci * @returns { ListAttribute } 195261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 195361847f8eSopenharmony_ci * @crossplatform 195461847f8eSopenharmony_ci * @form 195561847f8eSopenharmony_ci * @since 10 195661847f8eSopenharmony_ci */ 195761847f8eSopenharmony_ci /** 195861847f8eSopenharmony_ci * Called when the list reaches the end. 195961847f8eSopenharmony_ci * 196061847f8eSopenharmony_ci * @param { function } event 196161847f8eSopenharmony_ci * @returns { ListAttribute } 196261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 196361847f8eSopenharmony_ci * @crossplatform 196461847f8eSopenharmony_ci * @form 196561847f8eSopenharmony_ci * @atomicservice 196661847f8eSopenharmony_ci * @since 11 196761847f8eSopenharmony_ci */ 196861847f8eSopenharmony_ci onReachEnd(event: () => void): ListAttribute; 196961847f8eSopenharmony_ci 197061847f8eSopenharmony_ci /** 197161847f8eSopenharmony_ci * Called when the slider start. 197261847f8eSopenharmony_ci * 197361847f8eSopenharmony_ci * @param { function } event 197461847f8eSopenharmony_ci * @returns { ListAttribute } 197561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 197661847f8eSopenharmony_ci * @form 197761847f8eSopenharmony_ci * @since 9 197861847f8eSopenharmony_ci */ 197961847f8eSopenharmony_ci /** 198061847f8eSopenharmony_ci * Called when the slider start. 198161847f8eSopenharmony_ci * 198261847f8eSopenharmony_ci * @param { function } event 198361847f8eSopenharmony_ci * @returns { ListAttribute } 198461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 198561847f8eSopenharmony_ci * @crossplatform 198661847f8eSopenharmony_ci * @form 198761847f8eSopenharmony_ci * @since 10 198861847f8eSopenharmony_ci */ 198961847f8eSopenharmony_ci /** 199061847f8eSopenharmony_ci * Called when the slider start. 199161847f8eSopenharmony_ci * 199261847f8eSopenharmony_ci * @param { function } event 199361847f8eSopenharmony_ci * @returns { ListAttribute } 199461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 199561847f8eSopenharmony_ci * @crossplatform 199661847f8eSopenharmony_ci * @form 199761847f8eSopenharmony_ci * @atomicservice 199861847f8eSopenharmony_ci * @since 11 199961847f8eSopenharmony_ci */ 200061847f8eSopenharmony_ci onScrollStart(event: () => void): ListAttribute; 200161847f8eSopenharmony_ci 200261847f8eSopenharmony_ci /** 200361847f8eSopenharmony_ci * Called when the slider stops. 200461847f8eSopenharmony_ci * 200561847f8eSopenharmony_ci * @param { function } event 200661847f8eSopenharmony_ci * @returns { ListAttribute } 200761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 200861847f8eSopenharmony_ci * @since 7 200961847f8eSopenharmony_ci */ 201061847f8eSopenharmony_ci /** 201161847f8eSopenharmony_ci * Called when the slider stops. 201261847f8eSopenharmony_ci * 201361847f8eSopenharmony_ci * @param { function } event 201461847f8eSopenharmony_ci * @returns { ListAttribute } 201561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 201661847f8eSopenharmony_ci * @form 201761847f8eSopenharmony_ci * @since 9 201861847f8eSopenharmony_ci */ 201961847f8eSopenharmony_ci /** 202061847f8eSopenharmony_ci * Called when the slider stops. 202161847f8eSopenharmony_ci * 202261847f8eSopenharmony_ci * @param { function } event 202361847f8eSopenharmony_ci * @returns { ListAttribute } 202461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 202561847f8eSopenharmony_ci * @crossplatform 202661847f8eSopenharmony_ci * @form 202761847f8eSopenharmony_ci * @since 10 202861847f8eSopenharmony_ci */ 202961847f8eSopenharmony_ci /** 203061847f8eSopenharmony_ci * Called when the slider stops. 203161847f8eSopenharmony_ci * 203261847f8eSopenharmony_ci * @param { function } event 203361847f8eSopenharmony_ci * @returns { ListAttribute } 203461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 203561847f8eSopenharmony_ci * @crossplatform 203661847f8eSopenharmony_ci * @form 203761847f8eSopenharmony_ci * @atomicservice 203861847f8eSopenharmony_ci * @since 11 203961847f8eSopenharmony_ci */ 204061847f8eSopenharmony_ci onScrollStop(event: () => void): ListAttribute; 204161847f8eSopenharmony_ci 204261847f8eSopenharmony_ci /** 204361847f8eSopenharmony_ci * Called when a list item is deleted. 204461847f8eSopenharmony_ci * 204561847f8eSopenharmony_ci * @param { function } event 204661847f8eSopenharmony_ci * @returns { ListAttribute } 204761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 204861847f8eSopenharmony_ci * @since 7 204961847f8eSopenharmony_ci * @deprecated since 9 205061847f8eSopenharmony_ci */ 205161847f8eSopenharmony_ci onItemDelete(event: (index: number) => boolean): ListAttribute; 205261847f8eSopenharmony_ci 205361847f8eSopenharmony_ci /** 205461847f8eSopenharmony_ci * Called when a list item is moved. 205561847f8eSopenharmony_ci * 205661847f8eSopenharmony_ci * @param { function } event 205761847f8eSopenharmony_ci * @returns { ListAttribute } 205861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 205961847f8eSopenharmony_ci * @since 7 206061847f8eSopenharmony_ci */ 206161847f8eSopenharmony_ci /** 206261847f8eSopenharmony_ci * Called when a list item is moved. 206361847f8eSopenharmony_ci * 206461847f8eSopenharmony_ci * @param { function } event 206561847f8eSopenharmony_ci * @returns { ListAttribute } 206661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 206761847f8eSopenharmony_ci * @crossplatform 206861847f8eSopenharmony_ci * @since 10 206961847f8eSopenharmony_ci */ 207061847f8eSopenharmony_ci /** 207161847f8eSopenharmony_ci * Called when a list item is moved. 207261847f8eSopenharmony_ci * 207361847f8eSopenharmony_ci * @param { function } event 207461847f8eSopenharmony_ci * @returns { ListAttribute } 207561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 207661847f8eSopenharmony_ci * @crossplatform 207761847f8eSopenharmony_ci * @atomicservice 207861847f8eSopenharmony_ci * @since 11 207961847f8eSopenharmony_ci */ 208061847f8eSopenharmony_ci onItemMove(event: (from: number, to: number) => boolean): ListAttribute; 208161847f8eSopenharmony_ci 208261847f8eSopenharmony_ci /** 208361847f8eSopenharmony_ci * After a listener is bound, the component can be dragged. After the drag occurs, a callback is triggered. 208461847f8eSopenharmony_ci * (To be triggered, press and hold for 170 milliseconds (ms)) 208561847f8eSopenharmony_ci * 208661847f8eSopenharmony_ci * @param { function } event 208761847f8eSopenharmony_ci * @returns { ListAttribute } 208861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 208961847f8eSopenharmony_ci * @since 8 209061847f8eSopenharmony_ci */ 209161847f8eSopenharmony_ci /** 209261847f8eSopenharmony_ci * After a listener is bound, the component can be dragged. After the drag occurs, a callback is triggered. 209361847f8eSopenharmony_ci * (To be triggered, press and hold for 170 milliseconds (ms)) 209461847f8eSopenharmony_ci * 209561847f8eSopenharmony_ci * @param { function } event 209661847f8eSopenharmony_ci * @returns { ListAttribute } 209761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 209861847f8eSopenharmony_ci * @crossplatform 209961847f8eSopenharmony_ci * @since 10 210061847f8eSopenharmony_ci */ 210161847f8eSopenharmony_ci /** 210261847f8eSopenharmony_ci * After a listener is bound, the component can be dragged. After the drag occurs, a callback is triggered. 210361847f8eSopenharmony_ci * (To be triggered, press and hold for 170 milliseconds (ms)) 210461847f8eSopenharmony_ci * 210561847f8eSopenharmony_ci * @param { function } event 210661847f8eSopenharmony_ci * @returns { ListAttribute } 210761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 210861847f8eSopenharmony_ci * @crossplatform 210961847f8eSopenharmony_ci * @atomicservice 211061847f8eSopenharmony_ci * @since 11 211161847f8eSopenharmony_ci */ 211261847f8eSopenharmony_ci onItemDragStart(event: (event: ItemDragInfo, itemIndex: number) => ((() => any) | void)): ListAttribute; 211361847f8eSopenharmony_ci 211461847f8eSopenharmony_ci /** 211561847f8eSopenharmony_ci * After binding, a callback is triggered when the component is dragged to the range of the component. 211661847f8eSopenharmony_ci * 211761847f8eSopenharmony_ci * @param { function } event 211861847f8eSopenharmony_ci * @returns { ListAttribute } 211961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 212061847f8eSopenharmony_ci * @since 8 212161847f8eSopenharmony_ci */ 212261847f8eSopenharmony_ci /** 212361847f8eSopenharmony_ci * After binding, a callback is triggered when the component is dragged to the range of the component. 212461847f8eSopenharmony_ci * 212561847f8eSopenharmony_ci * @param { function } event 212661847f8eSopenharmony_ci * @returns { ListAttribute } 212761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 212861847f8eSopenharmony_ci * @crossplatform 212961847f8eSopenharmony_ci * @since 10 213061847f8eSopenharmony_ci */ 213161847f8eSopenharmony_ci /** 213261847f8eSopenharmony_ci * After binding, a callback is triggered when the component is dragged to the range of the component. 213361847f8eSopenharmony_ci * 213461847f8eSopenharmony_ci * @param { function } event 213561847f8eSopenharmony_ci * @returns { ListAttribute } 213661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 213761847f8eSopenharmony_ci * @crossplatform 213861847f8eSopenharmony_ci * @atomicservice 213961847f8eSopenharmony_ci * @since 11 214061847f8eSopenharmony_ci */ 214161847f8eSopenharmony_ci onItemDragEnter(event: (event: ItemDragInfo) => void): ListAttribute; 214261847f8eSopenharmony_ci 214361847f8eSopenharmony_ci /** 214461847f8eSopenharmony_ci * After binding, a callback is triggered when the drag moves within the range of a placeable component. 214561847f8eSopenharmony_ci * 214661847f8eSopenharmony_ci * @param { function } event 214761847f8eSopenharmony_ci * @returns { ListAttribute } 214861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 214961847f8eSopenharmony_ci * @since 8 215061847f8eSopenharmony_ci */ 215161847f8eSopenharmony_ci /** 215261847f8eSopenharmony_ci * After binding, a callback is triggered when the drag moves within the range of a placeable component. 215361847f8eSopenharmony_ci * 215461847f8eSopenharmony_ci * @param { function } event 215561847f8eSopenharmony_ci * @returns { ListAttribute } 215661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 215761847f8eSopenharmony_ci * @crossplatform 215861847f8eSopenharmony_ci * @since 10 215961847f8eSopenharmony_ci */ 216061847f8eSopenharmony_ci /** 216161847f8eSopenharmony_ci * After binding, a callback is triggered when the drag moves within the range of a placeable component. 216261847f8eSopenharmony_ci * 216361847f8eSopenharmony_ci * @param { function } event 216461847f8eSopenharmony_ci * @returns { ListAttribute } 216561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 216661847f8eSopenharmony_ci * @crossplatform 216761847f8eSopenharmony_ci * @atomicservice 216861847f8eSopenharmony_ci * @since 11 216961847f8eSopenharmony_ci */ 217061847f8eSopenharmony_ci onItemDragMove(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number) => void): ListAttribute; 217161847f8eSopenharmony_ci 217261847f8eSopenharmony_ci /** 217361847f8eSopenharmony_ci * After binding, a callback is triggered when the component is dragged out of the component range. 217461847f8eSopenharmony_ci * 217561847f8eSopenharmony_ci * @param { function } event 217661847f8eSopenharmony_ci * @returns { ListAttribute } 217761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 217861847f8eSopenharmony_ci * @since 8 217961847f8eSopenharmony_ci */ 218061847f8eSopenharmony_ci /** 218161847f8eSopenharmony_ci * After binding, a callback is triggered when the component is dragged out of the component range. 218261847f8eSopenharmony_ci * 218361847f8eSopenharmony_ci * @param { function } event 218461847f8eSopenharmony_ci * @returns { ListAttribute } 218561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 218661847f8eSopenharmony_ci * @crossplatform 218761847f8eSopenharmony_ci * @since 10 218861847f8eSopenharmony_ci */ 218961847f8eSopenharmony_ci /** 219061847f8eSopenharmony_ci * After binding, a callback is triggered when the component is dragged out of the component range. 219161847f8eSopenharmony_ci * 219261847f8eSopenharmony_ci * @param { function } event 219361847f8eSopenharmony_ci * @returns { ListAttribute } 219461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 219561847f8eSopenharmony_ci * @crossplatform 219661847f8eSopenharmony_ci * @atomicservice 219761847f8eSopenharmony_ci * @since 11 219861847f8eSopenharmony_ci */ 219961847f8eSopenharmony_ci onItemDragLeave(event: (event: ItemDragInfo, itemIndex: number) => void): ListAttribute; 220061847f8eSopenharmony_ci 220161847f8eSopenharmony_ci /** 220261847f8eSopenharmony_ci * The component bound to this event can be used as the drag release target. 220361847f8eSopenharmony_ci * This callback is triggered when the drag behavior is stopped within the scope of the component. 220461847f8eSopenharmony_ci * 220561847f8eSopenharmony_ci * @param { function } event 220661847f8eSopenharmony_ci * @returns { ListAttribute } 220761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 220861847f8eSopenharmony_ci * @since 8 220961847f8eSopenharmony_ci */ 221061847f8eSopenharmony_ci /** 221161847f8eSopenharmony_ci * The component bound to this event can be used as the drag release target. 221261847f8eSopenharmony_ci * This callback is triggered when the drag behavior is stopped within the scope of the component. 221361847f8eSopenharmony_ci * 221461847f8eSopenharmony_ci * @param { function } event 221561847f8eSopenharmony_ci * @returns { ListAttribute } 221661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 221761847f8eSopenharmony_ci * @crossplatform 221861847f8eSopenharmony_ci * @since 10 221961847f8eSopenharmony_ci */ 222061847f8eSopenharmony_ci /** 222161847f8eSopenharmony_ci * The component bound to this event can be used as the drag release target. 222261847f8eSopenharmony_ci * This callback is triggered when the drag behavior is stopped within the scope of the component. 222361847f8eSopenharmony_ci * 222461847f8eSopenharmony_ci * @param { function } event 222561847f8eSopenharmony_ci * @returns { ListAttribute } 222661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 222761847f8eSopenharmony_ci * @crossplatform 222861847f8eSopenharmony_ci * @atomicservice 222961847f8eSopenharmony_ci * @since 11 223061847f8eSopenharmony_ci */ 223161847f8eSopenharmony_ci onItemDrop(event: (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void): ListAttribute; 223261847f8eSopenharmony_ci 223361847f8eSopenharmony_ci /** 223461847f8eSopenharmony_ci * Called when scrolling begin each frame. 223561847f8eSopenharmony_ci * 223661847f8eSopenharmony_ci * @param { function } event 223761847f8eSopenharmony_ci * @returns { ListAttribute } 223861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 223961847f8eSopenharmony_ci * @form 224061847f8eSopenharmony_ci * @since 9 224161847f8eSopenharmony_ci */ 224261847f8eSopenharmony_ci /** 224361847f8eSopenharmony_ci * Called when scrolling begin each frame. 224461847f8eSopenharmony_ci * 224561847f8eSopenharmony_ci * @param { function } event 224661847f8eSopenharmony_ci * @returns { ListAttribute } 224761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 224861847f8eSopenharmony_ci * @crossplatform 224961847f8eSopenharmony_ci * @form 225061847f8eSopenharmony_ci * @since 10 225161847f8eSopenharmony_ci */ 225261847f8eSopenharmony_ci /** 225361847f8eSopenharmony_ci * Called when scrolling begin each frame. 225461847f8eSopenharmony_ci * 225561847f8eSopenharmony_ci * @param { function } event 225661847f8eSopenharmony_ci * @returns { ListAttribute } 225761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 225861847f8eSopenharmony_ci * @crossplatform 225961847f8eSopenharmony_ci * @form 226061847f8eSopenharmony_ci * @atomicservice 226161847f8eSopenharmony_ci * @since 11 226261847f8eSopenharmony_ci */ 226361847f8eSopenharmony_ci onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }): ListAttribute; 226461847f8eSopenharmony_ci} 226561847f8eSopenharmony_ci 226661847f8eSopenharmony_ci/** 226761847f8eSopenharmony_ci * Defines List Component. 226861847f8eSopenharmony_ci * 226961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 227061847f8eSopenharmony_ci * @since 7 227161847f8eSopenharmony_ci */ 227261847f8eSopenharmony_ci/** 227361847f8eSopenharmony_ci * Defines List Component. 227461847f8eSopenharmony_ci * 227561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 227661847f8eSopenharmony_ci * @form 227761847f8eSopenharmony_ci * @since 9 227861847f8eSopenharmony_ci */ 227961847f8eSopenharmony_ci/** 228061847f8eSopenharmony_ci * Defines List Component. 228161847f8eSopenharmony_ci * 228261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 228361847f8eSopenharmony_ci * @crossplatform 228461847f8eSopenharmony_ci * @form 228561847f8eSopenharmony_ci * @since 10 228661847f8eSopenharmony_ci */ 228761847f8eSopenharmony_ci/** 228861847f8eSopenharmony_ci * Defines List Component. 228961847f8eSopenharmony_ci * 229061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 229161847f8eSopenharmony_ci * @crossplatform 229261847f8eSopenharmony_ci * @form 229361847f8eSopenharmony_ci * @atomicservice 229461847f8eSopenharmony_ci * @since 11 229561847f8eSopenharmony_ci */ 229661847f8eSopenharmony_cideclare const List: ListInterface; 229761847f8eSopenharmony_ci 229861847f8eSopenharmony_ci/** 229961847f8eSopenharmony_ci * Defines List Component instance. 230061847f8eSopenharmony_ci * 230161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 230261847f8eSopenharmony_ci * @since 7 230361847f8eSopenharmony_ci */ 230461847f8eSopenharmony_ci/** 230561847f8eSopenharmony_ci * Defines List Component instance. 230661847f8eSopenharmony_ci * 230761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 230861847f8eSopenharmony_ci * @form 230961847f8eSopenharmony_ci * @since 9 231061847f8eSopenharmony_ci */ 231161847f8eSopenharmony_ci/** 231261847f8eSopenharmony_ci * Defines List Component instance. 231361847f8eSopenharmony_ci * 231461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 231561847f8eSopenharmony_ci * @crossplatform 231661847f8eSopenharmony_ci * @form 231761847f8eSopenharmony_ci * @since 10 231861847f8eSopenharmony_ci */ 231961847f8eSopenharmony_ci/** 232061847f8eSopenharmony_ci * Defines List Component instance. 232161847f8eSopenharmony_ci * 232261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 232361847f8eSopenharmony_ci * @crossplatform 232461847f8eSopenharmony_ci * @form 232561847f8eSopenharmony_ci * @atomicservice 232661847f8eSopenharmony_ci * @since 11 232761847f8eSopenharmony_ci */ 232861847f8eSopenharmony_cideclare const ListInstance: ListAttribute; 2329