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 * Provides methods for switching components.
2361847f8eSopenharmony_ci *
2461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
2561847f8eSopenharmony_ci * @since 7
2661847f8eSopenharmony_ci */
2761847f8eSopenharmony_ci/**
2861847f8eSopenharmony_ci * Provides methods for switching components.
2961847f8eSopenharmony_ci *
3061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
3161847f8eSopenharmony_ci * @crossplatform
3261847f8eSopenharmony_ci * @form
3361847f8eSopenharmony_ci * @since 10
3461847f8eSopenharmony_ci */
3561847f8eSopenharmony_ci/**
3661847f8eSopenharmony_ci * Provides methods for switching components.
3761847f8eSopenharmony_ci *
3861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
3961847f8eSopenharmony_ci * @crossplatform
4061847f8eSopenharmony_ci * @form
4161847f8eSopenharmony_ci * @atomicservice
4261847f8eSopenharmony_ci * @since 11
4361847f8eSopenharmony_ci */
4461847f8eSopenharmony_cideclare class SwiperController {
4561847f8eSopenharmony_ci  /**
4661847f8eSopenharmony_ci   * constructor.
4761847f8eSopenharmony_ci   *
4861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
4961847f8eSopenharmony_ci   * @since 7
5061847f8eSopenharmony_ci   */
5161847f8eSopenharmony_ci  /**
5261847f8eSopenharmony_ci   * constructor.
5361847f8eSopenharmony_ci   *
5461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
5561847f8eSopenharmony_ci   * @crossplatform
5661847f8eSopenharmony_ci   * @form
5761847f8eSopenharmony_ci   * @since 10
5861847f8eSopenharmony_ci   */
5961847f8eSopenharmony_ci  /**
6061847f8eSopenharmony_ci   * constructor.
6161847f8eSopenharmony_ci   *
6261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6361847f8eSopenharmony_ci   * @crossplatform
6461847f8eSopenharmony_ci   * @form
6561847f8eSopenharmony_ci   * @atomicservice
6661847f8eSopenharmony_ci   * @since 11
6761847f8eSopenharmony_ci   */
6861847f8eSopenharmony_ci  constructor();
6961847f8eSopenharmony_ci
7061847f8eSopenharmony_ci  /**
7161847f8eSopenharmony_ci   * Called when the next child component is displayed.
7261847f8eSopenharmony_ci   *
7361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
7461847f8eSopenharmony_ci   * @since 7
7561847f8eSopenharmony_ci   */
7661847f8eSopenharmony_ci  /**
7761847f8eSopenharmony_ci   * Called when the next child component is displayed.
7861847f8eSopenharmony_ci   *
7961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
8061847f8eSopenharmony_ci   * @crossplatform
8161847f8eSopenharmony_ci   * @form
8261847f8eSopenharmony_ci   * @since 10
8361847f8eSopenharmony_ci   */
8461847f8eSopenharmony_ci  /**
8561847f8eSopenharmony_ci   * Called when the next child component is displayed.
8661847f8eSopenharmony_ci   *
8761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
8861847f8eSopenharmony_ci   * @crossplatform
8961847f8eSopenharmony_ci   * @form
9061847f8eSopenharmony_ci   * @atomicservice
9161847f8eSopenharmony_ci   * @since 11
9261847f8eSopenharmony_ci   */
9361847f8eSopenharmony_ci  showNext();
9461847f8eSopenharmony_ci
9561847f8eSopenharmony_ci  /**
9661847f8eSopenharmony_ci   * Called when the previous subcomponent is displayed.
9761847f8eSopenharmony_ci   *
9861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
9961847f8eSopenharmony_ci   * @since 7
10061847f8eSopenharmony_ci   */
10161847f8eSopenharmony_ci  /**
10261847f8eSopenharmony_ci   * Called when the previous subcomponent is displayed.
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   * Called when the previous subcomponent is displayed.
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  showPrevious();
11961847f8eSopenharmony_ci
12061847f8eSopenharmony_ci  /**
12161847f8eSopenharmony_ci   * Controlling Swiper to change to the specified subcomponent.
12261847f8eSopenharmony_ci   *
12361847f8eSopenharmony_ci   * @param { number } index - the index of item to be redirected.
12461847f8eSopenharmony_ci   * @param { boolean } useAnimation - If true, swipe to index item with animation. If false, swipe to index item without animation. 
12561847f8eSopenharmony_ci   *      The default value is false.
12661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
12761847f8eSopenharmony_ci   * @crossplatform
12861847f8eSopenharmony_ci   * @form
12961847f8eSopenharmony_ci   * @atomicservice
13061847f8eSopenharmony_ci   * @since 12
13161847f8eSopenharmony_ci   */
13261847f8eSopenharmony_ci  changeIndex(index: number, useAnimation?: boolean);
13361847f8eSopenharmony_ci
13461847f8eSopenharmony_ci  /**
13561847f8eSopenharmony_ci   * Called when need to stop the swiper animation.
13661847f8eSopenharmony_ci   *
13761847f8eSopenharmony_ci   * @param { function } callback
13861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
13961847f8eSopenharmony_ci   * @since 7
14061847f8eSopenharmony_ci   */
14161847f8eSopenharmony_ci  /**
14261847f8eSopenharmony_ci   * Called when need to stop the swiper animation.
14361847f8eSopenharmony_ci   *
14461847f8eSopenharmony_ci   * @param { function } callback
14561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
14661847f8eSopenharmony_ci   * @crossplatform
14761847f8eSopenharmony_ci   * @form
14861847f8eSopenharmony_ci   * @since 10
14961847f8eSopenharmony_ci   */
15061847f8eSopenharmony_ci  /**
15161847f8eSopenharmony_ci   * Called when need to stop the swiper animation.
15261847f8eSopenharmony_ci   *
15361847f8eSopenharmony_ci   * @param { function } callback
15461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
15561847f8eSopenharmony_ci   * @crossplatform
15661847f8eSopenharmony_ci   * @form
15761847f8eSopenharmony_ci   * @atomicservice
15861847f8eSopenharmony_ci   * @since 11
15961847f8eSopenharmony_ci   */
16061847f8eSopenharmony_ci  finishAnimation(callback?: () => void);
16161847f8eSopenharmony_ci}
16261847f8eSopenharmony_ci
16361847f8eSopenharmony_ci/**
16461847f8eSopenharmony_ci * Defines the indicator class.
16561847f8eSopenharmony_ci *
16661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
16761847f8eSopenharmony_ci * @crossplatform
16861847f8eSopenharmony_ci * @form
16961847f8eSopenharmony_ci * @since 10
17061847f8eSopenharmony_ci */
17161847f8eSopenharmony_ci/**
17261847f8eSopenharmony_ci * Defines the indicator class.
17361847f8eSopenharmony_ci *
17461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
17561847f8eSopenharmony_ci * @crossplatform
17661847f8eSopenharmony_ci * @form
17761847f8eSopenharmony_ci * @atomicservice
17861847f8eSopenharmony_ci * @since 11
17961847f8eSopenharmony_ci */
18061847f8eSopenharmony_cideclare class Indicator<T> {
18161847f8eSopenharmony_ci  /**
18261847f8eSopenharmony_ci   * Set the indicator to the left.
18361847f8eSopenharmony_ci   *
18461847f8eSopenharmony_ci   * @param { Length } value - the indicator to the left.
18561847f8eSopenharmony_ci   * @returns { T }
18661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18761847f8eSopenharmony_ci   * @crossplatform
18861847f8eSopenharmony_ci   * @form
18961847f8eSopenharmony_ci   * @since 10
19061847f8eSopenharmony_ci   */
19161847f8eSopenharmony_ci  /**
19261847f8eSopenharmony_ci   * Set the indicator to the left.
19361847f8eSopenharmony_ci   *
19461847f8eSopenharmony_ci   * @param { Length } value - the indicator to the left.
19561847f8eSopenharmony_ci   * @returns { T }
19661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
19761847f8eSopenharmony_ci   * @crossplatform
19861847f8eSopenharmony_ci   * @form
19961847f8eSopenharmony_ci   * @atomicservice
20061847f8eSopenharmony_ci   * @since 11
20161847f8eSopenharmony_ci   */
20261847f8eSopenharmony_ci  left(value: Length): T;
20361847f8eSopenharmony_ci
20461847f8eSopenharmony_ci  /**
20561847f8eSopenharmony_ci   * Set the indicator to the top.
20661847f8eSopenharmony_ci   *
20761847f8eSopenharmony_ci   * @param { Length } value - the indicator to the top.
20861847f8eSopenharmony_ci   * @returns { T }
20961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
21061847f8eSopenharmony_ci   * @crossplatform
21161847f8eSopenharmony_ci   * @form
21261847f8eSopenharmony_ci   * @since 10
21361847f8eSopenharmony_ci   */
21461847f8eSopenharmony_ci  /**
21561847f8eSopenharmony_ci   * Set the indicator to the top.
21661847f8eSopenharmony_ci   *
21761847f8eSopenharmony_ci   * @param { Length } value - the indicator to the top.
21861847f8eSopenharmony_ci   * @returns { T }
21961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
22061847f8eSopenharmony_ci   * @crossplatform
22161847f8eSopenharmony_ci   * @form
22261847f8eSopenharmony_ci   * @atomicservice
22361847f8eSopenharmony_ci   * @since 11
22461847f8eSopenharmony_ci   */
22561847f8eSopenharmony_ci  top(value: Length): T;
22661847f8eSopenharmony_ci
22761847f8eSopenharmony_ci  /**
22861847f8eSopenharmony_ci   * Set the indicator to the right.
22961847f8eSopenharmony_ci   *
23061847f8eSopenharmony_ci   * @param { Length } value - the indicator to the right.
23161847f8eSopenharmony_ci   * @returns { T }
23261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
23361847f8eSopenharmony_ci   * @crossplatform
23461847f8eSopenharmony_ci   * @form
23561847f8eSopenharmony_ci   * @since 10
23661847f8eSopenharmony_ci   */
23761847f8eSopenharmony_ci  /**
23861847f8eSopenharmony_ci   * Set the indicator to the right.
23961847f8eSopenharmony_ci   *
24061847f8eSopenharmony_ci   * @param { Length } value - the indicator to the right.
24161847f8eSopenharmony_ci   * @returns { T }
24261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
24361847f8eSopenharmony_ci   * @crossplatform
24461847f8eSopenharmony_ci   * @form
24561847f8eSopenharmony_ci   * @atomicservice
24661847f8eSopenharmony_ci   * @since 11
24761847f8eSopenharmony_ci   */
24861847f8eSopenharmony_ci  right(value: Length): T;
24961847f8eSopenharmony_ci
25061847f8eSopenharmony_ci  /**
25161847f8eSopenharmony_ci   * Set the indicator to the bottom.
25261847f8eSopenharmony_ci   *
25361847f8eSopenharmony_ci   * @param { Length } value - the indicator to the bottom.
25461847f8eSopenharmony_ci   * @returns { T }
25561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
25661847f8eSopenharmony_ci   * @crossplatform
25761847f8eSopenharmony_ci   * @form
25861847f8eSopenharmony_ci   * @since 10
25961847f8eSopenharmony_ci   */
26061847f8eSopenharmony_ci  /**
26161847f8eSopenharmony_ci   * Set the indicator to the bottom.
26261847f8eSopenharmony_ci   *
26361847f8eSopenharmony_ci   * @param { Length } value - the indicator to the bottom.
26461847f8eSopenharmony_ci   * @returns { T }
26561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
26661847f8eSopenharmony_ci   * @crossplatform
26761847f8eSopenharmony_ci   * @form
26861847f8eSopenharmony_ci   * @atomicservice
26961847f8eSopenharmony_ci   * @since 11
27061847f8eSopenharmony_ci   */
27161847f8eSopenharmony_ci  bottom(value: Length): T;
27261847f8eSopenharmony_ci  
27361847f8eSopenharmony_ci  /**
27461847f8eSopenharmony_ci   * Set the indicator to the left in LTR
27561847f8eSopenharmony_ci   * Set the indicator to the right in RTL
27661847f8eSopenharmony_ci   *
27761847f8eSopenharmony_ci   * @param { LengthMetrics } value - the indicator to the right in LTR, indicator to the left in RTL
27861847f8eSopenharmony_ci   * @returns { T }
27961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
28061847f8eSopenharmony_ci   * @crossplatform
28161847f8eSopenharmony_ci   * @form
28261847f8eSopenharmony_ci   * @atomicservice
28361847f8eSopenharmony_ci   * @since 12
28461847f8eSopenharmony_ci   */
28561847f8eSopenharmony_ci  start(value: LengthMetrics): T;
28661847f8eSopenharmony_ci
28761847f8eSopenharmony_ci  /**
28861847f8eSopenharmony_ci   * Set the indicator to the left in RTL 
28961847f8eSopenharmony_ci   * Set the indicator to the right in LTR
29061847f8eSopenharmony_ci   *
29161847f8eSopenharmony_ci   * @param { LengthMetrics } value - the indicator to the left in RTL, Set the indicator to the right in LTR
29261847f8eSopenharmony_ci   * @returns { T }
29361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
29461847f8eSopenharmony_ci   * @crossplatform
29561847f8eSopenharmony_ci   * @form
29661847f8eSopenharmony_ci   * @atomicservice
29761847f8eSopenharmony_ci   * @since 12
29861847f8eSopenharmony_ci   */
29961847f8eSopenharmony_ci  end(value: LengthMetrics): T;   
30061847f8eSopenharmony_ci
30161847f8eSopenharmony_ci  /**
30261847f8eSopenharmony_ci   * DotIndicator class object.
30361847f8eSopenharmony_ci   *
30461847f8eSopenharmony_ci   * @returns { DotIndicator }
30561847f8eSopenharmony_ci   * @static
30661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
30761847f8eSopenharmony_ci   * @crossplatform
30861847f8eSopenharmony_ci   * @form
30961847f8eSopenharmony_ci   * @since 10
31061847f8eSopenharmony_ci   */
31161847f8eSopenharmony_ci  /**
31261847f8eSopenharmony_ci   * DotIndicator class object.
31361847f8eSopenharmony_ci   *
31461847f8eSopenharmony_ci   * @returns { DotIndicator }
31561847f8eSopenharmony_ci   * @static
31661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
31761847f8eSopenharmony_ci   * @crossplatform
31861847f8eSopenharmony_ci   * @form
31961847f8eSopenharmony_ci   * @atomicservice
32061847f8eSopenharmony_ci   * @since 11
32161847f8eSopenharmony_ci   */
32261847f8eSopenharmony_ci  static dot(): DotIndicator;
32361847f8eSopenharmony_ci
32461847f8eSopenharmony_ci  /**
32561847f8eSopenharmony_ci   * DigitIndicator class object.
32661847f8eSopenharmony_ci   *
32761847f8eSopenharmony_ci   * @returns { DigitIndicator }
32861847f8eSopenharmony_ci   * @static
32961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
33061847f8eSopenharmony_ci   * @crossplatform
33161847f8eSopenharmony_ci   * @form
33261847f8eSopenharmony_ci   * @since 10
33361847f8eSopenharmony_ci   */
33461847f8eSopenharmony_ci  /**
33561847f8eSopenharmony_ci   * DigitIndicator class object.
33661847f8eSopenharmony_ci   *
33761847f8eSopenharmony_ci   * @returns { DigitIndicator }
33861847f8eSopenharmony_ci   * @static
33961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
34061847f8eSopenharmony_ci   * @crossplatform
34161847f8eSopenharmony_ci   * @form
34261847f8eSopenharmony_ci   * @atomicservice
34361847f8eSopenharmony_ci   * @since 11
34461847f8eSopenharmony_ci   */
34561847f8eSopenharmony_ci  static digit(): DigitIndicator;
34661847f8eSopenharmony_ci}
34761847f8eSopenharmony_ci
34861847f8eSopenharmony_ci/**
34961847f8eSopenharmony_ci * Define DotIndicator, the indicator type is dot.
35061847f8eSopenharmony_ci *
35161847f8eSopenharmony_ci * @extends Indicator<DotIndicator>
35261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
35361847f8eSopenharmony_ci * @crossplatform
35461847f8eSopenharmony_ci * @form
35561847f8eSopenharmony_ci * @since 10
35661847f8eSopenharmony_ci */
35761847f8eSopenharmony_ci/**
35861847f8eSopenharmony_ci * Define DotIndicator, the indicator type is dot.
35961847f8eSopenharmony_ci *
36061847f8eSopenharmony_ci * @extends Indicator<DotIndicator>
36161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
36261847f8eSopenharmony_ci * @crossplatform
36361847f8eSopenharmony_ci * @form
36461847f8eSopenharmony_ci * @atomicservice
36561847f8eSopenharmony_ci * @since 11
36661847f8eSopenharmony_ci */
36761847f8eSopenharmony_cideclare class DotIndicator extends Indicator<DotIndicator> {
36861847f8eSopenharmony_ci  /**
36961847f8eSopenharmony_ci   * Constructor.
37061847f8eSopenharmony_ci   *
37161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
37261847f8eSopenharmony_ci   * @crossplatform
37361847f8eSopenharmony_ci   * @form
37461847f8eSopenharmony_ci   * @since 10
37561847f8eSopenharmony_ci   */
37661847f8eSopenharmony_ci  /**
37761847f8eSopenharmony_ci   * Constructor.
37861847f8eSopenharmony_ci   *
37961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
38061847f8eSopenharmony_ci   * @crossplatform
38161847f8eSopenharmony_ci   * @form
38261847f8eSopenharmony_ci   * @atomicservice
38361847f8eSopenharmony_ci   * @since 11
38461847f8eSopenharmony_ci   */
38561847f8eSopenharmony_ci  constructor();
38661847f8eSopenharmony_ci
38761847f8eSopenharmony_ci  /**
38861847f8eSopenharmony_ci   * Set the indicator item width.
38961847f8eSopenharmony_ci   *
39061847f8eSopenharmony_ci   * @param { Length } value - the indicator item width.
39161847f8eSopenharmony_ci   * @returns { DotIndicator }
39261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
39361847f8eSopenharmony_ci   * @crossplatform
39461847f8eSopenharmony_ci   * @form
39561847f8eSopenharmony_ci   * @since 10
39661847f8eSopenharmony_ci   */
39761847f8eSopenharmony_ci  /**
39861847f8eSopenharmony_ci   * Set the indicator item width.
39961847f8eSopenharmony_ci   *
40061847f8eSopenharmony_ci   * @param { Length } value - the indicator item width.
40161847f8eSopenharmony_ci   * @returns { DotIndicator }
40261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
40361847f8eSopenharmony_ci   * @crossplatform
40461847f8eSopenharmony_ci   * @form
40561847f8eSopenharmony_ci   * @atomicservice
40661847f8eSopenharmony_ci   * @since 11
40761847f8eSopenharmony_ci   */
40861847f8eSopenharmony_ci  itemWidth(value: Length): DotIndicator;
40961847f8eSopenharmony_ci
41061847f8eSopenharmony_ci  /**
41161847f8eSopenharmony_ci   * Set the indicator item height.
41261847f8eSopenharmony_ci   *
41361847f8eSopenharmony_ci   * @param { Length } value - the indicator item height.
41461847f8eSopenharmony_ci   * @returns { DotIndicator }
41561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
41661847f8eSopenharmony_ci   * @crossplatform
41761847f8eSopenharmony_ci   * @form
41861847f8eSopenharmony_ci   * @since 10
41961847f8eSopenharmony_ci   */
42061847f8eSopenharmony_ci  /**
42161847f8eSopenharmony_ci   * Set the indicator item height.
42261847f8eSopenharmony_ci   *
42361847f8eSopenharmony_ci   * @param { Length } value - the indicator item height.
42461847f8eSopenharmony_ci   * @returns { DotIndicator }
42561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
42661847f8eSopenharmony_ci   * @crossplatform
42761847f8eSopenharmony_ci   * @form
42861847f8eSopenharmony_ci   * @atomicservice
42961847f8eSopenharmony_ci   * @since 11
43061847f8eSopenharmony_ci   */
43161847f8eSopenharmony_ci  itemHeight(value: Length): DotIndicator;
43261847f8eSopenharmony_ci
43361847f8eSopenharmony_ci  /**
43461847f8eSopenharmony_ci   * Set the indicator item width when selected.
43561847f8eSopenharmony_ci   *
43661847f8eSopenharmony_ci   * @param { Length } value - the indicator item width when selected.
43761847f8eSopenharmony_ci   * @returns { DotIndicator }
43861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
43961847f8eSopenharmony_ci   * @crossplatform
44061847f8eSopenharmony_ci   * @form
44161847f8eSopenharmony_ci   * @since 10
44261847f8eSopenharmony_ci   */
44361847f8eSopenharmony_ci  /**
44461847f8eSopenharmony_ci   * Set the indicator item width when selected.
44561847f8eSopenharmony_ci   *
44661847f8eSopenharmony_ci   * @param { Length } value - the indicator item width when selected.
44761847f8eSopenharmony_ci   * @returns { DotIndicator }
44861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
44961847f8eSopenharmony_ci   * @crossplatform
45061847f8eSopenharmony_ci   * @form
45161847f8eSopenharmony_ci   * @atomicservice
45261847f8eSopenharmony_ci   * @since 11
45361847f8eSopenharmony_ci   */
45461847f8eSopenharmony_ci  selectedItemWidth(value: Length): DotIndicator;
45561847f8eSopenharmony_ci
45661847f8eSopenharmony_ci  /**
45761847f8eSopenharmony_ci   * Set the indicator item height when selected.
45861847f8eSopenharmony_ci   *
45961847f8eSopenharmony_ci   * @param { Length } value - the indicator item height when selected.
46061847f8eSopenharmony_ci   * @returns { DotIndicator }
46161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
46261847f8eSopenharmony_ci   * @crossplatform
46361847f8eSopenharmony_ci   * @form
46461847f8eSopenharmony_ci   * @since 10
46561847f8eSopenharmony_ci   */
46661847f8eSopenharmony_ci  /**
46761847f8eSopenharmony_ci   * Set the indicator item height when selected.
46861847f8eSopenharmony_ci   *
46961847f8eSopenharmony_ci   * @param { Length } value - the indicator item height when selected.
47061847f8eSopenharmony_ci   * @returns { DotIndicator }
47161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
47261847f8eSopenharmony_ci   * @crossplatform
47361847f8eSopenharmony_ci   * @form
47461847f8eSopenharmony_ci   * @atomicservice
47561847f8eSopenharmony_ci   * @since 11
47661847f8eSopenharmony_ci   */
47761847f8eSopenharmony_ci  selectedItemHeight(value: Length): DotIndicator;
47861847f8eSopenharmony_ci
47961847f8eSopenharmony_ci  /**
48061847f8eSopenharmony_ci   * Setting indicator style mask.
48161847f8eSopenharmony_ci   *
48261847f8eSopenharmony_ci   * @param { boolean } value - the indicator item mask.
48361847f8eSopenharmony_ci   * @returns { DotIndicator }
48461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
48561847f8eSopenharmony_ci   * @crossplatform
48661847f8eSopenharmony_ci   * @form
48761847f8eSopenharmony_ci   * @since 10
48861847f8eSopenharmony_ci   */
48961847f8eSopenharmony_ci  /**
49061847f8eSopenharmony_ci   * Setting indicator style mask.
49161847f8eSopenharmony_ci   *
49261847f8eSopenharmony_ci   * @param { boolean } value - the indicator item mask.
49361847f8eSopenharmony_ci   * @returns { DotIndicator }
49461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
49561847f8eSopenharmony_ci   * @crossplatform
49661847f8eSopenharmony_ci   * @form
49761847f8eSopenharmony_ci   * @atomicservice
49861847f8eSopenharmony_ci   * @since 11
49961847f8eSopenharmony_ci   */
50061847f8eSopenharmony_ci  mask(value: boolean): DotIndicator;
50161847f8eSopenharmony_ci
50261847f8eSopenharmony_ci  /**
50361847f8eSopenharmony_ci   * Set the indicator color.
50461847f8eSopenharmony_ci   *
50561847f8eSopenharmony_ci   * @param { ResourceColor } value - the indicator item color.
50661847f8eSopenharmony_ci   * @returns { DotIndicator }
50761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
50861847f8eSopenharmony_ci   * @crossplatform
50961847f8eSopenharmony_ci   * @form
51061847f8eSopenharmony_ci   * @since 10
51161847f8eSopenharmony_ci   */
51261847f8eSopenharmony_ci  /**
51361847f8eSopenharmony_ci   * Set the indicator color.
51461847f8eSopenharmony_ci   *
51561847f8eSopenharmony_ci   * @param { ResourceColor } value - the indicator item color.
51661847f8eSopenharmony_ci   * @returns { DotIndicator }
51761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
51861847f8eSopenharmony_ci   * @crossplatform
51961847f8eSopenharmony_ci   * @form
52061847f8eSopenharmony_ci   * @atomicservice
52161847f8eSopenharmony_ci   * @since 11
52261847f8eSopenharmony_ci   */
52361847f8eSopenharmony_ci  color(value: ResourceColor): DotIndicator;
52461847f8eSopenharmony_ci
52561847f8eSopenharmony_ci  /**
52661847f8eSopenharmony_ci   * Set the navigation point color.
52761847f8eSopenharmony_ci   *
52861847f8eSopenharmony_ci   * @param { ResourceColor } value - the indicator item when selected.
52961847f8eSopenharmony_ci   * @returns { DotIndicator }
53061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
53161847f8eSopenharmony_ci   * @crossplatform
53261847f8eSopenharmony_ci   * @form
53361847f8eSopenharmony_ci   * @since 10
53461847f8eSopenharmony_ci   */
53561847f8eSopenharmony_ci  /**
53661847f8eSopenharmony_ci   * Set the navigation point color.
53761847f8eSopenharmony_ci   *
53861847f8eSopenharmony_ci   * @param { ResourceColor } value - the indicator item when selected.
53961847f8eSopenharmony_ci   * @returns { DotIndicator }
54061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
54161847f8eSopenharmony_ci   * @crossplatform
54261847f8eSopenharmony_ci   * @form
54361847f8eSopenharmony_ci   * @atomicservice
54461847f8eSopenharmony_ci   * @since 11
54561847f8eSopenharmony_ci   */
54661847f8eSopenharmony_ci  selectedColor(value: ResourceColor): DotIndicator;
54761847f8eSopenharmony_ci
54861847f8eSopenharmony_ci  /**
54961847f8eSopenharmony_ci   * Set the Indicator maxDisplayCount when selected.
55061847f8eSopenharmony_ci   *
55161847f8eSopenharmony_ci   * @param { number } maxDisplayCount - the indicator item maxDisplayCount when selected.
55261847f8eSopenharmony_ci   * @returns { DotIndicator } return the DotIndicator
55361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
55461847f8eSopenharmony_ci   * @crossplatform
55561847f8eSopenharmony_ci   * @atomicservice
55661847f8eSopenharmony_ci   * @since 12
55761847f8eSopenharmony_ci   */
55861847f8eSopenharmony_ci  maxDisplayCount(maxDisplayCount: number): DotIndicator;
55961847f8eSopenharmony_ci}
56061847f8eSopenharmony_ci
56161847f8eSopenharmony_ci/**
56261847f8eSopenharmony_ci * Set Swiper column count adaptation.
56361847f8eSopenharmony_ci *
56461847f8eSopenharmony_ci * @typedef { object } SwiperAutoFill
56561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
56661847f8eSopenharmony_ci * @form
56761847f8eSopenharmony_ci * @since 10
56861847f8eSopenharmony_ci */
56961847f8eSopenharmony_ci/**
57061847f8eSopenharmony_ci * Set Swiper column count adaptation.
57161847f8eSopenharmony_ci *
57261847f8eSopenharmony_ci * @typedef { object } SwiperAutoFill
57361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
57461847f8eSopenharmony_ci * @form
57561847f8eSopenharmony_ci * @atomicservice
57661847f8eSopenharmony_ci * @since 11
57761847f8eSopenharmony_ci */
57861847f8eSopenharmony_cideclare type SwiperAutoFill = {
57961847f8eSopenharmony_ci  /**
58061847f8eSopenharmony_ci   * Set minSize size.
58161847f8eSopenharmony_ci   *
58261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
58361847f8eSopenharmony_ci   * @since 10
58461847f8eSopenharmony_ci   * @form
58561847f8eSopenharmony_ci   */
58661847f8eSopenharmony_ci  /**
58761847f8eSopenharmony_ci   * Set minSize size.
58861847f8eSopenharmony_ci   *
58961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
59061847f8eSopenharmony_ci   * @atomicservice
59161847f8eSopenharmony_ci   * @since 11
59261847f8eSopenharmony_ci   * @form
59361847f8eSopenharmony_ci   */
59461847f8eSopenharmony_ci  minSize: VP;
59561847f8eSopenharmony_ci};
59661847f8eSopenharmony_ci
59761847f8eSopenharmony_ci/**
59861847f8eSopenharmony_ci * Define DigitIndicator, the indicator type is digit.
59961847f8eSopenharmony_ci *
60061847f8eSopenharmony_ci * @extends Indicator<DigitIndicator>
60161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
60261847f8eSopenharmony_ci * @crossplatform
60361847f8eSopenharmony_ci * @form
60461847f8eSopenharmony_ci * @since 10
60561847f8eSopenharmony_ci */
60661847f8eSopenharmony_ci/**
60761847f8eSopenharmony_ci * Define DigitIndicator, the indicator type is digit.
60861847f8eSopenharmony_ci *
60961847f8eSopenharmony_ci * @extends Indicator<DigitIndicator>
61061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
61161847f8eSopenharmony_ci * @crossplatform
61261847f8eSopenharmony_ci * @form
61361847f8eSopenharmony_ci * @atomicservice
61461847f8eSopenharmony_ci * @since 11
61561847f8eSopenharmony_ci */
61661847f8eSopenharmony_cideclare class DigitIndicator extends Indicator<DigitIndicator> {
61761847f8eSopenharmony_ci  /**
61861847f8eSopenharmony_ci   * Constructor.
61961847f8eSopenharmony_ci   *
62061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
62161847f8eSopenharmony_ci   * @crossplatform
62261847f8eSopenharmony_ci   * @form
62361847f8eSopenharmony_ci   * @since 10
62461847f8eSopenharmony_ci   */
62561847f8eSopenharmony_ci  /**
62661847f8eSopenharmony_ci   * Constructor.
62761847f8eSopenharmony_ci   *
62861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
62961847f8eSopenharmony_ci   * @crossplatform
63061847f8eSopenharmony_ci   * @form
63161847f8eSopenharmony_ci   * @atomicservice
63261847f8eSopenharmony_ci   * @since 11
63361847f8eSopenharmony_ci   */
63461847f8eSopenharmony_ci  constructor();
63561847f8eSopenharmony_ci
63661847f8eSopenharmony_ci  /**
63761847f8eSopenharmony_ci   * Set font color of the digital indicator.
63861847f8eSopenharmony_ci   *
63961847f8eSopenharmony_ci   * @param { ResourceColor } value - the indicator font color.
64061847f8eSopenharmony_ci   * @returns { DigitIndicator }
64161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
64261847f8eSopenharmony_ci   * @crossplatform
64361847f8eSopenharmony_ci   * @form
64461847f8eSopenharmony_ci   * @since 10
64561847f8eSopenharmony_ci   */
64661847f8eSopenharmony_ci  /**
64761847f8eSopenharmony_ci   * Set font color of the digital indicator.
64861847f8eSopenharmony_ci   *
64961847f8eSopenharmony_ci   * @param { ResourceColor } value - the indicator font color.
65061847f8eSopenharmony_ci   * @returns { DigitIndicator }
65161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
65261847f8eSopenharmony_ci   * @crossplatform
65361847f8eSopenharmony_ci   * @form
65461847f8eSopenharmony_ci   * @atomicservice
65561847f8eSopenharmony_ci   * @since 11
65661847f8eSopenharmony_ci   */
65761847f8eSopenharmony_ci  fontColor(value: ResourceColor): DigitIndicator;
65861847f8eSopenharmony_ci
65961847f8eSopenharmony_ci  /**
66061847f8eSopenharmony_ci   * Set font color of the digital indicator when selected.
66161847f8eSopenharmony_ci   *
66261847f8eSopenharmony_ci   * @param { ResourceColor } value - the indicator font color when selected.
66361847f8eSopenharmony_ci   * @returns { DigitIndicator }
66461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
66561847f8eSopenharmony_ci   * @crossplatform
66661847f8eSopenharmony_ci   * @form
66761847f8eSopenharmony_ci   * @since 10
66861847f8eSopenharmony_ci   */
66961847f8eSopenharmony_ci  /**
67061847f8eSopenharmony_ci   * Set font color of the digital indicator when selected.
67161847f8eSopenharmony_ci   *
67261847f8eSopenharmony_ci   * @param { ResourceColor } value - the indicator font color when selected.
67361847f8eSopenharmony_ci   * @returns { DigitIndicator }
67461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
67561847f8eSopenharmony_ci   * @crossplatform
67661847f8eSopenharmony_ci   * @form
67761847f8eSopenharmony_ci   * @atomicservice
67861847f8eSopenharmony_ci   * @since 11
67961847f8eSopenharmony_ci   */
68061847f8eSopenharmony_ci  selectedFontColor(value: ResourceColor): DigitIndicator;
68161847f8eSopenharmony_ci
68261847f8eSopenharmony_ci  /**
68361847f8eSopenharmony_ci   * Set the digital indicator font (just support font size and weight).
68461847f8eSopenharmony_ci   *
68561847f8eSopenharmony_ci   * @param { Font } value - the indicator font size and weight.
68661847f8eSopenharmony_ci   * @returns { DigitIndicator }
68761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
68861847f8eSopenharmony_ci   * @crossplatform
68961847f8eSopenharmony_ci   * @form
69061847f8eSopenharmony_ci   * @since 10
69161847f8eSopenharmony_ci   */
69261847f8eSopenharmony_ci  /**
69361847f8eSopenharmony_ci   * Set the digital indicator font (just support font size and weight).
69461847f8eSopenharmony_ci   *
69561847f8eSopenharmony_ci   * @param { Font } value - the indicator font size and weight.
69661847f8eSopenharmony_ci   * @returns { DigitIndicator }
69761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
69861847f8eSopenharmony_ci   * @crossplatform
69961847f8eSopenharmony_ci   * @form
70061847f8eSopenharmony_ci   * @atomicservice
70161847f8eSopenharmony_ci   * @since 11
70261847f8eSopenharmony_ci   */
70361847f8eSopenharmony_ci  digitFont(value: Font): DigitIndicator;
70461847f8eSopenharmony_ci
70561847f8eSopenharmony_ci  /**
70661847f8eSopenharmony_ci   * Set the digital indicator font (just support font size and weight).
70761847f8eSopenharmony_ci   *
70861847f8eSopenharmony_ci   * @param { Font } value - the indicator font size and weight when selected.
70961847f8eSopenharmony_ci   * @returns { DigitIndicator }
71061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
71161847f8eSopenharmony_ci   * @crossplatform
71261847f8eSopenharmony_ci   * @form
71361847f8eSopenharmony_ci   * @since 10
71461847f8eSopenharmony_ci   */
71561847f8eSopenharmony_ci  /**
71661847f8eSopenharmony_ci   * Set the digital indicator font (just support font size and weight).
71761847f8eSopenharmony_ci   *
71861847f8eSopenharmony_ci   * @param { Font } value - the indicator font size and weight when selected.
71961847f8eSopenharmony_ci   * @returns { DigitIndicator }
72061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
72161847f8eSopenharmony_ci   * @crossplatform
72261847f8eSopenharmony_ci   * @form
72361847f8eSopenharmony_ci   * @atomicservice
72461847f8eSopenharmony_ci   * @since 11
72561847f8eSopenharmony_ci   */
72661847f8eSopenharmony_ci  selectedDigitFont(value: Font): DigitIndicator;
72761847f8eSopenharmony_ci}
72861847f8eSopenharmony_ci
72961847f8eSopenharmony_ci/**
73061847f8eSopenharmony_ci * Arrow object.
73161847f8eSopenharmony_ci *
73261847f8eSopenharmony_ci * @interface ArrowStyle
73361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
73461847f8eSopenharmony_ci * @since 10
73561847f8eSopenharmony_ci */
73661847f8eSopenharmony_ci/**
73761847f8eSopenharmony_ci * Arrow object.
73861847f8eSopenharmony_ci *
73961847f8eSopenharmony_ci * @interface ArrowStyle
74061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
74161847f8eSopenharmony_ci * @crossplatform
74261847f8eSopenharmony_ci * @atomicservice
74361847f8eSopenharmony_ci * @since 11
74461847f8eSopenharmony_ci */
74561847f8eSopenharmony_cideclare interface ArrowStyle {
74661847f8eSopenharmony_ci  /**
74761847f8eSopenharmony_ci   * Is show the arrow background or not.
74861847f8eSopenharmony_ci   *
74961847f8eSopenharmony_ci   * @type { ?boolean }
75061847f8eSopenharmony_ci   * @default false
75161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
75261847f8eSopenharmony_ci   * @since 10
75361847f8eSopenharmony_ci   */
75461847f8eSopenharmony_ci  /**
75561847f8eSopenharmony_ci   * Is show the arrow background or not.
75661847f8eSopenharmony_ci   *
75761847f8eSopenharmony_ci   * @type { ?boolean }
75861847f8eSopenharmony_ci   * @default false
75961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
76061847f8eSopenharmony_ci   * @crossplatform
76161847f8eSopenharmony_ci   * @atomicservice
76261847f8eSopenharmony_ci   * @since 11
76361847f8eSopenharmony_ci   */
76461847f8eSopenharmony_ci  showBackground?: boolean;
76561847f8eSopenharmony_ci
76661847f8eSopenharmony_ci  /**
76761847f8eSopenharmony_ci   * When the indicator show, set the arrow position is side of the indicator or in the middle of content area.
76861847f8eSopenharmony_ci   * The arrow is displayed on side of the indicator, if the value is false.
76961847f8eSopenharmony_ci   *
77061847f8eSopenharmony_ci   * @type { ?boolean }
77161847f8eSopenharmony_ci   * @default false
77261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
77361847f8eSopenharmony_ci   * @since 10
77461847f8eSopenharmony_ci   */
77561847f8eSopenharmony_ci  /**
77661847f8eSopenharmony_ci   * When the indicator show, set the arrow position is side of the indicator or in the middle of content area.
77761847f8eSopenharmony_ci   * The arrow is displayed on side of the indicator, if the value is false.
77861847f8eSopenharmony_ci   *
77961847f8eSopenharmony_ci   * @type { ?boolean }
78061847f8eSopenharmony_ci   * @default false
78161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
78261847f8eSopenharmony_ci   * @crossplatform
78361847f8eSopenharmony_ci   * @atomicservice
78461847f8eSopenharmony_ci   * @since 11
78561847f8eSopenharmony_ci   */
78661847f8eSopenharmony_ci  isSidebarMiddle?: boolean;
78761847f8eSopenharmony_ci
78861847f8eSopenharmony_ci  /**
78961847f8eSopenharmony_ci   * The arrow background size.
79061847f8eSopenharmony_ci   * The size of the arrow is three-quarters of the background size, when the background is displayed.
79161847f8eSopenharmony_ci   *
79261847f8eSopenharmony_ci   * @type { ?Length }
79361847f8eSopenharmony_ci   * @default When isSidebarMiddle is false, the default value is 24vp, Otherwise,the default value is 32vp
79461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
79561847f8eSopenharmony_ci   * @since 10
79661847f8eSopenharmony_ci   */
79761847f8eSopenharmony_ci  /**
79861847f8eSopenharmony_ci   * The arrow background size.
79961847f8eSopenharmony_ci   * The size of the arrow is three-quarters of the background size, when the background is displayed.
80061847f8eSopenharmony_ci   *
80161847f8eSopenharmony_ci   * @type { ?Length }
80261847f8eSopenharmony_ci   * @default When isSidebarMiddle is false, the default value is 24vp, Otherwise,the default value is 32vp
80361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
80461847f8eSopenharmony_ci   * @crossplatform
80561847f8eSopenharmony_ci   * @atomicservice
80661847f8eSopenharmony_ci   * @since 11
80761847f8eSopenharmony_ci   */
80861847f8eSopenharmony_ci  backgroundSize?: Length;
80961847f8eSopenharmony_ci
81061847f8eSopenharmony_ci  /**
81161847f8eSopenharmony_ci   * The arrow background background color.
81261847f8eSopenharmony_ci   *
81361847f8eSopenharmony_ci   * @type { ?ResourceColor }
81461847f8eSopenharmony_ci   * @default When isSidebarMiddle is false, the default value is #00000000, Otherwise,the default value is #19182431
81561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
81661847f8eSopenharmony_ci   * @since 10
81761847f8eSopenharmony_ci   */
81861847f8eSopenharmony_ci  /**
81961847f8eSopenharmony_ci   * The arrow background background color.
82061847f8eSopenharmony_ci   *
82161847f8eSopenharmony_ci   * @type { ?ResourceColor }
82261847f8eSopenharmony_ci   * @default When isSidebarMiddle is false, the default value is #00000000, Otherwise, the default value is #19182431
82361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
82461847f8eSopenharmony_ci   * @crossplatform
82561847f8eSopenharmony_ci   * @atomicservice
82661847f8eSopenharmony_ci   * @since 11
82761847f8eSopenharmony_ci   */
82861847f8eSopenharmony_ci  backgroundColor?: ResourceColor;
82961847f8eSopenharmony_ci
83061847f8eSopenharmony_ci  /**
83161847f8eSopenharmony_ci   * The arrow size.
83261847f8eSopenharmony_ci   * The arrow size can be set, when the background is not displayed.
83361847f8eSopenharmony_ci   * The size of the arrow is three-quarters of the background size, when the background is displayed.
83461847f8eSopenharmony_ci   *
83561847f8eSopenharmony_ci   * @type { ?Length }
83661847f8eSopenharmony_ci   * @default When isSidebarMiddle is false, the default value is 18vp, Otherwise, the default value is 24vp
83761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
83861847f8eSopenharmony_ci   * @since 10
83961847f8eSopenharmony_ci   */
84061847f8eSopenharmony_ci  /**
84161847f8eSopenharmony_ci   * The arrow size.
84261847f8eSopenharmony_ci   * The arrow size can be set, when the background is not displayed.
84361847f8eSopenharmony_ci   * The size of the arrow is three-quarters of the background size, when the background is displayed.
84461847f8eSopenharmony_ci   *
84561847f8eSopenharmony_ci   * @type { ?Length }
84661847f8eSopenharmony_ci   * @default When isSidebarMiddle is false, the default value is 18vp, Otherwise, the default value is 24vp
84761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
84861847f8eSopenharmony_ci   * @crossplatform
84961847f8eSopenharmony_ci   * @atomicservice
85061847f8eSopenharmony_ci   * @since 11
85161847f8eSopenharmony_ci   */
85261847f8eSopenharmony_ci  arrowSize?: Length;
85361847f8eSopenharmony_ci
85461847f8eSopenharmony_ci  /**
85561847f8eSopenharmony_ci   * The arrow color.
85661847f8eSopenharmony_ci   *
85761847f8eSopenharmony_ci   * @type { ?ResourceColor }
85861847f8eSopenharmony_ci   * @default #182431
85961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
86061847f8eSopenharmony_ci   * @since 10
86161847f8eSopenharmony_ci   */
86261847f8eSopenharmony_ci  /**
86361847f8eSopenharmony_ci   * The arrow color.
86461847f8eSopenharmony_ci   *
86561847f8eSopenharmony_ci   * @type { ?ResourceColor }
86661847f8eSopenharmony_ci   * @default #182431
86761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
86861847f8eSopenharmony_ci   * @crossplatform
86961847f8eSopenharmony_ci   * @atomicservice
87061847f8eSopenharmony_ci   * @since 11
87161847f8eSopenharmony_ci   */
87261847f8eSopenharmony_ci  arrowColor?: ResourceColor;
87361847f8eSopenharmony_ci}
87461847f8eSopenharmony_ci
87561847f8eSopenharmony_ci/**
87661847f8eSopenharmony_ci * Declare the size of the swiper on the spindle.
87761847f8eSopenharmony_ci *
87861847f8eSopenharmony_ci * @enum { number }
87961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
88061847f8eSopenharmony_ci * @since 7
88161847f8eSopenharmony_ci */
88261847f8eSopenharmony_ci/**
88361847f8eSopenharmony_ci * Declare the size of the swiper on the spindle.
88461847f8eSopenharmony_ci *
88561847f8eSopenharmony_ci * @enum { number }
88661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
88761847f8eSopenharmony_ci * @crossplatform
88861847f8eSopenharmony_ci * @form
88961847f8eSopenharmony_ci * @since 10
89061847f8eSopenharmony_ci */
89161847f8eSopenharmony_ci/**
89261847f8eSopenharmony_ci * Declare the size of the swiper on the spindle.
89361847f8eSopenharmony_ci *
89461847f8eSopenharmony_ci * @enum { number }
89561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
89661847f8eSopenharmony_ci * @crossplatform
89761847f8eSopenharmony_ci * @form
89861847f8eSopenharmony_ci * @atomicservice
89961847f8eSopenharmony_ci * @since 11
90061847f8eSopenharmony_ci */
90161847f8eSopenharmony_cideclare enum SwiperDisplayMode {
90261847f8eSopenharmony_ci  /**
90361847f8eSopenharmony_ci   * Carousel map extension.
90461847f8eSopenharmony_ci   *
90561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
90661847f8eSopenharmony_ci   * @form
90761847f8eSopenharmony_ci   * @since 7
90861847f8eSopenharmony_ci   * @deprecated since 10
90961847f8eSopenharmony_ci   * @useinstead SwiperDisplayMode#STRETCH
91061847f8eSopenharmony_ci   */
91161847f8eSopenharmony_ci  Stretch,
91261847f8eSopenharmony_ci
91361847f8eSopenharmony_ci  /**
91461847f8eSopenharmony_ci   * The rotation chart is self linear.
91561847f8eSopenharmony_ci   *
91661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
91761847f8eSopenharmony_ci   * @form
91861847f8eSopenharmony_ci   * @since 7
91961847f8eSopenharmony_ci   * @deprecated since 10
92061847f8eSopenharmony_ci   * @useinstead SwiperDisplayMode#AUTO_LINEAR
92161847f8eSopenharmony_ci   */
92261847f8eSopenharmony_ci  AutoLinear,
92361847f8eSopenharmony_ci
92461847f8eSopenharmony_ci  /**
92561847f8eSopenharmony_ci   * Carousel map extension.
92661847f8eSopenharmony_ci   *
92761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
92861847f8eSopenharmony_ci   * @crossplatform
92961847f8eSopenharmony_ci   * @form
93061847f8eSopenharmony_ci   * @since 10
93161847f8eSopenharmony_ci   */
93261847f8eSopenharmony_ci  /**
93361847f8eSopenharmony_ci   * Carousel map extension.
93461847f8eSopenharmony_ci   *
93561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
93661847f8eSopenharmony_ci   * @crossplatform
93761847f8eSopenharmony_ci   * @form
93861847f8eSopenharmony_ci   * @atomicservice
93961847f8eSopenharmony_ci   * @since 11
94061847f8eSopenharmony_ci   */
94161847f8eSopenharmony_ci  STRETCH,
94261847f8eSopenharmony_ci
94361847f8eSopenharmony_ci  /**
94461847f8eSopenharmony_ci   * The rotation chart is self linear.
94561847f8eSopenharmony_ci   *
94661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
94761847f8eSopenharmony_ci   * @crossplatform
94861847f8eSopenharmony_ci   * @form
94961847f8eSopenharmony_ci   * @since 10
95061847f8eSopenharmony_ci   */
95161847f8eSopenharmony_ci  /**
95261847f8eSopenharmony_ci   * The rotation chart is self linear.
95361847f8eSopenharmony_ci   *
95461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
95561847f8eSopenharmony_ci   * @crossplatform
95661847f8eSopenharmony_ci   * @form
95761847f8eSopenharmony_ci   * @atomicservice
95861847f8eSopenharmony_ci   * @since 11
95961847f8eSopenharmony_ci   * @deprecated since 12
96061847f8eSopenharmony_ci   * @useinstead Scroller#scrollTo
96161847f8eSopenharmony_ci   */
96261847f8eSopenharmony_ci  AUTO_LINEAR,
96361847f8eSopenharmony_ci}
96461847f8eSopenharmony_ci
96561847f8eSopenharmony_ci/**
96661847f8eSopenharmony_ci * Provides an interface for sliding containers.
96761847f8eSopenharmony_ci *
96861847f8eSopenharmony_ci * @interface SwiperInterface
96961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
97061847f8eSopenharmony_ci * @since 7
97161847f8eSopenharmony_ci */
97261847f8eSopenharmony_ci/**
97361847f8eSopenharmony_ci * Provides an interface for sliding containers.
97461847f8eSopenharmony_ci *
97561847f8eSopenharmony_ci * @interface SwiperInterface
97661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
97761847f8eSopenharmony_ci * @crossplatform
97861847f8eSopenharmony_ci * @form
97961847f8eSopenharmony_ci * @since 10
98061847f8eSopenharmony_ci */
98161847f8eSopenharmony_ci/**
98261847f8eSopenharmony_ci * Provides an interface for sliding containers.
98361847f8eSopenharmony_ci *
98461847f8eSopenharmony_ci * @interface SwiperInterface
98561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
98661847f8eSopenharmony_ci * @crossplatform
98761847f8eSopenharmony_ci * @form
98861847f8eSopenharmony_ci * @atomicservice
98961847f8eSopenharmony_ci * @since 11
99061847f8eSopenharmony_ci */
99161847f8eSopenharmony_ciinterface SwiperInterface {
99261847f8eSopenharmony_ci  /**
99361847f8eSopenharmony_ci   * Called when a sliding container is set.
99461847f8eSopenharmony_ci   *
99561847f8eSopenharmony_ci   * @param { SwiperController } controller
99661847f8eSopenharmony_ci   * @returns { SwiperAttribute }
99761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
99861847f8eSopenharmony_ci   * @since 7
99961847f8eSopenharmony_ci   */
100061847f8eSopenharmony_ci  /**
100161847f8eSopenharmony_ci   * Called when a sliding container is set.
100261847f8eSopenharmony_ci   *
100361847f8eSopenharmony_ci   * @param { SwiperController } controller
100461847f8eSopenharmony_ci   * @returns { SwiperAttribute }
100561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
100661847f8eSopenharmony_ci   * @crossplatform
100761847f8eSopenharmony_ci   * @form
100861847f8eSopenharmony_ci   * @since 10
100961847f8eSopenharmony_ci   */
101061847f8eSopenharmony_ci  /**
101161847f8eSopenharmony_ci   * Called when a sliding container is set.
101261847f8eSopenharmony_ci   *
101361847f8eSopenharmony_ci   * @param { SwiperController } controller
101461847f8eSopenharmony_ci   * @returns { SwiperAttribute }
101561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
101661847f8eSopenharmony_ci   * @crossplatform
101761847f8eSopenharmony_ci   * @form
101861847f8eSopenharmony_ci   * @atomicservice
101961847f8eSopenharmony_ci   * @since 11
102061847f8eSopenharmony_ci   */
102161847f8eSopenharmony_ci  (controller?: SwiperController): SwiperAttribute;
102261847f8eSopenharmony_ci}
102361847f8eSopenharmony_ci
102461847f8eSopenharmony_ci/**
102561847f8eSopenharmony_ci * Setting indicator style navigation.
102661847f8eSopenharmony_ci *
102761847f8eSopenharmony_ci * @interface IndicatorStyle
102861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
102961847f8eSopenharmony_ci * @since 8
103061847f8eSopenharmony_ci * @deprecated since 10
103161847f8eSopenharmony_ci */
103261847f8eSopenharmony_cideclare interface IndicatorStyle {
103361847f8eSopenharmony_ci  /**
103461847f8eSopenharmony_ci   * Set the indicator to the left.
103561847f8eSopenharmony_ci   *
103661847f8eSopenharmony_ci   * @type { ?Length }
103761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
103861847f8eSopenharmony_ci   * @since 8
103961847f8eSopenharmony_ci   * @deprecated since 10
104061847f8eSopenharmony_ci   */
104161847f8eSopenharmony_ci  left?: Length;
104261847f8eSopenharmony_ci
104361847f8eSopenharmony_ci  /**
104461847f8eSopenharmony_ci   * Set the indicator to the top.
104561847f8eSopenharmony_ci   *
104661847f8eSopenharmony_ci   * @type { ?Length }
104761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
104861847f8eSopenharmony_ci   * @since 8
104961847f8eSopenharmony_ci   * @deprecated since 10
105061847f8eSopenharmony_ci   */
105161847f8eSopenharmony_ci  top?: Length;
105261847f8eSopenharmony_ci
105361847f8eSopenharmony_ci  /**
105461847f8eSopenharmony_ci   * Set the indicator to the right.
105561847f8eSopenharmony_ci   *
105661847f8eSopenharmony_ci   * @type { ?Length }
105761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
105861847f8eSopenharmony_ci   * @since 8
105961847f8eSopenharmony_ci   * @deprecated since 10
106061847f8eSopenharmony_ci   */
106161847f8eSopenharmony_ci  right?: Length;
106261847f8eSopenharmony_ci
106361847f8eSopenharmony_ci  /**
106461847f8eSopenharmony_ci   * Set the indicator to the bottom.
106561847f8eSopenharmony_ci   *
106661847f8eSopenharmony_ci   * @type { ?Length }
106761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
106861847f8eSopenharmony_ci   * @since 8
106961847f8eSopenharmony_ci   * @deprecated since 10
107061847f8eSopenharmony_ci   */
107161847f8eSopenharmony_ci  bottom?: Length;
107261847f8eSopenharmony_ci
107361847f8eSopenharmony_ci  /**
107461847f8eSopenharmony_ci   * Set the indicator size.
107561847f8eSopenharmony_ci   *
107661847f8eSopenharmony_ci   * @type { ?Length }
107761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
107861847f8eSopenharmony_ci   * @since 8
107961847f8eSopenharmony_ci   * @deprecated since 10
108061847f8eSopenharmony_ci   */
108161847f8eSopenharmony_ci  size?: Length;
108261847f8eSopenharmony_ci
108361847f8eSopenharmony_ci  /**
108461847f8eSopenharmony_ci   * Setting indicator style mask.
108561847f8eSopenharmony_ci   *
108661847f8eSopenharmony_ci   * @type { ?boolean }
108761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
108861847f8eSopenharmony_ci   * @since 8
108961847f8eSopenharmony_ci   * @deprecated since 10
109061847f8eSopenharmony_ci   */
109161847f8eSopenharmony_ci  mask?: boolean;
109261847f8eSopenharmony_ci
109361847f8eSopenharmony_ci  /**
109461847f8eSopenharmony_ci   * Set the indicator color.
109561847f8eSopenharmony_ci   *
109661847f8eSopenharmony_ci   * @type { ?ResourceColor }
109761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
109861847f8eSopenharmony_ci   * @since 8
109961847f8eSopenharmony_ci   * @deprecated since 10
110061847f8eSopenharmony_ci   */
110161847f8eSopenharmony_ci  color?: ResourceColor;
110261847f8eSopenharmony_ci
110361847f8eSopenharmony_ci  /**
110461847f8eSopenharmony_ci   * Set the navigation point color.
110561847f8eSopenharmony_ci   *
110661847f8eSopenharmony_ci   * @type { ?ResourceColor }
110761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
110861847f8eSopenharmony_ci   * @since 8
110961847f8eSopenharmony_ci   * @deprecated since 10
111061847f8eSopenharmony_ci   */
111161847f8eSopenharmony_ci  selectedColor?: ResourceColor;
111261847f8eSopenharmony_ci}
111361847f8eSopenharmony_ci
111461847f8eSopenharmony_ci/**
111561847f8eSopenharmony_ci * Provides an interface for swiper animation.
111661847f8eSopenharmony_ci *
111761847f8eSopenharmony_ci * @interface SwiperAnimationEvent
111861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
111961847f8eSopenharmony_ci * @crossplatform
112061847f8eSopenharmony_ci * @since 10
112161847f8eSopenharmony_ci */
112261847f8eSopenharmony_ci/**
112361847f8eSopenharmony_ci * Provides an interface for swiper animation.
112461847f8eSopenharmony_ci *
112561847f8eSopenharmony_ci * @interface SwiperAnimationEvent
112661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
112761847f8eSopenharmony_ci * @crossplatform
112861847f8eSopenharmony_ci * @atomicservice
112961847f8eSopenharmony_ci * @since 11
113061847f8eSopenharmony_ci */
113161847f8eSopenharmony_cideclare interface SwiperAnimationEvent {
113261847f8eSopenharmony_ci  /**
113361847f8eSopenharmony_ci   * Offset of the current page to the start position of the swiper main axis. The unit is vp.
113461847f8eSopenharmony_ci   *
113561847f8eSopenharmony_ci   * @type { number }
113661847f8eSopenharmony_ci   * @default 0.0 vp
113761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
113861847f8eSopenharmony_ci   * @since 10
113961847f8eSopenharmony_ci   */
114061847f8eSopenharmony_ci  /**
114161847f8eSopenharmony_ci   * Offset of the current page to the start position of the swiper main axis. The unit is vp.
114261847f8eSopenharmony_ci   *
114361847f8eSopenharmony_ci   * @type { number }
114461847f8eSopenharmony_ci   * @default 0.0 vp
114561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
114661847f8eSopenharmony_ci   * @crossplatform
114761847f8eSopenharmony_ci   * @atomicservice
114861847f8eSopenharmony_ci   * @since 11
114961847f8eSopenharmony_ci   */
115061847f8eSopenharmony_ci  currentOffset: number;
115161847f8eSopenharmony_ci
115261847f8eSopenharmony_ci  /**
115361847f8eSopenharmony_ci   * Offset of the target page to the start position of the swiper main axis. The unit is vp.
115461847f8eSopenharmony_ci   *
115561847f8eSopenharmony_ci   * @type { number }
115661847f8eSopenharmony_ci   * @default 0.0 vp
115761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
115861847f8eSopenharmony_ci   * @since 10
115961847f8eSopenharmony_ci   */
116061847f8eSopenharmony_ci  /**
116161847f8eSopenharmony_ci   * Offset of the target page to the start position of the swiper main axis. The unit is vp.
116261847f8eSopenharmony_ci   *
116361847f8eSopenharmony_ci   * @type { number }
116461847f8eSopenharmony_ci   * @default 0.0 vp
116561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
116661847f8eSopenharmony_ci   * @crossplatform
116761847f8eSopenharmony_ci   * @atomicservice
116861847f8eSopenharmony_ci   * @since 11
116961847f8eSopenharmony_ci   */
117061847f8eSopenharmony_ci  targetOffset: number;
117161847f8eSopenharmony_ci
117261847f8eSopenharmony_ci  /**
117361847f8eSopenharmony_ci   * Start speed of the page-turning animation. The unit is vp/s.
117461847f8eSopenharmony_ci   *
117561847f8eSopenharmony_ci   * @type { number }
117661847f8eSopenharmony_ci   * @default 0.0 vp/s
117761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
117861847f8eSopenharmony_ci   * @since 10
117961847f8eSopenharmony_ci   */
118061847f8eSopenharmony_ci  /**
118161847f8eSopenharmony_ci   * Start speed of the page-turning animation. The unit is vp/s.
118261847f8eSopenharmony_ci   *
118361847f8eSopenharmony_ci   * @type { number }
118461847f8eSopenharmony_ci   * @default 0.0 vp/s
118561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
118661847f8eSopenharmony_ci   * @crossplatform
118761847f8eSopenharmony_ci   * @atomicservice
118861847f8eSopenharmony_ci   * @since 11
118961847f8eSopenharmony_ci   */
119061847f8eSopenharmony_ci  velocity: number;
119161847f8eSopenharmony_ci}
119261847f8eSopenharmony_ci
119361847f8eSopenharmony_ci/**
119461847f8eSopenharmony_ci * Swiper nested scroll nested mode
119561847f8eSopenharmony_ci
119661847f8eSopenharmony_ci * @enum { number } SwiperNestedScrollMode
119761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
119861847f8eSopenharmony_ci * @atomicservice
119961847f8eSopenharmony_ci * @since 11
120061847f8eSopenharmony_ci */
120161847f8eSopenharmony_cideclare enum SwiperNestedScrollMode {
120261847f8eSopenharmony_ci  /**
120361847f8eSopenharmony_ci   * Only Self response scrolling.
120461847f8eSopenharmony_ci   *
120561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
120661847f8eSopenharmony_ci   * @atomicservice
120761847f8eSopenharmony_ci   * @since 11
120861847f8eSopenharmony_ci   */
120961847f8eSopenharmony_ci  SELF_ONLY = 0,
121061847f8eSopenharmony_ci
121161847f8eSopenharmony_ci  /**
121261847f8eSopenharmony_ci   * Self priority response scrolling.
121361847f8eSopenharmony_ci   *
121461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
121561847f8eSopenharmony_ci   * @atomicservice
121661847f8eSopenharmony_ci   * @since 11
121761847f8eSopenharmony_ci   */
121861847f8eSopenharmony_ci  SELF_FIRST = 1,
121961847f8eSopenharmony_ci}
122061847f8eSopenharmony_ci
122161847f8eSopenharmony_ci/**
122261847f8eSopenharmony_ci * Defines the swiper attribute functions.
122361847f8eSopenharmony_ci *
122461847f8eSopenharmony_ci * @extends CommonMethod<SwiperAttribute>
122561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
122661847f8eSopenharmony_ci * @since 7
122761847f8eSopenharmony_ci */
122861847f8eSopenharmony_ci/**
122961847f8eSopenharmony_ci * Defines the swiper attribute functions.
123061847f8eSopenharmony_ci *
123161847f8eSopenharmony_ci * @extends CommonMethod<SwiperAttribute>
123261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
123361847f8eSopenharmony_ci * @crossplatform
123461847f8eSopenharmony_ci * @form
123561847f8eSopenharmony_ci * @since 10
123661847f8eSopenharmony_ci */
123761847f8eSopenharmony_ci/**
123861847f8eSopenharmony_ci * Defines the swiper attribute functions.
123961847f8eSopenharmony_ci *
124061847f8eSopenharmony_ci * @extends CommonMethod<SwiperAttribute>
124161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
124261847f8eSopenharmony_ci * @crossplatform
124361847f8eSopenharmony_ci * @form
124461847f8eSopenharmony_ci * @atomicservice
124561847f8eSopenharmony_ci * @since 11
124661847f8eSopenharmony_ci */
124761847f8eSopenharmony_cideclare class SwiperAttribute extends CommonMethod<SwiperAttribute> {
124861847f8eSopenharmony_ci  /**
124961847f8eSopenharmony_ci   * Called when the index value of the displayed subcomponent is set in the container.
125061847f8eSopenharmony_ci   *
125161847f8eSopenharmony_ci   * @param { number } value
125261847f8eSopenharmony_ci   * @returns { SwiperAttribute }
125361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
125461847f8eSopenharmony_ci   * @since 7
125561847f8eSopenharmony_ci   */
125661847f8eSopenharmony_ci  /**
125761847f8eSopenharmony_ci   * Called when the index value of the displayed subcomponent is set in the container.
125861847f8eSopenharmony_ci   *
125961847f8eSopenharmony_ci   * @param { number } value
126061847f8eSopenharmony_ci   * @returns { SwiperAttribute }
126161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
126261847f8eSopenharmony_ci   * @crossplatform
126361847f8eSopenharmony_ci   * @form
126461847f8eSopenharmony_ci   * @since 10
126561847f8eSopenharmony_ci   */
126661847f8eSopenharmony_ci  /**
126761847f8eSopenharmony_ci   * Called when the index value of the displayed subcomponent is set in the container.
126861847f8eSopenharmony_ci   *
126961847f8eSopenharmony_ci   * @param { number } value
127061847f8eSopenharmony_ci   * @returns { SwiperAttribute }
127161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
127261847f8eSopenharmony_ci   * @crossplatform
127361847f8eSopenharmony_ci   * @form
127461847f8eSopenharmony_ci   * @atomicservice
127561847f8eSopenharmony_ci   * @since 11
127661847f8eSopenharmony_ci   */
127761847f8eSopenharmony_ci  index(value: number): SwiperAttribute;
127861847f8eSopenharmony_ci
127961847f8eSopenharmony_ci  /**
128061847f8eSopenharmony_ci   * Called when setting whether the subcomponent plays automatically.
128161847f8eSopenharmony_ci   *
128261847f8eSopenharmony_ci   * @param { boolean } value
128361847f8eSopenharmony_ci   * @returns { SwiperAttribute }
128461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
128561847f8eSopenharmony_ci   * @since 7
128661847f8eSopenharmony_ci   */
128761847f8eSopenharmony_ci  /**
128861847f8eSopenharmony_ci   * Called when setting whether the subcomponent plays automatically.
128961847f8eSopenharmony_ci   *
129061847f8eSopenharmony_ci   * @param { boolean } value
129161847f8eSopenharmony_ci   * @returns { SwiperAttribute }
129261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
129361847f8eSopenharmony_ci   * @crossplatform
129461847f8eSopenharmony_ci   * @form
129561847f8eSopenharmony_ci   * @since 10
129661847f8eSopenharmony_ci   */
129761847f8eSopenharmony_ci  /**
129861847f8eSopenharmony_ci   * Called when setting whether the subcomponent plays automatically.
129961847f8eSopenharmony_ci   *
130061847f8eSopenharmony_ci   * @param { boolean } value
130161847f8eSopenharmony_ci   * @returns { SwiperAttribute }
130261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
130361847f8eSopenharmony_ci   * @crossplatform
130461847f8eSopenharmony_ci   * @form
130561847f8eSopenharmony_ci   * @atomicservice
130661847f8eSopenharmony_ci   * @since 11
130761847f8eSopenharmony_ci   */
130861847f8eSopenharmony_ci  autoPlay(value: boolean): SwiperAttribute;
130961847f8eSopenharmony_ci
131061847f8eSopenharmony_ci  /**
131161847f8eSopenharmony_ci   * Called when the time interval for automatic playback is set.
131261847f8eSopenharmony_ci   *
131361847f8eSopenharmony_ci   * @param { number } value
131461847f8eSopenharmony_ci   * @returns { SwiperAttribute }
131561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
131661847f8eSopenharmony_ci   * @since 7
131761847f8eSopenharmony_ci   */
131861847f8eSopenharmony_ci  /**
131961847f8eSopenharmony_ci   * Called when the time interval for automatic playback is set.
132061847f8eSopenharmony_ci   *
132161847f8eSopenharmony_ci   * @param { number } value
132261847f8eSopenharmony_ci   * @returns { SwiperAttribute }
132361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
132461847f8eSopenharmony_ci   * @crossplatform
132561847f8eSopenharmony_ci   * @form
132661847f8eSopenharmony_ci   * @since 10
132761847f8eSopenharmony_ci   */
132861847f8eSopenharmony_ci  /**
132961847f8eSopenharmony_ci   * Called when the time interval for automatic playback is set.
133061847f8eSopenharmony_ci   *
133161847f8eSopenharmony_ci   * @param { number } value
133261847f8eSopenharmony_ci   * @returns { SwiperAttribute }
133361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
133461847f8eSopenharmony_ci   * @crossplatform
133561847f8eSopenharmony_ci   * @form
133661847f8eSopenharmony_ci   * @atomicservice
133761847f8eSopenharmony_ci   * @since 11
133861847f8eSopenharmony_ci   */
133961847f8eSopenharmony_ci  interval(value: number): SwiperAttribute;
134061847f8eSopenharmony_ci
134161847f8eSopenharmony_ci  /**
134261847f8eSopenharmony_ci   * Called when you set whether the navigation point indicator is enabled.
134361847f8eSopenharmony_ci   *
134461847f8eSopenharmony_ci   * @param { boolean } value - show indicator of the swiper indicator.
134561847f8eSopenharmony_ci   * @returns { SwiperAttribute }
134661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
134761847f8eSopenharmony_ci   * @since 7
134861847f8eSopenharmony_ci   */
134961847f8eSopenharmony_ci  /**
135061847f8eSopenharmony_ci   * Set indicator is enabled, or set type style.
135161847f8eSopenharmony_ci   *
135261847f8eSopenharmony_ci   * @param { DotIndicator | DigitIndicator | boolean } value - the style value or show indicator of the swiper indicator.
135361847f8eSopenharmony_ci   * @returns { SwiperAttribute }
135461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
135561847f8eSopenharmony_ci   * @crossplatform
135661847f8eSopenharmony_ci   * @form
135761847f8eSopenharmony_ci   * @since 10
135861847f8eSopenharmony_ci   */
135961847f8eSopenharmony_ci  /**
136061847f8eSopenharmony_ci   * Set indicator is enabled, or set type style.
136161847f8eSopenharmony_ci   *
136261847f8eSopenharmony_ci   * @param { DotIndicator | DigitIndicator | boolean } value - the style value or show indicator of the swiper indicator.
136361847f8eSopenharmony_ci   * @returns { SwiperAttribute }
136461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
136561847f8eSopenharmony_ci   * @crossplatform
136661847f8eSopenharmony_ci   * @form
136761847f8eSopenharmony_ci   * @atomicservice
136861847f8eSopenharmony_ci   * @since 11
136961847f8eSopenharmony_ci   */
137061847f8eSopenharmony_ci  indicator(value: DotIndicator | DigitIndicator | boolean): SwiperAttribute;
137161847f8eSopenharmony_ci  
137261847f8eSopenharmony_ci  /**
137361847f8eSopenharmony_ci   * Use indicator component controller.
137461847f8eSopenharmony_ci   *
137561847f8eSopenharmony_ci   * @param { IndicatorComponentController } controller - indicator component controller.
137661847f8eSopenharmony_ci   * @returns { SwiperAttribute }
137761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
137861847f8eSopenharmony_ci   * @crossplatform
137961847f8eSopenharmony_ci   * @form
138061847f8eSopenharmony_ci   * @atomicservice
138161847f8eSopenharmony_ci   * @since 13
138261847f8eSopenharmony_ci   */
138361847f8eSopenharmony_ci  indicator(controller: IndicatorComponentController): SwiperAttribute;
138461847f8eSopenharmony_ci
138561847f8eSopenharmony_ci  /**
138661847f8eSopenharmony_ci   * Set arrow is enabled, or set the arrow style.
138761847f8eSopenharmony_ci   *
138861847f8eSopenharmony_ci   * @param { ArrowStyle | boolean } value - arrow is displayed or set the arrow style.
138961847f8eSopenharmony_ci   * @param { boolean } isHoverShow - arrow is display when mouse hover in indicator hotspot.
139061847f8eSopenharmony_ci   * @returns { SwiperAttribute } return the component attribute.
139161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
139261847f8eSopenharmony_ci   * @since 10
139361847f8eSopenharmony_ci   */
139461847f8eSopenharmony_ci  /**
139561847f8eSopenharmony_ci   * Set arrow is enabled, or set the arrow style.
139661847f8eSopenharmony_ci   *
139761847f8eSopenharmony_ci   * @param { ArrowStyle | boolean } value - arrow is displayed or set the arrow style.
139861847f8eSopenharmony_ci   * @param { boolean } isHoverShow - arrow is display when mouse hover in indicator hotspot.
139961847f8eSopenharmony_ci   * @returns { SwiperAttribute } return the component attribute.
140061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
140161847f8eSopenharmony_ci   * @crossplatform
140261847f8eSopenharmony_ci   * @atomicservice
140361847f8eSopenharmony_ci   * @since 11
140461847f8eSopenharmony_ci   */
140561847f8eSopenharmony_ci  displayArrow(value: ArrowStyle | boolean, isHoverShow?: boolean): SwiperAttribute;
140661847f8eSopenharmony_ci
140761847f8eSopenharmony_ci  /**
140861847f8eSopenharmony_ci   * Called when setting whether to turn on cyclic sliding.
140961847f8eSopenharmony_ci   *
141061847f8eSopenharmony_ci   * @param { boolean } value
141161847f8eSopenharmony_ci   * @returns { SwiperAttribute }
141261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
141361847f8eSopenharmony_ci   * @since 7
141461847f8eSopenharmony_ci   */
141561847f8eSopenharmony_ci  /**
141661847f8eSopenharmony_ci   * Called when setting whether to turn on cyclic sliding.
141761847f8eSopenharmony_ci   *
141861847f8eSopenharmony_ci   * @param { boolean } value
141961847f8eSopenharmony_ci   * @returns { SwiperAttribute }
142061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
142161847f8eSopenharmony_ci   * @crossplatform
142261847f8eSopenharmony_ci   * @form
142361847f8eSopenharmony_ci   * @since 10
142461847f8eSopenharmony_ci   */
142561847f8eSopenharmony_ci  /**
142661847f8eSopenharmony_ci   * Called when setting whether to turn on cyclic sliding.
142761847f8eSopenharmony_ci   *
142861847f8eSopenharmony_ci   * @param { boolean } value
142961847f8eSopenharmony_ci   * @returns { SwiperAttribute }
143061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
143161847f8eSopenharmony_ci   * @crossplatform
143261847f8eSopenharmony_ci   * @form
143361847f8eSopenharmony_ci   * @atomicservice
143461847f8eSopenharmony_ci   * @since 11
143561847f8eSopenharmony_ci   */
143661847f8eSopenharmony_ci  loop(value: boolean): SwiperAttribute;
143761847f8eSopenharmony_ci
143861847f8eSopenharmony_ci  /**
143961847f8eSopenharmony_ci   * Called when the animation duration of the switch is set.
144061847f8eSopenharmony_ci   *
144161847f8eSopenharmony_ci   * @param { number } value
144261847f8eSopenharmony_ci   * @returns { SwiperAttribute }
144361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
144461847f8eSopenharmony_ci   * @since 7
144561847f8eSopenharmony_ci   */
144661847f8eSopenharmony_ci  /**
144761847f8eSopenharmony_ci   * Called when the animation duration of the switch is set.
144861847f8eSopenharmony_ci   *
144961847f8eSopenharmony_ci   * @param { number } value
145061847f8eSopenharmony_ci   * @returns { SwiperAttribute }
145161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
145261847f8eSopenharmony_ci   * @crossplatform
145361847f8eSopenharmony_ci   * @since 10
145461847f8eSopenharmony_ci   */
145561847f8eSopenharmony_ci  /**
145661847f8eSopenharmony_ci   * Called when the animation duration of the switch is set.
145761847f8eSopenharmony_ci   *
145861847f8eSopenharmony_ci   * @param { number } value
145961847f8eSopenharmony_ci   * @returns { SwiperAttribute }
146061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
146161847f8eSopenharmony_ci   * @crossplatform
146261847f8eSopenharmony_ci   * @atomicservice
146361847f8eSopenharmony_ci   * @since 11
146461847f8eSopenharmony_ci   */
146561847f8eSopenharmony_ci  duration(value: number): SwiperAttribute;
146661847f8eSopenharmony_ci
146761847f8eSopenharmony_ci  /**
146861847f8eSopenharmony_ci   * Called when setting whether to slide vertically.
146961847f8eSopenharmony_ci   *
147061847f8eSopenharmony_ci   * @param { boolean } value
147161847f8eSopenharmony_ci   * @returns { SwiperAttribute }
147261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
147361847f8eSopenharmony_ci   * @since 7
147461847f8eSopenharmony_ci   */
147561847f8eSopenharmony_ci  /**
147661847f8eSopenharmony_ci   * Called when setting whether to slide vertically.
147761847f8eSopenharmony_ci   *
147861847f8eSopenharmony_ci   * @param { boolean } value
147961847f8eSopenharmony_ci   * @returns { SwiperAttribute }
148061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
148161847f8eSopenharmony_ci   * @crossplatform
148261847f8eSopenharmony_ci   * @form
148361847f8eSopenharmony_ci   * @since 10
148461847f8eSopenharmony_ci   */
148561847f8eSopenharmony_ci  /**
148661847f8eSopenharmony_ci   * Called when setting whether to slide vertically.
148761847f8eSopenharmony_ci   *
148861847f8eSopenharmony_ci   * @param { boolean } value
148961847f8eSopenharmony_ci   * @returns { SwiperAttribute }
149061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
149161847f8eSopenharmony_ci   * @crossplatform
149261847f8eSopenharmony_ci   * @form
149361847f8eSopenharmony_ci   * @atomicservice
149461847f8eSopenharmony_ci   * @since 11
149561847f8eSopenharmony_ci   */
149661847f8eSopenharmony_ci  vertical(value: boolean): SwiperAttribute;
149761847f8eSopenharmony_ci
149861847f8eSopenharmony_ci  /**
149961847f8eSopenharmony_ci   * Sets the space between child components.
150061847f8eSopenharmony_ci   *
150161847f8eSopenharmony_ci   * @param { number | string } value
150261847f8eSopenharmony_ci   * @returns { SwiperAttribute }
150361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
150461847f8eSopenharmony_ci   * @since 7
150561847f8eSopenharmony_ci   */
150661847f8eSopenharmony_ci  /**
150761847f8eSopenharmony_ci   * Sets the space between child components.
150861847f8eSopenharmony_ci   *
150961847f8eSopenharmony_ci   * @param { number | string } value
151061847f8eSopenharmony_ci   * @returns { SwiperAttribute }
151161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
151261847f8eSopenharmony_ci   * @crossplatform
151361847f8eSopenharmony_ci   * @form
151461847f8eSopenharmony_ci   * @since 10
151561847f8eSopenharmony_ci   */
151661847f8eSopenharmony_ci  /**
151761847f8eSopenharmony_ci   * Sets the space between child components.
151861847f8eSopenharmony_ci   *
151961847f8eSopenharmony_ci   * @param { number | string } value
152061847f8eSopenharmony_ci   * @returns { SwiperAttribute }
152161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
152261847f8eSopenharmony_ci   * @crossplatform
152361847f8eSopenharmony_ci   * @form
152461847f8eSopenharmony_ci   * @atomicservice
152561847f8eSopenharmony_ci   * @since 11
152661847f8eSopenharmony_ci   */
152761847f8eSopenharmony_ci  itemSpace(value: number | string): SwiperAttribute;
152861847f8eSopenharmony_ci
152961847f8eSopenharmony_ci  /**
153061847f8eSopenharmony_ci   * Called when setting the size of the swiper container on the spindle.
153161847f8eSopenharmony_ci   *
153261847f8eSopenharmony_ci   * @param { SwiperDisplayMode } value
153361847f8eSopenharmony_ci   * @returns { SwiperAttribute }
153461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
153561847f8eSopenharmony_ci   * @since 7
153661847f8eSopenharmony_ci   */
153761847f8eSopenharmony_ci  /**
153861847f8eSopenharmony_ci   * Called when setting the size of the swiper container on the spindle.
153961847f8eSopenharmony_ci   *
154061847f8eSopenharmony_ci   * @param { SwiperDisplayMode } value
154161847f8eSopenharmony_ci   * @returns { SwiperAttribute }
154261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
154361847f8eSopenharmony_ci   * @crossplatform
154461847f8eSopenharmony_ci   * @form
154561847f8eSopenharmony_ci   * @since 10
154661847f8eSopenharmony_ci   */
154761847f8eSopenharmony_ci  /**
154861847f8eSopenharmony_ci   * Called when setting the size of the swiper container on the spindle.
154961847f8eSopenharmony_ci   *
155061847f8eSopenharmony_ci   * @param { SwiperDisplayMode } value
155161847f8eSopenharmony_ci   * @returns { SwiperAttribute }
155261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
155361847f8eSopenharmony_ci   * @crossplatform
155461847f8eSopenharmony_ci   * @form
155561847f8eSopenharmony_ci   * @atomicservice
155661847f8eSopenharmony_ci   * @since 11
155761847f8eSopenharmony_ci   */
155861847f8eSopenharmony_ci  displayMode(value: SwiperDisplayMode): SwiperAttribute;
155961847f8eSopenharmony_ci
156061847f8eSopenharmony_ci  /**
156161847f8eSopenharmony_ci   * Sets the number of child components to be preloaded(cached).
156261847f8eSopenharmony_ci   *
156361847f8eSopenharmony_ci   * @param { number } value
156461847f8eSopenharmony_ci   * @returns { SwiperAttribute }
156561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
156661847f8eSopenharmony_ci   * @since 8
156761847f8eSopenharmony_ci   */
156861847f8eSopenharmony_ci  /**
156961847f8eSopenharmony_ci   * Sets the number of child components to be preloaded(cached).
157061847f8eSopenharmony_ci   *
157161847f8eSopenharmony_ci   * @param { number } value
157261847f8eSopenharmony_ci   * @returns { SwiperAttribute }
157361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
157461847f8eSopenharmony_ci   * @crossplatform
157561847f8eSopenharmony_ci   * @form
157661847f8eSopenharmony_ci   * @since 10
157761847f8eSopenharmony_ci   */
157861847f8eSopenharmony_ci  /**
157961847f8eSopenharmony_ci   * Sets the number of child components to be preloaded(cached).
158061847f8eSopenharmony_ci   *
158161847f8eSopenharmony_ci   * @param { number } value
158261847f8eSopenharmony_ci   * @returns { SwiperAttribute }
158361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
158461847f8eSopenharmony_ci   * @crossplatform
158561847f8eSopenharmony_ci   * @form
158661847f8eSopenharmony_ci   * @atomicservice
158761847f8eSopenharmony_ci   * @since 11
158861847f8eSopenharmony_ci   */
158961847f8eSopenharmony_ci  cachedCount(value: number): SwiperAttribute;
159061847f8eSopenharmony_ci
159161847f8eSopenharmony_ci  /**
159261847f8eSopenharmony_ci   * Sets the number of elements to display per page.
159361847f8eSopenharmony_ci   *
159461847f8eSopenharmony_ci   * @param { number | string } value
159561847f8eSopenharmony_ci   * @returns { SwiperAttribute }
159661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
159761847f8eSopenharmony_ci   * @since 8
159861847f8eSopenharmony_ci   */
159961847f8eSopenharmony_ci  /**
160061847f8eSopenharmony_ci   * Sets the number of elements to display per page.
160161847f8eSopenharmony_ci   *
160261847f8eSopenharmony_ci   * @param { number | string | SwiperAutoFill } value
160361847f8eSopenharmony_ci   * @returns { SwiperAttribute }
160461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
160561847f8eSopenharmony_ci   * @crossplatform
160661847f8eSopenharmony_ci   * @form
160761847f8eSopenharmony_ci   * @since 10
160861847f8eSopenharmony_ci   */
160961847f8eSopenharmony_ci  /**
161061847f8eSopenharmony_ci   * Sets the number of elements to display per page.
161161847f8eSopenharmony_ci   *
161261847f8eSopenharmony_ci   * If swipeByGroup is set to true:
161361847f8eSopenharmony_ci   * 1、All sub-items are grouped from index 0.
161461847f8eSopenharmony_ci   * 2、The number of sub-items in each group is the value of displayCount.
161561847f8eSopenharmony_ci   * 3、If the number of sub-items in the last group is less than displayCount, placeholder items are added to supplement the number of last group.
161661847f8eSopenharmony_ci   * 4、Placeholder items do not display any content and are only used as placeholders.
161761847f8eSopenharmony_ci   * 5、When turning pages, turn pages by group.
161861847f8eSopenharmony_ci   *
161961847f8eSopenharmony_ci   * @param { number | string | SwiperAutoFill } value
162061847f8eSopenharmony_ci   * @param { boolean } [swipeByGroup] - if swipe by group.
162161847f8eSopenharmony_ci   * @returns { SwiperAttribute }
162261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
162361847f8eSopenharmony_ci   * @crossplatform
162461847f8eSopenharmony_ci   * @form
162561847f8eSopenharmony_ci   * @atomicservice
162661847f8eSopenharmony_ci   * @since 11
162761847f8eSopenharmony_ci   */
162861847f8eSopenharmony_ci  displayCount(value: number | string | SwiperAutoFill, swipeByGroup?: boolean): SwiperAttribute;
162961847f8eSopenharmony_ci
163061847f8eSopenharmony_ci  /**
163161847f8eSopenharmony_ci   * Invoked when setting the sliding effect
163261847f8eSopenharmony_ci   *
163361847f8eSopenharmony_ci   * @param { EdgeEffect } value
163461847f8eSopenharmony_ci   * @returns { SwiperAttribute }
163561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
163661847f8eSopenharmony_ci   * @since 8
163761847f8eSopenharmony_ci   */
163861847f8eSopenharmony_ci  /**
163961847f8eSopenharmony_ci   * Invoked when setting the sliding effect
164061847f8eSopenharmony_ci   *
164161847f8eSopenharmony_ci   * @param { EdgeEffect } value
164261847f8eSopenharmony_ci   * @returns { SwiperAttribute }
164361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
164461847f8eSopenharmony_ci   * @crossplatform
164561847f8eSopenharmony_ci   * @form
164661847f8eSopenharmony_ci   * @since 10
164761847f8eSopenharmony_ci   */
164861847f8eSopenharmony_ci  /**
164961847f8eSopenharmony_ci   * Invoked when setting the sliding effect
165061847f8eSopenharmony_ci   *
165161847f8eSopenharmony_ci   * @param { EdgeEffect } value
165261847f8eSopenharmony_ci   * @returns { SwiperAttribute }
165361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
165461847f8eSopenharmony_ci   * @crossplatform
165561847f8eSopenharmony_ci   * @form
165661847f8eSopenharmony_ci   * @atomicservice
165761847f8eSopenharmony_ci   * @since 11
165861847f8eSopenharmony_ci   */
165961847f8eSopenharmony_ci  effectMode(value: EdgeEffect): SwiperAttribute;
166061847f8eSopenharmony_ci
166161847f8eSopenharmony_ci  /**
166261847f8eSopenharmony_ci   * Sets whether to disable the swipe feature
166361847f8eSopenharmony_ci   *
166461847f8eSopenharmony_ci   * @param { boolean } value
166561847f8eSopenharmony_ci   * @returns { SwiperAttribute }
166661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
166761847f8eSopenharmony_ci   * @since 8
166861847f8eSopenharmony_ci   */
166961847f8eSopenharmony_ci  /**
167061847f8eSopenharmony_ci   * Sets whether to disable the swipe feature
167161847f8eSopenharmony_ci   *
167261847f8eSopenharmony_ci   * @param { boolean } value
167361847f8eSopenharmony_ci   * @returns { SwiperAttribute }
167461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
167561847f8eSopenharmony_ci   * @crossplatform
167661847f8eSopenharmony_ci   * @form
167761847f8eSopenharmony_ci   * @since 10
167861847f8eSopenharmony_ci   */
167961847f8eSopenharmony_ci  /**
168061847f8eSopenharmony_ci   * Sets whether to disable the swipe feature
168161847f8eSopenharmony_ci   *
168261847f8eSopenharmony_ci   * @param { boolean } value
168361847f8eSopenharmony_ci   * @returns { SwiperAttribute }
168461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
168561847f8eSopenharmony_ci   * @crossplatform
168661847f8eSopenharmony_ci   * @form
168761847f8eSopenharmony_ci   * @atomicservice
168861847f8eSopenharmony_ci   * @since 11
168961847f8eSopenharmony_ci   */
169061847f8eSopenharmony_ci  disableSwipe(value: boolean): SwiperAttribute;
169161847f8eSopenharmony_ci
169261847f8eSopenharmony_ci  /**
169361847f8eSopenharmony_ci   * Sets the animation curve
169461847f8eSopenharmony_ci   *
169561847f8eSopenharmony_ci   * @param { Curve | string } value
169661847f8eSopenharmony_ci   * @returns { SwiperAttribute }
169761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
169861847f8eSopenharmony_ci   * @since 8
169961847f8eSopenharmony_ci   */
170061847f8eSopenharmony_ci  /**
170161847f8eSopenharmony_ci   * Sets the animation curve
170261847f8eSopenharmony_ci   * Curve is an enumeration type for common curves
170361847f8eSopenharmony_ci   * ICurve is a curve object
170461847f8eSopenharmony_ci   *
170561847f8eSopenharmony_ci   * @param { Curve | string | ICurve } value
170661847f8eSopenharmony_ci   * @returns { SwiperAttribute }
170761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
170861847f8eSopenharmony_ci   * @crossplatform
170961847f8eSopenharmony_ci   * @form
171061847f8eSopenharmony_ci   * @since 10
171161847f8eSopenharmony_ci   */
171261847f8eSopenharmony_ci  /**
171361847f8eSopenharmony_ci   * Sets the animation curve
171461847f8eSopenharmony_ci   * Curve is an enumeration type for common curves
171561847f8eSopenharmony_ci   * ICurve is a curve object
171661847f8eSopenharmony_ci   *
171761847f8eSopenharmony_ci   * @param { Curve | string | ICurve } value
171861847f8eSopenharmony_ci   * @returns { SwiperAttribute }
171961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
172061847f8eSopenharmony_ci   * @crossplatform
172161847f8eSopenharmony_ci   * @form
172261847f8eSopenharmony_ci   * @atomicservice
172361847f8eSopenharmony_ci   * @since 11
172461847f8eSopenharmony_ci   */
172561847f8eSopenharmony_ci  curve(value: Curve | string | ICurve): SwiperAttribute;
172661847f8eSopenharmony_ci
172761847f8eSopenharmony_ci  /**
172861847f8eSopenharmony_ci   * Called when the index value changes.
172961847f8eSopenharmony_ci   *
173061847f8eSopenharmony_ci   * @param { function } event
173161847f8eSopenharmony_ci   * @returns { SwiperAttribute }
173261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
173361847f8eSopenharmony_ci   * @since 7
173461847f8eSopenharmony_ci   */
173561847f8eSopenharmony_ci  /**
173661847f8eSopenharmony_ci   * Called when the index value changes.
173761847f8eSopenharmony_ci   *
173861847f8eSopenharmony_ci   * @param { function } event
173961847f8eSopenharmony_ci   * @returns { SwiperAttribute }
174061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
174161847f8eSopenharmony_ci   * @crossplatform
174261847f8eSopenharmony_ci   * @form
174361847f8eSopenharmony_ci   * @since 10
174461847f8eSopenharmony_ci   */
174561847f8eSopenharmony_ci  /**
174661847f8eSopenharmony_ci   * Called when the index value changes.
174761847f8eSopenharmony_ci   *
174861847f8eSopenharmony_ci   * @param { function } event
174961847f8eSopenharmony_ci   * @returns { SwiperAttribute }
175061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
175161847f8eSopenharmony_ci   * @crossplatform
175261847f8eSopenharmony_ci   * @form
175361847f8eSopenharmony_ci   * @atomicservice
175461847f8eSopenharmony_ci   * @since 11
175561847f8eSopenharmony_ci   */
175661847f8eSopenharmony_ci  onChange(event: (index: number) => void): SwiperAttribute;
175761847f8eSopenharmony_ci
175861847f8eSopenharmony_ci  /**
175961847f8eSopenharmony_ci   * Setting indicator style navigation.
176061847f8eSopenharmony_ci   *
176161847f8eSopenharmony_ci   * @param { IndicatorStyle } value
176261847f8eSopenharmony_ci   * @returns { SwiperAttribute }
176361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
176461847f8eSopenharmony_ci   * @since 8
176561847f8eSopenharmony_ci   * @deprecated since 10
176661847f8eSopenharmony_ci   */
176761847f8eSopenharmony_ci  indicatorStyle(value?: IndicatorStyle): SwiperAttribute;
176861847f8eSopenharmony_ci
176961847f8eSopenharmony_ci  /**
177061847f8eSopenharmony_ci   * The previous margin which can be used to expose a small portion of the previous item.
177161847f8eSopenharmony_ci   *
177261847f8eSopenharmony_ci   * @param { Length } value - The length of previous margin.
177361847f8eSopenharmony_ci   * @returns { SwiperAttribute } The attribute of the swiper.
177461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
177561847f8eSopenharmony_ci   * @since 10
177661847f8eSopenharmony_ci   */
177761847f8eSopenharmony_ci  /**
177861847f8eSopenharmony_ci   * The previous margin which can be used to expose a small portion of the previous item.
177961847f8eSopenharmony_ci   *
178061847f8eSopenharmony_ci   * @param { Length } value - The length of previous margin.
178161847f8eSopenharmony_ci   * @returns { SwiperAttribute } The attribute of the swiper.
178261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
178361847f8eSopenharmony_ci   * @crossplatform
178461847f8eSopenharmony_ci   * @atomicservice
178561847f8eSopenharmony_ci   * @since 11
178661847f8eSopenharmony_ci   */
178761847f8eSopenharmony_ci  /**
178861847f8eSopenharmony_ci   * The previous margin which can be used to expose a small portion of the previous item.
178961847f8eSopenharmony_ci   * When the previous item is empty, do not display blank space.
179061847f8eSopenharmony_ci   *
179161847f8eSopenharmony_ci   * @param { Length } value - The length of previous margin.
179261847f8eSopenharmony_ci   * @param { boolean } [ignoreBlank] - Whether to hide(ignore) the previous margin on the first page in non-loop scenarios.
179361847f8eSopenharmony_ci   * @returns { SwiperAttribute } The attribute of the swiper.
179461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
179561847f8eSopenharmony_ci   * @crossplatform
179661847f8eSopenharmony_ci   * @atomicservice
179761847f8eSopenharmony_ci   * @since 12
179861847f8eSopenharmony_ci   */
179961847f8eSopenharmony_ci  prevMargin(value: Length, ignoreBlank?: boolean): SwiperAttribute;
180061847f8eSopenharmony_ci
180161847f8eSopenharmony_ci  /**
180261847f8eSopenharmony_ci   * The next margin which can be used to expose a small portion of the latter item.
180361847f8eSopenharmony_ci   *
180461847f8eSopenharmony_ci   * @param { Length } value - The length of next margin.
180561847f8eSopenharmony_ci   * @returns { SwiperAttribute } The attribute of the swiper.
180661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
180761847f8eSopenharmony_ci   * @since 10
180861847f8eSopenharmony_ci   */
180961847f8eSopenharmony_ci  /**
181061847f8eSopenharmony_ci   * The next margin which can be used to expose a small portion of the latter item.
181161847f8eSopenharmony_ci   *
181261847f8eSopenharmony_ci   * @param { Length } value - The length of next margin.
181361847f8eSopenharmony_ci   * @returns { SwiperAttribute } The attribute of the swiper.
181461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
181561847f8eSopenharmony_ci   * @crossplatform
181661847f8eSopenharmony_ci   * @atomicservice
181761847f8eSopenharmony_ci   * @since 11
181861847f8eSopenharmony_ci   */
181961847f8eSopenharmony_ci  /**
182061847f8eSopenharmony_ci   * The next margin which can be used to expose a small portion of the latter item. 
182161847f8eSopenharmony_ci   * When the next item is empty, do not display blank space.
182261847f8eSopenharmony_ci   *
182361847f8eSopenharmony_ci   * @param { Length } value - The length of next margin.
182461847f8eSopenharmony_ci   * @param { boolean } [ignoreBlank] - Whether to hide(ignore) the next margin on the last page in non-loop scenarios.
182561847f8eSopenharmony_ci   * @returns { SwiperAttribute } The attribute of the swiper.
182661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
182761847f8eSopenharmony_ci   * @crossplatform
182861847f8eSopenharmony_ci   * @atomicservice
182961847f8eSopenharmony_ci   * @since 12
183061847f8eSopenharmony_ci   */
183161847f8eSopenharmony_ci  nextMargin(value: Length, ignoreBlank?: boolean): SwiperAttribute;
183261847f8eSopenharmony_ci
183361847f8eSopenharmony_ci  /**
183461847f8eSopenharmony_ci   * Called when the swiper animation start.
183561847f8eSopenharmony_ci   *
183661847f8eSopenharmony_ci   * @param { function } event - the index value of the swiper page that when animation start.
183761847f8eSopenharmony_ci   * @returns { SwiperAttribute }
183861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
183961847f8eSopenharmony_ci   * @since 9
184061847f8eSopenharmony_ci   */
184161847f8eSopenharmony_ci  /**
184261847f8eSopenharmony_ci   * Called when the swiper animation start.
184361847f8eSopenharmony_ci   *
184461847f8eSopenharmony_ci   * @param { function } event
184561847f8eSopenharmony_ci   * "index": the index value of the swiper page that when animation start.
184661847f8eSopenharmony_ci   * "targetIndex": the target index value of the swiper page that when animation start.
184761847f8eSopenharmony_ci   * "extraInfo": the extra callback info.
184861847f8eSopenharmony_ci   * @returns { SwiperAttribute }
184961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
185061847f8eSopenharmony_ci   * @crossplatform
185161847f8eSopenharmony_ci   * @form
185261847f8eSopenharmony_ci   * @since 10
185361847f8eSopenharmony_ci   */
185461847f8eSopenharmony_ci  /**
185561847f8eSopenharmony_ci   * Called when the swiper animation start.
185661847f8eSopenharmony_ci   *
185761847f8eSopenharmony_ci   * @param { function } event
185861847f8eSopenharmony_ci   * "index": the index value of the swiper page that when animation start.
185961847f8eSopenharmony_ci   * "targetIndex": the target index value of the swiper page that when animation start.
186061847f8eSopenharmony_ci   * "extraInfo": the extra callback info.
186161847f8eSopenharmony_ci   * @returns { SwiperAttribute }
186261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
186361847f8eSopenharmony_ci   * @crossplatform
186461847f8eSopenharmony_ci   * @form
186561847f8eSopenharmony_ci   * @atomicservice
186661847f8eSopenharmony_ci   * @since 11
186761847f8eSopenharmony_ci   */
186861847f8eSopenharmony_ci  onAnimationStart(event: (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent) => void): SwiperAttribute;
186961847f8eSopenharmony_ci
187061847f8eSopenharmony_ci  /**
187161847f8eSopenharmony_ci   * Called when the swiper animation end.
187261847f8eSopenharmony_ci   *
187361847f8eSopenharmony_ci   * @param { function } event - the index value of the swiper page that when animation end.
187461847f8eSopenharmony_ci   * @returns { SwiperAttribute }
187561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
187661847f8eSopenharmony_ci   * @since 9
187761847f8eSopenharmony_ci   */
187861847f8eSopenharmony_ci  /**
187961847f8eSopenharmony_ci   * Called when the swiper animation end.
188061847f8eSopenharmony_ci   *
188161847f8eSopenharmony_ci   * @param { function } event
188261847f8eSopenharmony_ci   * "index": the index value of the swiper page that when animation end.
188361847f8eSopenharmony_ci   * "extraInfo": the extra callback info.
188461847f8eSopenharmony_ci   * @returns { SwiperAttribute }
188561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
188661847f8eSopenharmony_ci   * @crossplatform
188761847f8eSopenharmony_ci   * @form
188861847f8eSopenharmony_ci   * @since 10
188961847f8eSopenharmony_ci   */
189061847f8eSopenharmony_ci  /**
189161847f8eSopenharmony_ci   * Called when the swiper animation end.
189261847f8eSopenharmony_ci   *
189361847f8eSopenharmony_ci   * @param { function } event
189461847f8eSopenharmony_ci   * "index": the index value of the swiper page that when animation end.
189561847f8eSopenharmony_ci   * "extraInfo": the extra callback info.
189661847f8eSopenharmony_ci   * @returns { SwiperAttribute }
189761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
189861847f8eSopenharmony_ci   * @crossplatform
189961847f8eSopenharmony_ci   * @form
190061847f8eSopenharmony_ci   * @atomicservice
190161847f8eSopenharmony_ci   * @since 11
190261847f8eSopenharmony_ci   */
190361847f8eSopenharmony_ci  onAnimationEnd(event: (index: number, extraInfo: SwiperAnimationEvent) => void): SwiperAttribute;
190461847f8eSopenharmony_ci
190561847f8eSopenharmony_ci  /**
190661847f8eSopenharmony_ci   * Called when the swiper swipe with the gesture.
190761847f8eSopenharmony_ci   *
190861847f8eSopenharmony_ci   * @param { function } event
190961847f8eSopenharmony_ci   * "index": the index value of the swiper page before gesture swipe.
191061847f8eSopenharmony_ci   * "extraInfo": the extra callback info.
191161847f8eSopenharmony_ci   * @returns { SwiperAttribute }
191261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
191361847f8eSopenharmony_ci   * @crossplatform
191461847f8eSopenharmony_ci   * @since 10
191561847f8eSopenharmony_ci   */
191661847f8eSopenharmony_ci  /**
191761847f8eSopenharmony_ci   * Called when the swiper swipe with the gesture.
191861847f8eSopenharmony_ci   *
191961847f8eSopenharmony_ci   * @param { function } event
192061847f8eSopenharmony_ci   * "index": the index value of the swiper page before gesture swipe.
192161847f8eSopenharmony_ci   * "extraInfo": the extra callback info.
192261847f8eSopenharmony_ci   * @returns { SwiperAttribute }
192361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
192461847f8eSopenharmony_ci   * @crossplatform
192561847f8eSopenharmony_ci   * @atomicservice
192661847f8eSopenharmony_ci   * @since 11
192761847f8eSopenharmony_ci   */
192861847f8eSopenharmony_ci  onGestureSwipe(event: (index: number, extraInfo: SwiperAnimationEvent) => void): SwiperAttribute;
192961847f8eSopenharmony_ci
193061847f8eSopenharmony_ci  /**
193161847f8eSopenharmony_ci   * Called to setting the nested scroll mode.
193261847f8eSopenharmony_ci   *
193361847f8eSopenharmony_ci   * @param { SwiperNestedScrollMode } value - mode for nested scrolling.
193461847f8eSopenharmony_ci   * @returns { SwiperAttribute } the attribute of the swiper.
193561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
193661847f8eSopenharmony_ci   * @crossplatform
193761847f8eSopenharmony_ci   * @atomicservice
193861847f8eSopenharmony_ci   * @since 11
193961847f8eSopenharmony_ci   */
194061847f8eSopenharmony_ci  nestedScroll(value: SwiperNestedScrollMode): SwiperAttribute;
194161847f8eSopenharmony_ci
194261847f8eSopenharmony_ci  /**
194361847f8eSopenharmony_ci   * Custom swiper content transition animation.
194461847f8eSopenharmony_ci   *
194561847f8eSopenharmony_ci   * @param { SwiperContentAnimatedTransition } transition - custom content transition animation.
194661847f8eSopenharmony_ci   * @returns { SwiperAttribute } the attribute of the swiper.
194761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
194861847f8eSopenharmony_ci   * @crossplatform
194961847f8eSopenharmony_ci   * @atomicservice
195061847f8eSopenharmony_ci   * @since 12
195161847f8eSopenharmony_ci   */
195261847f8eSopenharmony_ci  customContentTransition(transition: SwiperContentAnimatedTransition): SwiperAttribute;
195361847f8eSopenharmony_ci
195461847f8eSopenharmony_ci  /**
195561847f8eSopenharmony_ci   * Called when the swiper content did scroll.
195661847f8eSopenharmony_ci   *
195761847f8eSopenharmony_ci   * @param { ContentDidScrollCallback } handler - callback of scroll,
195861847f8eSopenharmony_ci   * selectedIndex is the index value of the swiper content selected before animation start.
195961847f8eSopenharmony_ci   * index is the index value of the swiper content.
196061847f8eSopenharmony_ci   * position is the moving ratio of the swiper content from the start position of the swiper main axis.
196161847f8eSopenharmony_ci   * mainAxisLength is the swiper main axis length for calculating position.
196261847f8eSopenharmony_ci   * @returns { SwiperAttribute } the attribute of the swiper.
196361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
196461847f8eSopenharmony_ci   * @crossplatform
196561847f8eSopenharmony_ci   * @atomicservice
196661847f8eSopenharmony_ci   * @since 12
196761847f8eSopenharmony_ci   */
196861847f8eSopenharmony_ci  onContentDidScroll(handler: ContentDidScrollCallback): SwiperAttribute;
196961847f8eSopenharmony_ci
197061847f8eSopenharmony_ci  /**
197161847f8eSopenharmony_ci   * Setting whether the indicator is interactive.
197261847f8eSopenharmony_ci   *
197361847f8eSopenharmony_ci   * @param { boolean } value - Whether the indicator is interactive.
197461847f8eSopenharmony_ci   * @returns { SwiperAttribute }
197561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
197661847f8eSopenharmony_ci   * @crossplatform
197761847f8eSopenharmony_ci   * @atomicservice
197861847f8eSopenharmony_ci   * @since 12
197961847f8eSopenharmony_ci   */
198061847f8eSopenharmony_ci  indicatorInteractive(value: boolean): SwiperAttribute;
198161847f8eSopenharmony_ci}
198261847f8eSopenharmony_ci
198361847f8eSopenharmony_ci/**
198461847f8eSopenharmony_ci * Defines the swiper content animated transition options.
198561847f8eSopenharmony_ci *
198661847f8eSopenharmony_ci * @interface SwiperContentAnimatedTransition
198761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
198861847f8eSopenharmony_ci * @crossplatform
198961847f8eSopenharmony_ci * @atomicservice
199061847f8eSopenharmony_ci * @since 12
199161847f8eSopenharmony_ci */
199261847f8eSopenharmony_cideclare interface SwiperContentAnimatedTransition {
199361847f8eSopenharmony_ci  /**
199461847f8eSopenharmony_ci   * Defines the timeout of custom content transition animation after the page is moved out of the swiper. The unit is ms.
199561847f8eSopenharmony_ci   * If SwiperContentTransitionProxy.finishTransition() is not invoked, use the timeout as animation end time.
199661847f8eSopenharmony_ci   *
199761847f8eSopenharmony_ci   * @type { ?number }
199861847f8eSopenharmony_ci   * @default 0 ms
199961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
200061847f8eSopenharmony_ci   * @crossplatform
200161847f8eSopenharmony_ci   * @atomicservice
200261847f8eSopenharmony_ci   * @since 12
200361847f8eSopenharmony_ci   */
200461847f8eSopenharmony_ci  timeout?: number;
200561847f8eSopenharmony_ci
200661847f8eSopenharmony_ci  /**
200761847f8eSopenharmony_ci   * Called when custom content transition animation start.
200861847f8eSopenharmony_ci   *
200961847f8eSopenharmony_ci   * @type { Callback<SwiperContentTransitionProxy> }
201061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
201161847f8eSopenharmony_ci   * @crossplatform
201261847f8eSopenharmony_ci   * @atomicservice
201361847f8eSopenharmony_ci   * @since 12
201461847f8eSopenharmony_ci   */
201561847f8eSopenharmony_ci  transition: Callback<SwiperContentTransitionProxy>;
201661847f8eSopenharmony_ci}
201761847f8eSopenharmony_ci
201861847f8eSopenharmony_ci/**
201961847f8eSopenharmony_ci * The proxy of SwiperContentAnimatedTransition.
202061847f8eSopenharmony_ci *
202161847f8eSopenharmony_ci * @interface SwiperContentTransitionProxy
202261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
202361847f8eSopenharmony_ci * @crossplatform
202461847f8eSopenharmony_ci * @atomicservice
202561847f8eSopenharmony_ci * @since 12
202661847f8eSopenharmony_ci */
202761847f8eSopenharmony_cideclare interface SwiperContentTransitionProxy {
202861847f8eSopenharmony_ci  /**
202961847f8eSopenharmony_ci   * the index value of the swiper content selected before animation start.
203061847f8eSopenharmony_ci   *
203161847f8eSopenharmony_ci   * @type { number }
203261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
203361847f8eSopenharmony_ci   * @crossplatform
203461847f8eSopenharmony_ci   * @atomicservice
203561847f8eSopenharmony_ci   * @since 12
203661847f8eSopenharmony_ci   */
203761847f8eSopenharmony_ci  selectedIndex: number;
203861847f8eSopenharmony_ci
203961847f8eSopenharmony_ci  /**
204061847f8eSopenharmony_ci   * The index value of the swiper content.
204161847f8eSopenharmony_ci   *
204261847f8eSopenharmony_ci   * @type { number }
204361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
204461847f8eSopenharmony_ci   * @crossplatform
204561847f8eSopenharmony_ci   * @atomicservice
204661847f8eSopenharmony_ci   * @since 12
204761847f8eSopenharmony_ci   */
204861847f8eSopenharmony_ci  index: number;
204961847f8eSopenharmony_ci
205061847f8eSopenharmony_ci  /**
205161847f8eSopenharmony_ci   * the moving ratio of the swiper content from the start position of the swiper main axis.
205261847f8eSopenharmony_ci   *
205361847f8eSopenharmony_ci   * @type { number }
205461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
205561847f8eSopenharmony_ci   * @crossplatform
205661847f8eSopenharmony_ci   * @atomicservice
205761847f8eSopenharmony_ci   * @since 12
205861847f8eSopenharmony_ci   */
205961847f8eSopenharmony_ci  position: number;
206061847f8eSopenharmony_ci
206161847f8eSopenharmony_ci  /**
206261847f8eSopenharmony_ci   * the swiper main axis length for calculating position.
206361847f8eSopenharmony_ci   *
206461847f8eSopenharmony_ci   * @type { number }
206561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
206661847f8eSopenharmony_ci   * @crossplatform
206761847f8eSopenharmony_ci   * @atomicservice
206861847f8eSopenharmony_ci   * @since 12
206961847f8eSopenharmony_ci   */
207061847f8eSopenharmony_ci  mainAxisLength: number;
207161847f8eSopenharmony_ci
207261847f8eSopenharmony_ci  /**
207361847f8eSopenharmony_ci   * Notifies Swiper page the custom content transition animation is complete.
207461847f8eSopenharmony_ci   *
207561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
207661847f8eSopenharmony_ci   * @crossplatform
207761847f8eSopenharmony_ci   * @atomicservice
207861847f8eSopenharmony_ci   * @since 12
207961847f8eSopenharmony_ci   */
208061847f8eSopenharmony_ci  finishTransition(): void;
208161847f8eSopenharmony_ci}
208261847f8eSopenharmony_ci
208361847f8eSopenharmony_ci/**
208461847f8eSopenharmony_ci * The callback of onContentDidScroll.
208561847f8eSopenharmony_ci * 
208661847f8eSopenharmony_ci * @typedef { Function } ContentDidScrollCallback
208761847f8eSopenharmony_ci * @param { number } selectedIndex - the index value of the swiper content selected before animation start.
208861847f8eSopenharmony_ci * @param { number } index - the index value of the swiper content.
208961847f8eSopenharmony_ci * @param { number } position - the moving ratio of the swiper content from the start position of the swiper main axis.
209061847f8eSopenharmony_ci * @param { number } mainAxisLength - the swiper main axis length for calculating position.
209161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
209261847f8eSopenharmony_ci * @crossplatform
209361847f8eSopenharmony_ci * @atomicservice
209461847f8eSopenharmony_ci * @since 12
209561847f8eSopenharmony_ci */
209661847f8eSopenharmony_cideclare type ContentDidScrollCallback = (selectedIndex: number, index: number, position: number, mainAxisLength: number) => void;
209761847f8eSopenharmony_ci
209861847f8eSopenharmony_ci/**
209961847f8eSopenharmony_ci * Defines Swiper Component.
210061847f8eSopenharmony_ci *
210161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
210261847f8eSopenharmony_ci * @since 7
210361847f8eSopenharmony_ci */
210461847f8eSopenharmony_ci/**
210561847f8eSopenharmony_ci * Defines Swiper Component.
210661847f8eSopenharmony_ci *
210761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
210861847f8eSopenharmony_ci * @crossplatform
210961847f8eSopenharmony_ci * @form
211061847f8eSopenharmony_ci * @since 10
211161847f8eSopenharmony_ci */
211261847f8eSopenharmony_ci/**
211361847f8eSopenharmony_ci * Defines Swiper Component.
211461847f8eSopenharmony_ci *
211561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
211661847f8eSopenharmony_ci * @crossplatform
211761847f8eSopenharmony_ci * @form
211861847f8eSopenharmony_ci * @atomicservice
211961847f8eSopenharmony_ci * @since 11
212061847f8eSopenharmony_ci */
212161847f8eSopenharmony_cideclare const Swiper: SwiperInterface;
212261847f8eSopenharmony_ci
212361847f8eSopenharmony_ci/**
212461847f8eSopenharmony_ci * Defines Swiper Component instance.
212561847f8eSopenharmony_ci *
212661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
212761847f8eSopenharmony_ci * @since 7
212861847f8eSopenharmony_ci */
212961847f8eSopenharmony_ci/**
213061847f8eSopenharmony_ci * Defines Swiper Component instance.
213161847f8eSopenharmony_ci *
213261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
213361847f8eSopenharmony_ci * @crossplatform
213461847f8eSopenharmony_ci * @form
213561847f8eSopenharmony_ci * @since 10
213661847f8eSopenharmony_ci */
213761847f8eSopenharmony_ci/**
213861847f8eSopenharmony_ci * Defines Swiper Component instance.
213961847f8eSopenharmony_ci *
214061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
214161847f8eSopenharmony_ci * @crossplatform
214261847f8eSopenharmony_ci * @form
214361847f8eSopenharmony_ci * @atomicservice
214461847f8eSopenharmony_ci * @since 11
214561847f8eSopenharmony_ci */
214661847f8eSopenharmony_cideclare const SwiperInstance: SwiperAttribute;
2147