161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit ArkUI
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ci/**
2261847f8eSopenharmony_ci * Declare the graphic format of the bar chart.
2361847f8eSopenharmony_ci *
2461847f8eSopenharmony_ci * @enum { number }
2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
2661847f8eSopenharmony_ci * @since 7
2761847f8eSopenharmony_ci */
2861847f8eSopenharmony_ci/**
2961847f8eSopenharmony_ci * Declare the graphic format of the bar chart.
3061847f8eSopenharmony_ci *
3161847f8eSopenharmony_ci * @enum { number }
3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
3361847f8eSopenharmony_ci * @crossplatform
3461847f8eSopenharmony_ci * @since 10
3561847f8eSopenharmony_ci */
3661847f8eSopenharmony_ci/**
3761847f8eSopenharmony_ci * Declare the graphic format of the bar chart.
3861847f8eSopenharmony_ci *
3961847f8eSopenharmony_ci * @enum { number }
4061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
4161847f8eSopenharmony_ci * @crossplatform
4261847f8eSopenharmony_ci * @atomicservice
4361847f8eSopenharmony_ci * @since 11
4461847f8eSopenharmony_ci */
4561847f8eSopenharmony_cideclare enum BarMode {
4661847f8eSopenharmony_ci  /**
4761847f8eSopenharmony_ci   * The actual layout width of the TabBar is used. If the width exceeds the total width, you can slide the tabbar.
4861847f8eSopenharmony_ci   *
4961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
5061847f8eSopenharmony_ci   * @since 7
5161847f8eSopenharmony_ci   */
5261847f8eSopenharmony_ci  /**
5361847f8eSopenharmony_ci   * The actual layout width of the TabBar is used. If the width exceeds the total width, you can slide the tabbar.
5461847f8eSopenharmony_ci   *
5561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
5661847f8eSopenharmony_ci   * @crossplatform
5761847f8eSopenharmony_ci   * @since 10
5861847f8eSopenharmony_ci   */
5961847f8eSopenharmony_ci  /**
6061847f8eSopenharmony_ci   * The actual layout width of the TabBar is used. If the width exceeds the total width, you can slide the tabbar.
6161847f8eSopenharmony_ci   *
6261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6361847f8eSopenharmony_ci   * @crossplatform
6461847f8eSopenharmony_ci   * @atomicservice
6561847f8eSopenharmony_ci   * @since 11
6661847f8eSopenharmony_ci   */
6761847f8eSopenharmony_ci  Scrollable = 0,
6861847f8eSopenharmony_ci
6961847f8eSopenharmony_ci  /**
7061847f8eSopenharmony_ci   * The width of all TabBars is evenly allocated.
7161847f8eSopenharmony_ci   *
7261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
7361847f8eSopenharmony_ci   * @since 7
7461847f8eSopenharmony_ci   */
7561847f8eSopenharmony_ci  /**
7661847f8eSopenharmony_ci   * The width of all TabBars is evenly allocated.
7761847f8eSopenharmony_ci   *
7861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
7961847f8eSopenharmony_ci   * @crossplatform
8061847f8eSopenharmony_ci   * @since 10
8161847f8eSopenharmony_ci   */
8261847f8eSopenharmony_ci  /**
8361847f8eSopenharmony_ci   * The width of all TabBars is evenly allocated.
8461847f8eSopenharmony_ci   *
8561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
8661847f8eSopenharmony_ci   * @crossplatform
8761847f8eSopenharmony_ci   * @atomicservice
8861847f8eSopenharmony_ci   * @since 11
8961847f8eSopenharmony_ci   */
9061847f8eSopenharmony_ci  Fixed = 1,
9161847f8eSopenharmony_ci}
9261847f8eSopenharmony_ci
9361847f8eSopenharmony_ci/**
9461847f8eSopenharmony_ci * Declare the animation mode of tab content.
9561847f8eSopenharmony_ci *
9661847f8eSopenharmony_ci * @enum { number }
9761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
9861847f8eSopenharmony_ci * @crossplatform
9961847f8eSopenharmony_ci * @atomicservice
10061847f8eSopenharmony_ci * @since 12
10161847f8eSopenharmony_ci */
10261847f8eSopenharmony_cideclare enum AnimationMode {
10361847f8eSopenharmony_ci  /**
10461847f8eSopenharmony_ci   * Start animation after tabcontent is fully measured.
10561847f8eSopenharmony_ci   *
10661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10761847f8eSopenharmony_ci   * @crossplatform
10861847f8eSopenharmony_ci   * @atomicservice
10961847f8eSopenharmony_ci   * @since 12
11061847f8eSopenharmony_ci   */
11161847f8eSopenharmony_ci  CONTENT_FIRST = 0,
11261847f8eSopenharmony_ci
11361847f8eSopenharmony_ci  /**
11461847f8eSopenharmony_ci   * Start animation before tabcontent is fully measured.
11561847f8eSopenharmony_ci   *
11661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
11761847f8eSopenharmony_ci   * @crossplatform
11861847f8eSopenharmony_ci   * @atomicservice
11961847f8eSopenharmony_ci   * @since 12
12061847f8eSopenharmony_ci   */
12161847f8eSopenharmony_ci  ACTION_FIRST = 1,
12261847f8eSopenharmony_ci
12361847f8eSopenharmony_ci  /**
12461847f8eSopenharmony_ci   * Disable default animation.
12561847f8eSopenharmony_ci   *
12661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
12761847f8eSopenharmony_ci   * @crossplatform
12861847f8eSopenharmony_ci   * @atomicservice
12961847f8eSopenharmony_ci   * @since 12
13061847f8eSopenharmony_ci   */
13161847f8eSopenharmony_ci  NO_ANIMATION = 2,
13261847f8eSopenharmony_ci}
13361847f8eSopenharmony_ci
13461847f8eSopenharmony_ci/**
13561847f8eSopenharmony_ci * Declare the location of the bar chart.
13661847f8eSopenharmony_ci *
13761847f8eSopenharmony_ci * @enum { number }
13861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
13961847f8eSopenharmony_ci * @since 7
14061847f8eSopenharmony_ci */
14161847f8eSopenharmony_ci/**
14261847f8eSopenharmony_ci * Declare the location of the bar chart.
14361847f8eSopenharmony_ci *
14461847f8eSopenharmony_ci * @enum { number }
14561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
14661847f8eSopenharmony_ci * @crossplatform
14761847f8eSopenharmony_ci * @since 10
14861847f8eSopenharmony_ci */
14961847f8eSopenharmony_ci/**
15061847f8eSopenharmony_ci * Declare the location of the bar chart.
15161847f8eSopenharmony_ci *
15261847f8eSopenharmony_ci * @enum { number }
15361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
15461847f8eSopenharmony_ci * @crossplatform
15561847f8eSopenharmony_ci * @atomicservice
15661847f8eSopenharmony_ci * @since 11
15761847f8eSopenharmony_ci */
15861847f8eSopenharmony_cideclare enum BarPosition {
15961847f8eSopenharmony_ci  /**
16061847f8eSopenharmony_ci   * When the vertical attribute method is set to true, the tab is on the left of the container. When the vertical property method is set to false, the tab is at the top of the container.
16161847f8eSopenharmony_ci   *
16261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
16361847f8eSopenharmony_ci   * @since 7
16461847f8eSopenharmony_ci   */
16561847f8eSopenharmony_ci  /**
16661847f8eSopenharmony_ci   * When the vertical attribute method is set to true, the tab is on the left of the container. When the vertical property method is set to false, the tab is at the top of the container.
16761847f8eSopenharmony_ci   *
16861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
16961847f8eSopenharmony_ci   * @crossplatform
17061847f8eSopenharmony_ci   * @since 10
17161847f8eSopenharmony_ci   */
17261847f8eSopenharmony_ci  /**
17361847f8eSopenharmony_ci   * When the vertical attribute method is set to true, the tab is on the left of the container. When the vertical property method is set to false, the tab is at the top of the container.
17461847f8eSopenharmony_ci   *
17561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
17661847f8eSopenharmony_ci   * @crossplatform
17761847f8eSopenharmony_ci   * @atomicservice
17861847f8eSopenharmony_ci   * @since 11
17961847f8eSopenharmony_ci   */
18061847f8eSopenharmony_ci  Start,
18161847f8eSopenharmony_ci
18261847f8eSopenharmony_ci  /**
18361847f8eSopenharmony_ci   * When the vertical attribute method is set to true, the tab is located on the right of the container. When the vertical property method is set to false, the tab is at the bottom of the container.
18461847f8eSopenharmony_ci   *
18561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18661847f8eSopenharmony_ci   * @since 7
18761847f8eSopenharmony_ci   */
18861847f8eSopenharmony_ci  /**
18961847f8eSopenharmony_ci   * When the vertical attribute method is set to true, the tab is located on the right of the container. When the vertical property method is set to false, the tab is at the bottom of the container.
19061847f8eSopenharmony_ci   *
19161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
19261847f8eSopenharmony_ci   * @crossplatform
19361847f8eSopenharmony_ci   * @since 10
19461847f8eSopenharmony_ci   */
19561847f8eSopenharmony_ci  /**
19661847f8eSopenharmony_ci   * When the vertical attribute method is set to true, the tab is located on the right of the container. When the vertical property method is set to false, the tab is at the bottom of the container.
19761847f8eSopenharmony_ci   *
19861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
19961847f8eSopenharmony_ci   * @crossplatform
20061847f8eSopenharmony_ci   * @atomicservice
20161847f8eSopenharmony_ci   * @since 11
20261847f8eSopenharmony_ci   */
20361847f8eSopenharmony_ci  End,
20461847f8eSopenharmony_ci}
20561847f8eSopenharmony_ci
20661847f8eSopenharmony_ci/**
20761847f8eSopenharmony_ci * Declare the layout style of the tab bar items.
20861847f8eSopenharmony_ci *
20961847f8eSopenharmony_ci * @enum { number }
21061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
21161847f8eSopenharmony_ci * @crossplatform
21261847f8eSopenharmony_ci * @since 10
21361847f8eSopenharmony_ci */
21461847f8eSopenharmony_ci/**
21561847f8eSopenharmony_ci * Declare the layout style of the tab bar items.
21661847f8eSopenharmony_ci *
21761847f8eSopenharmony_ci * @enum { number }
21861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
21961847f8eSopenharmony_ci * @crossplatform
22061847f8eSopenharmony_ci * @atomicservice
22161847f8eSopenharmony_ci * @since 11
22261847f8eSopenharmony_ci */
22361847f8eSopenharmony_cideclare enum LayoutStyle {
22461847f8eSopenharmony_ci  /**
22561847f8eSopenharmony_ci   * The tab bar items are laid in the center of the tab bar.
22661847f8eSopenharmony_ci   *
22761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
22861847f8eSopenharmony_ci   * @crossplatform
22961847f8eSopenharmony_ci   * @since 10
23061847f8eSopenharmony_ci   */
23161847f8eSopenharmony_ci  /**
23261847f8eSopenharmony_ci   * The tab bar items are laid in the center of the tab bar.
23361847f8eSopenharmony_ci   *
23461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
23561847f8eSopenharmony_ci   * @crossplatform
23661847f8eSopenharmony_ci   * @atomicservice
23761847f8eSopenharmony_ci   * @since 11
23861847f8eSopenharmony_ci   */
23961847f8eSopenharmony_ci  ALWAYS_CENTER = 0,
24061847f8eSopenharmony_ci  /**
24161847f8eSopenharmony_ci   * The tab bar items are laid in the tab bar by an average split.
24261847f8eSopenharmony_ci   *
24361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
24461847f8eSopenharmony_ci   * @crossplatform
24561847f8eSopenharmony_ci   * @since 10
24661847f8eSopenharmony_ci   */
24761847f8eSopenharmony_ci  /**
24861847f8eSopenharmony_ci   * The tab bar items are laid in the tab bar by an average split.
24961847f8eSopenharmony_ci   *
25061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
25161847f8eSopenharmony_ci   * @crossplatform
25261847f8eSopenharmony_ci   * @atomicservice
25361847f8eSopenharmony_ci   * @since 11
25461847f8eSopenharmony_ci   */
25561847f8eSopenharmony_ci  ALWAYS_AVERAGE_SPLIT = 1,
25661847f8eSopenharmony_ci  /**
25761847f8eSopenharmony_ci   * The tab bar items are laid in the center of the bar when their total length is more than half of the tab bar.
25861847f8eSopenharmony_ci   * Otherwise, they are laid in the center half of the tab bar with the same space between them. 
25961847f8eSopenharmony_ci   *
26061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
26161847f8eSopenharmony_ci   * @crossplatform
26261847f8eSopenharmony_ci   * @since 10
26361847f8eSopenharmony_ci   */
26461847f8eSopenharmony_ci  /**
26561847f8eSopenharmony_ci   * The tab bar items are laid in the center of the bar when their total length is more than half of the tab bar.
26661847f8eSopenharmony_ci   * Otherwise, they are laid in the center half of the tab bar with the same space between them. 
26761847f8eSopenharmony_ci   *
26861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
26961847f8eSopenharmony_ci   * @crossplatform
27061847f8eSopenharmony_ci   * @atomicservice
27161847f8eSopenharmony_ci   * @since 11
27261847f8eSopenharmony_ci   */
27361847f8eSopenharmony_ci  SPACE_BETWEEN_OR_CENTER = 2
27461847f8eSopenharmony_ci} 
27561847f8eSopenharmony_ci
27661847f8eSopenharmony_ci/**
27761847f8eSopenharmony_ci * Provides methods for switching tabs.
27861847f8eSopenharmony_ci *
27961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
28061847f8eSopenharmony_ci * @since 7
28161847f8eSopenharmony_ci */
28261847f8eSopenharmony_ci/**
28361847f8eSopenharmony_ci * Provides methods for switching tabs.
28461847f8eSopenharmony_ci *
28561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
28661847f8eSopenharmony_ci * @crossplatform
28761847f8eSopenharmony_ci * @since 10
28861847f8eSopenharmony_ci */
28961847f8eSopenharmony_ci/**
29061847f8eSopenharmony_ci * Provides methods for switching tabs.
29161847f8eSopenharmony_ci *
29261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
29361847f8eSopenharmony_ci * @crossplatform
29461847f8eSopenharmony_ci * @atomicservice
29561847f8eSopenharmony_ci * @since 11
29661847f8eSopenharmony_ci */
29761847f8eSopenharmony_cideclare class TabsController {
29861847f8eSopenharmony_ci  /**
29961847f8eSopenharmony_ci   * constructor.
30061847f8eSopenharmony_ci   *
30161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
30261847f8eSopenharmony_ci   * @since 7
30361847f8eSopenharmony_ci   */
30461847f8eSopenharmony_ci  /**
30561847f8eSopenharmony_ci   * constructor.
30661847f8eSopenharmony_ci   *
30761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
30861847f8eSopenharmony_ci   * @crossplatform
30961847f8eSopenharmony_ci   * @since 10
31061847f8eSopenharmony_ci   */
31161847f8eSopenharmony_ci  /**
31261847f8eSopenharmony_ci   * constructor.
31361847f8eSopenharmony_ci   *
31461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
31561847f8eSopenharmony_ci   * @crossplatform
31661847f8eSopenharmony_ci   * @atomicservice
31761847f8eSopenharmony_ci   * @since 11
31861847f8eSopenharmony_ci   */
31961847f8eSopenharmony_ci  constructor();
32061847f8eSopenharmony_ci
32161847f8eSopenharmony_ci  /**
32261847f8eSopenharmony_ci   * Called when the tab is switched.
32361847f8eSopenharmony_ci   *
32461847f8eSopenharmony_ci   * @param { number } value
32561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
32661847f8eSopenharmony_ci   * @since 7
32761847f8eSopenharmony_ci   */
32861847f8eSopenharmony_ci  /**
32961847f8eSopenharmony_ci   * Called when the tab is switched.
33061847f8eSopenharmony_ci   *
33161847f8eSopenharmony_ci   * @param { number } value
33261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
33361847f8eSopenharmony_ci   * @crossplatform
33461847f8eSopenharmony_ci   * @since 10
33561847f8eSopenharmony_ci   */
33661847f8eSopenharmony_ci  /**
33761847f8eSopenharmony_ci   * Called when the tab is switched.
33861847f8eSopenharmony_ci   *
33961847f8eSopenharmony_ci   * @param { number } value
34061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
34161847f8eSopenharmony_ci   * @crossplatform
34261847f8eSopenharmony_ci   * @atomicservice
34361847f8eSopenharmony_ci   * @since 11
34461847f8eSopenharmony_ci   */
34561847f8eSopenharmony_ci  changeIndex(value: number): void;
34661847f8eSopenharmony_ci
34761847f8eSopenharmony_ci  /**
34861847f8eSopenharmony_ci   * Called when need to preload specified tab content.
34961847f8eSopenharmony_ci   *
35061847f8eSopenharmony_ci   * @param { Optional<Array<number>> } indices - Indices of tab content to be preloaded.
35161847f8eSopenharmony_ci   * @returns { Promise<void> } The promise returned by the function.
35261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter invalid. Possible causes:
35361847f8eSopenharmony_ci   * <br> 1. The parameter type is not Array<number>.
35461847f8eSopenharmony_ci   * <br> 2. The parameter is an empty array.
35561847f8eSopenharmony_ci   * <br> 3. The parameter contains an invalid index.
35661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35761847f8eSopenharmony_ci   * @crossplatform
35861847f8eSopenharmony_ci   * @atomicservice
35961847f8eSopenharmony_ci   * @since 12
36061847f8eSopenharmony_ci   */
36161847f8eSopenharmony_ci  preloadItems(indices: Optional<Array<number>>): Promise<void>;
36261847f8eSopenharmony_ci
36361847f8eSopenharmony_ci  /**
36461847f8eSopenharmony_ci   * Set tab bar translate.
36561847f8eSopenharmony_ci   *
36661847f8eSopenharmony_ci   * @param { TranslateOptions } translate - translate options
36761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
36861847f8eSopenharmony_ci   * @crossplatform
36961847f8eSopenharmony_ci   * @atomicservice
37061847f8eSopenharmony_ci   * @since 14
37161847f8eSopenharmony_ci   */
37261847f8eSopenharmony_ci  setTabBarTranslate(translate: TranslateOptions): void;
37361847f8eSopenharmony_ci
37461847f8eSopenharmony_ci  /**
37561847f8eSopenharmony_ci   * Set tab bar opacity.
37661847f8eSopenharmony_ci   *
37761847f8eSopenharmony_ci   * @param { number } opacity - opacity
37861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
37961847f8eSopenharmony_ci   * @crossplatform
38061847f8eSopenharmony_ci   * @atomicservice
38161847f8eSopenharmony_ci   * @since 14
38261847f8eSopenharmony_ci   */
38361847f8eSopenharmony_ci  setTabBarOpacity(opacity: number): void;
38461847f8eSopenharmony_ci}
38561847f8eSopenharmony_ci
38661847f8eSopenharmony_ci/**
38761847f8eSopenharmony_ci * Provides an interface for switching views.
38861847f8eSopenharmony_ci *
38961847f8eSopenharmony_ci * @interface TabsInterface
39061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
39161847f8eSopenharmony_ci * @since 7
39261847f8eSopenharmony_ci */
39361847f8eSopenharmony_ci/**
39461847f8eSopenharmony_ci * Provides an interface for switching views.
39561847f8eSopenharmony_ci *
39661847f8eSopenharmony_ci * @interface TabsInterface
39761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
39861847f8eSopenharmony_ci * @crossplatform
39961847f8eSopenharmony_ci * @since 10
40061847f8eSopenharmony_ci */
40161847f8eSopenharmony_ci/**
40261847f8eSopenharmony_ci * Provides an interface for switching views.
40361847f8eSopenharmony_ci *
40461847f8eSopenharmony_ci * @interface TabsInterface
40561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
40661847f8eSopenharmony_ci * @crossplatform
40761847f8eSopenharmony_ci * @atomicservice
40861847f8eSopenharmony_ci * @since 11
40961847f8eSopenharmony_ci */
41061847f8eSopenharmony_ciinterface TabsInterface {
41161847f8eSopenharmony_ci  /**
41261847f8eSopenharmony_ci   * Called when the view is switched.
41361847f8eSopenharmony_ci   *
41461847f8eSopenharmony_ci   * @param { object } value
41561847f8eSopenharmony_ci   * @returns { TabsAttribute }
41661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
41761847f8eSopenharmony_ci   * @since 7
41861847f8eSopenharmony_ci   */
41961847f8eSopenharmony_ci  /**
42061847f8eSopenharmony_ci   * Called when the view is switched.
42161847f8eSopenharmony_ci   *
42261847f8eSopenharmony_ci   * @param { object } value
42361847f8eSopenharmony_ci   * @returns { TabsAttribute }
42461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
42561847f8eSopenharmony_ci   * @crossplatform
42661847f8eSopenharmony_ci   * @since 10
42761847f8eSopenharmony_ci   */
42861847f8eSopenharmony_ci  /**
42961847f8eSopenharmony_ci   * Called when the view is switched.
43061847f8eSopenharmony_ci   *
43161847f8eSopenharmony_ci   * @param { object } value
43261847f8eSopenharmony_ci   * @returns { TabsAttribute }
43361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
43461847f8eSopenharmony_ci   * @crossplatform
43561847f8eSopenharmony_ci   * @atomicservice
43661847f8eSopenharmony_ci   * @since 11
43761847f8eSopenharmony_ci   */
43861847f8eSopenharmony_ci  (value?: { barPosition?: BarPosition; index?: number; controller?: TabsController }): TabsAttribute;
43961847f8eSopenharmony_ci}
44061847f8eSopenharmony_ci
44161847f8eSopenharmony_ci/**
44261847f8eSopenharmony_ci * Provides an interface for the style of an divider including stroke width, color, start margin
44361847f8eSopenharmony_ci * and end margin
44461847f8eSopenharmony_ci *
44561847f8eSopenharmony_ci * @interface DividerStyle
44661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
44761847f8eSopenharmony_ci * @crossplatform
44861847f8eSopenharmony_ci * @since 10
44961847f8eSopenharmony_ci */
45061847f8eSopenharmony_ci/**
45161847f8eSopenharmony_ci * Provides an interface for the style of an divider including stroke width, color, start margin
45261847f8eSopenharmony_ci * and end margin
45361847f8eSopenharmony_ci *
45461847f8eSopenharmony_ci * @interface DividerStyle
45561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
45661847f8eSopenharmony_ci * @crossplatform
45761847f8eSopenharmony_ci * @atomicservice
45861847f8eSopenharmony_ci * @since 11
45961847f8eSopenharmony_ci */
46061847f8eSopenharmony_ciinterface DividerStyle {
46161847f8eSopenharmony_ci  /**
46261847f8eSopenharmony_ci   * Define the stroke width of the divider
46361847f8eSopenharmony_ci   *
46461847f8eSopenharmony_ci   * @type { Length }
46561847f8eSopenharmony_ci   * @default 0
46661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
46761847f8eSopenharmony_ci   * @crossplatform
46861847f8eSopenharmony_ci   * @since 10
46961847f8eSopenharmony_ci   */
47061847f8eSopenharmony_ci  /**
47161847f8eSopenharmony_ci   * Define the stroke width of the divider
47261847f8eSopenharmony_ci   *
47361847f8eSopenharmony_ci   * @type { Length }
47461847f8eSopenharmony_ci   * @default 0
47561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
47661847f8eSopenharmony_ci   * @crossplatform
47761847f8eSopenharmony_ci   * @atomicservice
47861847f8eSopenharmony_ci   * @since 11
47961847f8eSopenharmony_ci   */
48061847f8eSopenharmony_ci  strokeWidth: Length;
48161847f8eSopenharmony_ci
48261847f8eSopenharmony_ci  /**
48361847f8eSopenharmony_ci   * Define the color of the divider
48461847f8eSopenharmony_ci   *
48561847f8eSopenharmony_ci   * @type { ?ResourceColor }
48661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
48761847f8eSopenharmony_ci   * @crossplatform
48861847f8eSopenharmony_ci   * @since 10
48961847f8eSopenharmony_ci   */
49061847f8eSopenharmony_ci  /**
49161847f8eSopenharmony_ci   * Define the color of the divider
49261847f8eSopenharmony_ci   *
49361847f8eSopenharmony_ci   * @type { ?ResourceColor }
49461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
49561847f8eSopenharmony_ci   * @crossplatform
49661847f8eSopenharmony_ci   * @atomicservice
49761847f8eSopenharmony_ci   * @since 11
49861847f8eSopenharmony_ci   */
49961847f8eSopenharmony_ci  color?: ResourceColor;
50061847f8eSopenharmony_ci
50161847f8eSopenharmony_ci  /**
50261847f8eSopenharmony_ci   * Define the start margin of the divider
50361847f8eSopenharmony_ci   *
50461847f8eSopenharmony_ci   * @type { ?Length }
50561847f8eSopenharmony_ci   * @default 0
50661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
50761847f8eSopenharmony_ci   * @crossplatform
50861847f8eSopenharmony_ci   * @since 10
50961847f8eSopenharmony_ci   */
51061847f8eSopenharmony_ci  /**
51161847f8eSopenharmony_ci   * Define the start margin of the divider
51261847f8eSopenharmony_ci   *
51361847f8eSopenharmony_ci   * @type { ?Length }
51461847f8eSopenharmony_ci   * @default 0
51561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
51661847f8eSopenharmony_ci   * @crossplatform
51761847f8eSopenharmony_ci   * @atomicservice
51861847f8eSopenharmony_ci   * @since 11
51961847f8eSopenharmony_ci   */
52061847f8eSopenharmony_ci  startMargin?: Length;
52161847f8eSopenharmony_ci
52261847f8eSopenharmony_ci  /**
52361847f8eSopenharmony_ci   * Define the end margin of the divider
52461847f8eSopenharmony_ci   *
52561847f8eSopenharmony_ci   * @type { ?Length }
52661847f8eSopenharmony_ci   * @default 0
52761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
52861847f8eSopenharmony_ci   * @crossplatform
52961847f8eSopenharmony_ci   * @since 10
53061847f8eSopenharmony_ci   */
53161847f8eSopenharmony_ci  /**
53261847f8eSopenharmony_ci   * Define the end margin of the divider
53361847f8eSopenharmony_ci   *
53461847f8eSopenharmony_ci   * @type { ?Length }
53561847f8eSopenharmony_ci   * @default 0
53661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
53761847f8eSopenharmony_ci   * @crossplatform
53861847f8eSopenharmony_ci   * @atomicservice
53961847f8eSopenharmony_ci   * @since 11
54061847f8eSopenharmony_ci   */
54161847f8eSopenharmony_ci  endMargin?: Length;
54261847f8eSopenharmony_ci}
54361847f8eSopenharmony_ci
54461847f8eSopenharmony_ci/**
54561847f8eSopenharmony_ci * Provides an interface for tabs animation.
54661847f8eSopenharmony_ci *
54761847f8eSopenharmony_ci * @interface TabsAnimationEvent
54861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
54961847f8eSopenharmony_ci * @crossplatform
55061847f8eSopenharmony_ci * @since 11
55161847f8eSopenharmony_ci */
55261847f8eSopenharmony_ci/**
55361847f8eSopenharmony_ci * Provides an interface for tabs animation.
55461847f8eSopenharmony_ci *
55561847f8eSopenharmony_ci * @interface TabsAnimationEvent
55661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
55761847f8eSopenharmony_ci * @crossplatform
55861847f8eSopenharmony_ci * @atomicservice
55961847f8eSopenharmony_ci * @since 12
56061847f8eSopenharmony_ci */
56161847f8eSopenharmony_cideclare interface TabsAnimationEvent {
56261847f8eSopenharmony_ci  /**
56361847f8eSopenharmony_ci   * Offset of the current page to the start position of the tabs main axis. The unit is vp.
56461847f8eSopenharmony_ci   *
56561847f8eSopenharmony_ci   * @type { number }
56661847f8eSopenharmony_ci   * @default 0.0 vp
56761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
56861847f8eSopenharmony_ci   * @crossplatform
56961847f8eSopenharmony_ci   * @since 11
57061847f8eSopenharmony_ci   */
57161847f8eSopenharmony_ci  /**
57261847f8eSopenharmony_ci   * Offset of the current page to the start position of the tabs main axis. The unit is vp.
57361847f8eSopenharmony_ci   *
57461847f8eSopenharmony_ci   * @type { number }
57561847f8eSopenharmony_ci   * @default 0.0 vp
57661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
57761847f8eSopenharmony_ci   * @crossplatform
57861847f8eSopenharmony_ci   * @atomicservice
57961847f8eSopenharmony_ci   * @since 12
58061847f8eSopenharmony_ci   */
58161847f8eSopenharmony_ci  currentOffset: number;
58261847f8eSopenharmony_ci
58361847f8eSopenharmony_ci  /**
58461847f8eSopenharmony_ci   * Offset of the target page to the start position of the tabs main axis. The unit is vp.
58561847f8eSopenharmony_ci   *
58661847f8eSopenharmony_ci   * @type { number }
58761847f8eSopenharmony_ci   * @default 0.0 vp
58861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
58961847f8eSopenharmony_ci   * @crossplatform
59061847f8eSopenharmony_ci   * @since 11
59161847f8eSopenharmony_ci   */
59261847f8eSopenharmony_ci  /**
59361847f8eSopenharmony_ci   * Offset of the target page to the start position of the tabs main axis. The unit is vp.
59461847f8eSopenharmony_ci   *
59561847f8eSopenharmony_ci   * @type { number }
59661847f8eSopenharmony_ci   * @default 0.0 vp
59761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
59861847f8eSopenharmony_ci   * @crossplatform
59961847f8eSopenharmony_ci   * @atomicservice
60061847f8eSopenharmony_ci   * @since 12
60161847f8eSopenharmony_ci   */
60261847f8eSopenharmony_ci  targetOffset: number;
60361847f8eSopenharmony_ci
60461847f8eSopenharmony_ci  /**
60561847f8eSopenharmony_ci   * Start speed of the page-turning animation. The unit is vp/s.
60661847f8eSopenharmony_ci   *
60761847f8eSopenharmony_ci   * @type { number }
60861847f8eSopenharmony_ci   * @default 0.0 vp/s
60961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
61061847f8eSopenharmony_ci   * @crossplatform
61161847f8eSopenharmony_ci   * @since 11
61261847f8eSopenharmony_ci   */
61361847f8eSopenharmony_ci  /**
61461847f8eSopenharmony_ci   * Start speed of the page-turning animation. The unit is vp/s.
61561847f8eSopenharmony_ci   *
61661847f8eSopenharmony_ci   * @type { number }
61761847f8eSopenharmony_ci   * @default 0.0 vp/s
61861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
61961847f8eSopenharmony_ci   * @crossplatform
62061847f8eSopenharmony_ci   * @atomicservice
62161847f8eSopenharmony_ci   * @since 12
62261847f8eSopenharmony_ci   */
62361847f8eSopenharmony_ci  velocity: number;
62461847f8eSopenharmony_ci}
62561847f8eSopenharmony_ci
62661847f8eSopenharmony_ci/**
62761847f8eSopenharmony_ci * Provides an interface for the grid column options of an tab bar including sm, md, lg, margin and gutter.
62861847f8eSopenharmony_ci *
62961847f8eSopenharmony_ci * @interface BarGridColumnOptions
63061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
63161847f8eSopenharmony_ci * @crossplatform
63261847f8eSopenharmony_ci * @since 10
63361847f8eSopenharmony_ci */
63461847f8eSopenharmony_ci/**
63561847f8eSopenharmony_ci * Provides an interface for the grid column options of an tab bar including sm, md, lg, margin and gutter.
63661847f8eSopenharmony_ci *
63761847f8eSopenharmony_ci * @interface BarGridColumnOptions
63861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
63961847f8eSopenharmony_ci * @crossplatform
64061847f8eSopenharmony_ci * @atomicservice
64161847f8eSopenharmony_ci * @since 11
64261847f8eSopenharmony_ci */
64361847f8eSopenharmony_ciinterface BarGridColumnOptions {
64461847f8eSopenharmony_ci  /**
64561847f8eSopenharmony_ci   * Define the occupied column number when the screen is of small size
64661847f8eSopenharmony_ci   *
64761847f8eSopenharmony_ci   * @type { ?number }
64861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
64961847f8eSopenharmony_ci   * @crossplatform
65061847f8eSopenharmony_ci   * @since 10
65161847f8eSopenharmony_ci   */
65261847f8eSopenharmony_ci  /**
65361847f8eSopenharmony_ci   * Define the occupied column number when the screen is of small size
65461847f8eSopenharmony_ci   *
65561847f8eSopenharmony_ci   * @type { ?number }
65661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
65761847f8eSopenharmony_ci   * @crossplatform
65861847f8eSopenharmony_ci   * @atomicservice
65961847f8eSopenharmony_ci   * @since 11
66061847f8eSopenharmony_ci   */
66161847f8eSopenharmony_ci  sm?: number;
66261847f8eSopenharmony_ci
66361847f8eSopenharmony_ci  /**
66461847f8eSopenharmony_ci   * Define the occupied column number when the screen is of middle size
66561847f8eSopenharmony_ci   *
66661847f8eSopenharmony_ci   * @type { ?number }
66761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
66861847f8eSopenharmony_ci   * @crossplatform
66961847f8eSopenharmony_ci   * @since 10
67061847f8eSopenharmony_ci   */
67161847f8eSopenharmony_ci  /**
67261847f8eSopenharmony_ci   * Define the occupied column number when the screen is of middle size
67361847f8eSopenharmony_ci   *
67461847f8eSopenharmony_ci   * @type { ?number }
67561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
67661847f8eSopenharmony_ci   * @crossplatform
67761847f8eSopenharmony_ci   * @atomicservice
67861847f8eSopenharmony_ci   * @since 11
67961847f8eSopenharmony_ci   */
68061847f8eSopenharmony_ci  md?: number;
68161847f8eSopenharmony_ci
68261847f8eSopenharmony_ci  /**
68361847f8eSopenharmony_ci   * Define the occupied column number when the screen is of large size
68461847f8eSopenharmony_ci   *
68561847f8eSopenharmony_ci   * @type { ?number }
68661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
68761847f8eSopenharmony_ci   * @crossplatform
68861847f8eSopenharmony_ci   * @since 10
68961847f8eSopenharmony_ci   */
69061847f8eSopenharmony_ci  /**
69161847f8eSopenharmony_ci   * Define the occupied column number when the screen is of large size
69261847f8eSopenharmony_ci   *
69361847f8eSopenharmony_ci   * @type { ?number }
69461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
69561847f8eSopenharmony_ci   * @crossplatform
69661847f8eSopenharmony_ci   * @atomicservice
69761847f8eSopenharmony_ci   * @since 11
69861847f8eSopenharmony_ci   */
69961847f8eSopenharmony_ci  lg?: number;
70061847f8eSopenharmony_ci
70161847f8eSopenharmony_ci  /**
70261847f8eSopenharmony_ci   * Define the margin size of the columns
70361847f8eSopenharmony_ci   *
70461847f8eSopenharmony_ci   * @type { ?Dimension }
70561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
70661847f8eSopenharmony_ci   * @crossplatform
70761847f8eSopenharmony_ci   * @since 10
70861847f8eSopenharmony_ci   */
70961847f8eSopenharmony_ci  /**
71061847f8eSopenharmony_ci   * Define the margin size of the columns
71161847f8eSopenharmony_ci   *
71261847f8eSopenharmony_ci   * @type { ?Dimension }
71361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
71461847f8eSopenharmony_ci   * @crossplatform
71561847f8eSopenharmony_ci   * @atomicservice
71661847f8eSopenharmony_ci   * @since 11
71761847f8eSopenharmony_ci   */
71861847f8eSopenharmony_ci  margin?: Dimension;
71961847f8eSopenharmony_ci
72061847f8eSopenharmony_ci  /**
72161847f8eSopenharmony_ci   * Define the gutter size of the columns
72261847f8eSopenharmony_ci   *
72361847f8eSopenharmony_ci   * @type { ?Dimension }
72461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
72561847f8eSopenharmony_ci   * @crossplatform
72661847f8eSopenharmony_ci   * @since 10
72761847f8eSopenharmony_ci   */
72861847f8eSopenharmony_ci  /**
72961847f8eSopenharmony_ci   * Define the gutter size of the columns
73061847f8eSopenharmony_ci   *
73161847f8eSopenharmony_ci   * @type { ?Dimension }
73261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
73361847f8eSopenharmony_ci   * @crossplatform
73461847f8eSopenharmony_ci   * @atomicservice
73561847f8eSopenharmony_ci   * @since 11
73661847f8eSopenharmony_ci   */
73761847f8eSopenharmony_ci  gutter?: Dimension;
73861847f8eSopenharmony_ci}
73961847f8eSopenharmony_ci
74061847f8eSopenharmony_ci/**
74161847f8eSopenharmony_ci * Provides an interface for the options for the scrollable bar mode including margin and nonScrollableLayoutStyle.
74261847f8eSopenharmony_ci *
74361847f8eSopenharmony_ci * @interface ScrollableBarModeOptions
74461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
74561847f8eSopenharmony_ci * @crossplatform
74661847f8eSopenharmony_ci * @since 10
74761847f8eSopenharmony_ci */
74861847f8eSopenharmony_ci/**
74961847f8eSopenharmony_ci * Provides an interface for the options for the scrollable bar mode including margin and nonScrollableLayoutStyle.
75061847f8eSopenharmony_ci *
75161847f8eSopenharmony_ci * @interface ScrollableBarModeOptions
75261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
75361847f8eSopenharmony_ci * @crossplatform
75461847f8eSopenharmony_ci * @atomicservice
75561847f8eSopenharmony_ci * @since 11
75661847f8eSopenharmony_ci */
75761847f8eSopenharmony_ciinterface ScrollableBarModeOptions {
75861847f8eSopenharmony_ci  /**
75961847f8eSopenharmony_ci   * Define the margin size of the bar items when the tab bar is scrollable.
76061847f8eSopenharmony_ci   *
76161847f8eSopenharmony_ci   * @type { ?Dimension }
76261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
76361847f8eSopenharmony_ci   * @crossplatform
76461847f8eSopenharmony_ci   * @since 10
76561847f8eSopenharmony_ci   */
76661847f8eSopenharmony_ci  /**
76761847f8eSopenharmony_ci   * Define the margin size of the bar items when the tab bar is scrollable.
76861847f8eSopenharmony_ci   *
76961847f8eSopenharmony_ci   * @type { ?Dimension }
77061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
77161847f8eSopenharmony_ci   * @crossplatform
77261847f8eSopenharmony_ci   * @atomicservice
77361847f8eSopenharmony_ci   * @since 11
77461847f8eSopenharmony_ci   */
77561847f8eSopenharmony_ci  margin?: Dimension;
77661847f8eSopenharmony_ci
77761847f8eSopenharmony_ci  /**
77861847f8eSopenharmony_ci   * Define the layout style of the bar items when the tab bar is not scrollable.
77961847f8eSopenharmony_ci   *
78061847f8eSopenharmony_ci   * @type { ?LayoutStyle }
78161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
78261847f8eSopenharmony_ci   * @crossplatform
78361847f8eSopenharmony_ci   * @since 10
78461847f8eSopenharmony_ci   */
78561847f8eSopenharmony_ci  /**
78661847f8eSopenharmony_ci   * Define the layout style of the bar items when the tab bar is not scrollable.
78761847f8eSopenharmony_ci   *
78861847f8eSopenharmony_ci   * @type { ?LayoutStyle }
78961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
79061847f8eSopenharmony_ci   * @crossplatform
79161847f8eSopenharmony_ci   * @atomicservice
79261847f8eSopenharmony_ci   * @since 11
79361847f8eSopenharmony_ci   */
79461847f8eSopenharmony_ci  nonScrollableLayoutStyle?: LayoutStyle;
79561847f8eSopenharmony_ci}
79661847f8eSopenharmony_ci
79761847f8eSopenharmony_ci/**
79861847f8eSopenharmony_ci * Defines the tabs attribute functions.
79961847f8eSopenharmony_ci *
80061847f8eSopenharmony_ci * @extends CommonMethod<TabsAttribute>
80161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
80261847f8eSopenharmony_ci * @since 7
80361847f8eSopenharmony_ci */
80461847f8eSopenharmony_ci/**
80561847f8eSopenharmony_ci * Defines the tabs attribute functions.
80661847f8eSopenharmony_ci *
80761847f8eSopenharmony_ci * @extends CommonMethod<TabsAttribute>
80861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
80961847f8eSopenharmony_ci * @crossplatform
81061847f8eSopenharmony_ci * @since 10
81161847f8eSopenharmony_ci */
81261847f8eSopenharmony_ci/**
81361847f8eSopenharmony_ci * Defines the tabs attribute functions.
81461847f8eSopenharmony_ci *
81561847f8eSopenharmony_ci * @extends CommonMethod<TabsAttribute>
81661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
81761847f8eSopenharmony_ci * @crossplatform
81861847f8eSopenharmony_ci * @atomicservice
81961847f8eSopenharmony_ci * @since 11
82061847f8eSopenharmony_ci */
82161847f8eSopenharmony_cideclare class TabsAttribute extends CommonMethod<TabsAttribute> {
82261847f8eSopenharmony_ci  /**
82361847f8eSopenharmony_ci   * Called when determining whether the tab is vertical.
82461847f8eSopenharmony_ci   *
82561847f8eSopenharmony_ci   * @param { boolean } value
82661847f8eSopenharmony_ci   * @returns { TabsAttribute }
82761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
82861847f8eSopenharmony_ci   * @since 7
82961847f8eSopenharmony_ci   */
83061847f8eSopenharmony_ci  /**
83161847f8eSopenharmony_ci   * Called when determining whether the tab is vertical.
83261847f8eSopenharmony_ci   *
83361847f8eSopenharmony_ci   * @param { boolean } value
83461847f8eSopenharmony_ci   * @returns { TabsAttribute }
83561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
83661847f8eSopenharmony_ci   * @crossplatform
83761847f8eSopenharmony_ci   * @since 10
83861847f8eSopenharmony_ci   */
83961847f8eSopenharmony_ci  /**
84061847f8eSopenharmony_ci   * Called when determining whether the tab is vertical.
84161847f8eSopenharmony_ci   *
84261847f8eSopenharmony_ci   * @param { boolean } value
84361847f8eSopenharmony_ci   * @returns { TabsAttribute }
84461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
84561847f8eSopenharmony_ci   * @crossplatform
84661847f8eSopenharmony_ci   * @atomicservice
84761847f8eSopenharmony_ci   * @since 11
84861847f8eSopenharmony_ci   */
84961847f8eSopenharmony_ci  vertical(value: boolean): TabsAttribute;
85061847f8eSopenharmony_ci
85161847f8eSopenharmony_ci  /**
85261847f8eSopenharmony_ci   * Called when determining the location of the bar chart.
85361847f8eSopenharmony_ci   *
85461847f8eSopenharmony_ci   * @param { BarPosition } value
85561847f8eSopenharmony_ci   * @returns { TabsAttribute }
85661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
85761847f8eSopenharmony_ci   * @since 9
85861847f8eSopenharmony_ci   */
85961847f8eSopenharmony_ci  /**
86061847f8eSopenharmony_ci   * Called when determining the location of the bar chart.
86161847f8eSopenharmony_ci   *
86261847f8eSopenharmony_ci   * @param { BarPosition } value
86361847f8eSopenharmony_ci   * @returns { TabsAttribute }
86461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
86561847f8eSopenharmony_ci   * @crossplatform
86661847f8eSopenharmony_ci   * @since 10
86761847f8eSopenharmony_ci   */
86861847f8eSopenharmony_ci  /**
86961847f8eSopenharmony_ci   * Called when determining the location of the bar chart.
87061847f8eSopenharmony_ci   *
87161847f8eSopenharmony_ci   * @param { BarPosition } value
87261847f8eSopenharmony_ci   * @returns { TabsAttribute }
87361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
87461847f8eSopenharmony_ci   * @crossplatform
87561847f8eSopenharmony_ci   * @atomicservice
87661847f8eSopenharmony_ci   * @since 11
87761847f8eSopenharmony_ci   */
87861847f8eSopenharmony_ci  barPosition(value: BarPosition): TabsAttribute;
87961847f8eSopenharmony_ci
88061847f8eSopenharmony_ci  /**
88161847f8eSopenharmony_ci   * Called when judging whether page switching can be performed by sliding left and right.
88261847f8eSopenharmony_ci   *
88361847f8eSopenharmony_ci   * @param { boolean } value
88461847f8eSopenharmony_ci   * @returns { TabsAttribute }
88561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
88661847f8eSopenharmony_ci   * @since 7
88761847f8eSopenharmony_ci   */
88861847f8eSopenharmony_ci  /**
88961847f8eSopenharmony_ci   * Called when judging whether page switching can be performed by sliding left and right.
89061847f8eSopenharmony_ci   *
89161847f8eSopenharmony_ci   * @param { boolean } value
89261847f8eSopenharmony_ci   * @returns { TabsAttribute }
89361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
89461847f8eSopenharmony_ci   * @crossplatform
89561847f8eSopenharmony_ci   * @since 10
89661847f8eSopenharmony_ci   */
89761847f8eSopenharmony_ci  /**
89861847f8eSopenharmony_ci   * Called when judging whether page switching can be performed by sliding left and right.
89961847f8eSopenharmony_ci   *
90061847f8eSopenharmony_ci   * @param { boolean } value
90161847f8eSopenharmony_ci   * @returns { TabsAttribute }
90261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
90361847f8eSopenharmony_ci   * @crossplatform
90461847f8eSopenharmony_ci   * @atomicservice
90561847f8eSopenharmony_ci   * @since 11
90661847f8eSopenharmony_ci   */
90761847f8eSopenharmony_ci  scrollable(value: boolean): TabsAttribute;
90861847f8eSopenharmony_ci
90961847f8eSopenharmony_ci  /**
91061847f8eSopenharmony_ci   * Called when the graphic format of the bar chart is selected as fixed mode.
91161847f8eSopenharmony_ci   *
91261847f8eSopenharmony_ci   * @param { BarMode.Fixed } value
91361847f8eSopenharmony_ci   * @returns { TabsAttribute }
91461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
91561847f8eSopenharmony_ci   * @crossplatform
91661847f8eSopenharmony_ci   * @since 10
91761847f8eSopenharmony_ci   */
91861847f8eSopenharmony_ci  /**
91961847f8eSopenharmony_ci   * Called when the graphic format of the bar chart is selected as fixed mode.
92061847f8eSopenharmony_ci   *
92161847f8eSopenharmony_ci   * @param { BarMode.Fixed } value
92261847f8eSopenharmony_ci   * @returns { TabsAttribute }
92361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
92461847f8eSopenharmony_ci   * @crossplatform
92561847f8eSopenharmony_ci   * @atomicservice
92661847f8eSopenharmony_ci   * @since 11
92761847f8eSopenharmony_ci   */
92861847f8eSopenharmony_ci  barMode(value: BarMode.Fixed): TabsAttribute;
92961847f8eSopenharmony_ci
93061847f8eSopenharmony_ci  /**
93161847f8eSopenharmony_ci   * Called when the graphic format of the bar chart is selected as scrollable mode.
93261847f8eSopenharmony_ci   *
93361847f8eSopenharmony_ci   * @param { BarMode.Scrollable } value
93461847f8eSopenharmony_ci   * @param { ScrollableBarModeOptions } [options] - options indicate the options for the scrollable bar mode
93561847f8eSopenharmony_ci   * @returns { TabsAttribute }
93661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
93761847f8eSopenharmony_ci   * @crossplatform
93861847f8eSopenharmony_ci   * @since 10
93961847f8eSopenharmony_ci   */
94061847f8eSopenharmony_ci  /**
94161847f8eSopenharmony_ci   * Called when the graphic format of the bar chart is selected as scrollable mode.
94261847f8eSopenharmony_ci   *
94361847f8eSopenharmony_ci   * @param { BarMode.Scrollable } value
94461847f8eSopenharmony_ci   * @param { ScrollableBarModeOptions } [options] - options indicate the options for the scrollable bar mode
94561847f8eSopenharmony_ci   * @returns { TabsAttribute }
94661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
94761847f8eSopenharmony_ci   * @crossplatform
94861847f8eSopenharmony_ci   * @atomicservice
94961847f8eSopenharmony_ci   * @since 11
95061847f8eSopenharmony_ci   */
95161847f8eSopenharmony_ci  barMode(value: BarMode.Scrollable, options: ScrollableBarModeOptions): TabsAttribute;
95261847f8eSopenharmony_ci
95361847f8eSopenharmony_ci  /**
95461847f8eSopenharmony_ci   * Called when the graphic format of the bar chart is selected.
95561847f8eSopenharmony_ci   *
95661847f8eSopenharmony_ci   * @param { BarMode } value
95761847f8eSopenharmony_ci   * @returns { TabsAttribute }
95861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
95961847f8eSopenharmony_ci   * @since 7
96061847f8eSopenharmony_ci   */
96161847f8eSopenharmony_ci  /**
96261847f8eSopenharmony_ci   * Called when the graphic format of the bar chart is selected.
96361847f8eSopenharmony_ci   *
96461847f8eSopenharmony_ci   * @param { BarMode } value
96561847f8eSopenharmony_ci   * @param { ScrollableBarModeOptions } [options] - options indicate the options for the scrollable bar mode
96661847f8eSopenharmony_ci   * @returns { TabsAttribute }
96761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
96861847f8eSopenharmony_ci   * @crossplatform
96961847f8eSopenharmony_ci   * @since 10
97061847f8eSopenharmony_ci   */
97161847f8eSopenharmony_ci  /**
97261847f8eSopenharmony_ci   * Called when the graphic format of the bar chart is selected.
97361847f8eSopenharmony_ci   *
97461847f8eSopenharmony_ci   * @param { BarMode } value
97561847f8eSopenharmony_ci   * @param { ScrollableBarModeOptions } [options] - options indicate the options for the scrollable bar mode
97661847f8eSopenharmony_ci   * @returns { TabsAttribute }
97761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
97861847f8eSopenharmony_ci   * @crossplatform
97961847f8eSopenharmony_ci   * @atomicservice
98061847f8eSopenharmony_ci   * @since 11
98161847f8eSopenharmony_ci   */
98261847f8eSopenharmony_ci  barMode(value: BarMode, options?: ScrollableBarModeOptions): TabsAttribute;
98361847f8eSopenharmony_ci
98461847f8eSopenharmony_ci  /**
98561847f8eSopenharmony_ci   * Called when the width of the bar graph is set.
98661847f8eSopenharmony_ci   * Notice: barWidth only supports Number type.
98761847f8eSopenharmony_ci   *
98861847f8eSopenharmony_ci   * @param { number } value
98961847f8eSopenharmony_ci   * @returns { TabsAttribute }
99061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
99161847f8eSopenharmony_ci   * @since 7
99261847f8eSopenharmony_ci   */
99361847f8eSopenharmony_ci  /**
99461847f8eSopenharmony_ci   * Called when the width of the bar graph is set.
99561847f8eSopenharmony_ci   * Notice: barWidth only supports Number type on 7, supports Length type since 8.
99661847f8eSopenharmony_ci   *
99761847f8eSopenharmony_ci   * @param { Length } value
99861847f8eSopenharmony_ci   * @returns { TabsAttribute }
99961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
100061847f8eSopenharmony_ci   * @since 8
100161847f8eSopenharmony_ci   */
100261847f8eSopenharmony_ci  /**
100361847f8eSopenharmony_ci   * Called when the width of the bar graph is set.
100461847f8eSopenharmony_ci   * Notice: barWidth only supports Number type on 7, supports Length type since 8.
100561847f8eSopenharmony_ci   *
100661847f8eSopenharmony_ci   * @param { Length } value
100761847f8eSopenharmony_ci   * @returns { TabsAttribute }
100861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
100961847f8eSopenharmony_ci   * @crossplatform
101061847f8eSopenharmony_ci   * @since 10
101161847f8eSopenharmony_ci   */
101261847f8eSopenharmony_ci  /**
101361847f8eSopenharmony_ci   * Called when the width of the bar graph is set.
101461847f8eSopenharmony_ci   * Notice: barWidth only supports Number type on 7, supports Length type since 8.
101561847f8eSopenharmony_ci   *
101661847f8eSopenharmony_ci   * @param { Length } value
101761847f8eSopenharmony_ci   * @returns { TabsAttribute }
101861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
101961847f8eSopenharmony_ci   * @crossplatform
102061847f8eSopenharmony_ci   * @atomicservice
102161847f8eSopenharmony_ci   * @since 11
102261847f8eSopenharmony_ci   */
102361847f8eSopenharmony_ci  barWidth(value: Length): TabsAttribute;
102461847f8eSopenharmony_ci
102561847f8eSopenharmony_ci  /**
102661847f8eSopenharmony_ci   * Called when the height of the bar graph is set.
102761847f8eSopenharmony_ci   * Notice: barHeight only supports Number type.
102861847f8eSopenharmony_ci   *
102961847f8eSopenharmony_ci   * @param { number } value
103061847f8eSopenharmony_ci   * @returns { TabsAttribute }
103161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
103261847f8eSopenharmony_ci   * @since 7
103361847f8eSopenharmony_ci   */
103461847f8eSopenharmony_ci  /**
103561847f8eSopenharmony_ci   * Called when the height of the bar graph is set.
103661847f8eSopenharmony_ci   * Notice: barHeight only supports Number type on 7, supports Length type since 8.
103761847f8eSopenharmony_ci   *
103861847f8eSopenharmony_ci   * @param { Length } value
103961847f8eSopenharmony_ci   * @returns { TabsAttribute }
104061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
104161847f8eSopenharmony_ci   * @since 8
104261847f8eSopenharmony_ci   */
104361847f8eSopenharmony_ci  /**
104461847f8eSopenharmony_ci   * Called when the height of the bar graph is set.
104561847f8eSopenharmony_ci   * Notice: barHeight only supports Number type on 7, supports Length type since 8.
104661847f8eSopenharmony_ci   *
104761847f8eSopenharmony_ci   * @param { Length } value
104861847f8eSopenharmony_ci   * @returns { TabsAttribute }
104961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
105061847f8eSopenharmony_ci   * @crossplatform
105161847f8eSopenharmony_ci   * @since 10
105261847f8eSopenharmony_ci   */
105361847f8eSopenharmony_ci  /**
105461847f8eSopenharmony_ci   * Called when the height of the bar graph is set.
105561847f8eSopenharmony_ci   * Notice: barHeight only supports Number type on 7, supports Length type since 8.
105661847f8eSopenharmony_ci   *
105761847f8eSopenharmony_ci   * @param { Length } value
105861847f8eSopenharmony_ci   * @returns { TabsAttribute }
105961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
106061847f8eSopenharmony_ci   * @crossplatform
106161847f8eSopenharmony_ci   * @atomicservice
106261847f8eSopenharmony_ci   * @since 11
106361847f8eSopenharmony_ci   */
106461847f8eSopenharmony_ci  barHeight(value: Length): TabsAttribute;
106561847f8eSopenharmony_ci
106661847f8eSopenharmony_ci  /**
106761847f8eSopenharmony_ci   * Called when the animation duration of the bar graph is set.
106861847f8eSopenharmony_ci   *
106961847f8eSopenharmony_ci   * @param { number } value
107061847f8eSopenharmony_ci   * @returns { TabsAttribute }
107161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
107261847f8eSopenharmony_ci   * @since 7
107361847f8eSopenharmony_ci   */
107461847f8eSopenharmony_ci  /**
107561847f8eSopenharmony_ci   * Called when the animation duration of the bar graph is set.
107661847f8eSopenharmony_ci   *
107761847f8eSopenharmony_ci   * @param { number } value
107861847f8eSopenharmony_ci   * @returns { TabsAttribute }
107961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
108061847f8eSopenharmony_ci   * @crossplatform
108161847f8eSopenharmony_ci   * @since 10
108261847f8eSopenharmony_ci   */
108361847f8eSopenharmony_ci  /**
108461847f8eSopenharmony_ci   * Called when the animation duration of the bar graph is set.
108561847f8eSopenharmony_ci   *
108661847f8eSopenharmony_ci   * @param { number } value
108761847f8eSopenharmony_ci   * @returns { TabsAttribute }
108861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
108961847f8eSopenharmony_ci   * @crossplatform
109061847f8eSopenharmony_ci   * @atomicservice
109161847f8eSopenharmony_ci   * @since 11
109261847f8eSopenharmony_ci   */
109361847f8eSopenharmony_ci  animationDuration(value: number): TabsAttribute;
109461847f8eSopenharmony_ci
109561847f8eSopenharmony_ci  /**
109661847f8eSopenharmony_ci   * Set animation mode.
109761847f8eSopenharmony_ci   *
109861847f8eSopenharmony_ci   * @param { Optional<AnimationMode> } mode - animation mode for tabs switch animation
109961847f8eSopenharmony_ci   * @returns { TabsAttribute }
110061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
110161847f8eSopenharmony_ci   * @crossplatform
110261847f8eSopenharmony_ci   * @atomicservice
110361847f8eSopenharmony_ci   * @since 12
110461847f8eSopenharmony_ci   */
110561847f8eSopenharmony_ci  animationMode(mode: Optional<AnimationMode>): TabsAttribute;
110661847f8eSopenharmony_ci
110761847f8eSopenharmony_ci  /**
110861847f8eSopenharmony_ci   * Set the effect used when the component is at one of the edges.
110961847f8eSopenharmony_ci   *
111061847f8eSopenharmony_ci   * @param { Optional<EdgeEffect> } edgeEffect - the effect used when the component is at one of the edges
111161847f8eSopenharmony_ci   * @returns { TabsAttribute }
111261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
111361847f8eSopenharmony_ci   * @crossplatform
111461847f8eSopenharmony_ci   * @atomicservice
111561847f8eSopenharmony_ci   * @since 12
111661847f8eSopenharmony_ci   */
111761847f8eSopenharmony_ci  edgeEffect(edgeEffect: Optional<EdgeEffect>): TabsAttribute;
111861847f8eSopenharmony_ci
111961847f8eSopenharmony_ci  /**
112061847f8eSopenharmony_ci   * Called when the tab is switched.
112161847f8eSopenharmony_ci   *
112261847f8eSopenharmony_ci   * @param { function } event
112361847f8eSopenharmony_ci   * @returns { TabsAttribute }
112461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
112561847f8eSopenharmony_ci   * @since 7
112661847f8eSopenharmony_ci   */
112761847f8eSopenharmony_ci  /**
112861847f8eSopenharmony_ci   * Called when the tab is switched.
112961847f8eSopenharmony_ci   *
113061847f8eSopenharmony_ci   * @param { function } event
113161847f8eSopenharmony_ci   * @returns { TabsAttribute }
113261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
113361847f8eSopenharmony_ci   * @crossplatform
113461847f8eSopenharmony_ci   * @since 10
113561847f8eSopenharmony_ci   */
113661847f8eSopenharmony_ci  /**
113761847f8eSopenharmony_ci   * Called when the tab is switched.
113861847f8eSopenharmony_ci   *
113961847f8eSopenharmony_ci   * @param { function } event
114061847f8eSopenharmony_ci   * @returns { TabsAttribute }
114161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
114261847f8eSopenharmony_ci   * @crossplatform
114361847f8eSopenharmony_ci   * @atomicservice
114461847f8eSopenharmony_ci   * @since 11
114561847f8eSopenharmony_ci   */
114661847f8eSopenharmony_ci  onChange(event: (index: number) => void): TabsAttribute;
114761847f8eSopenharmony_ci
114861847f8eSopenharmony_ci  /**
114961847f8eSopenharmony_ci   * Called when the tab is clicked.
115061847f8eSopenharmony_ci   *
115161847f8eSopenharmony_ci   * @param { function } event
115261847f8eSopenharmony_ci   * @returns { TabsAttribute }
115361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
115461847f8eSopenharmony_ci   * @crossplatform
115561847f8eSopenharmony_ci   * @since 10
115661847f8eSopenharmony_ci   */
115761847f8eSopenharmony_ci  /**
115861847f8eSopenharmony_ci   * Called when the tab is clicked.
115961847f8eSopenharmony_ci   *
116061847f8eSopenharmony_ci   * @param { function } event
116161847f8eSopenharmony_ci   * @returns { TabsAttribute }
116261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
116361847f8eSopenharmony_ci   * @crossplatform
116461847f8eSopenharmony_ci   * @atomicservice
116561847f8eSopenharmony_ci   * @since 11
116661847f8eSopenharmony_ci   */
116761847f8eSopenharmony_ci  onTabBarClick(event: (index: number) => void): TabsAttribute;
116861847f8eSopenharmony_ci
116961847f8eSopenharmony_ci  /**
117061847f8eSopenharmony_ci   * Called when the tab content flip animation start.
117161847f8eSopenharmony_ci   *
117261847f8eSopenharmony_ci   * @param { function } handler -
117361847f8eSopenharmony_ci   * "index": the index value of the tab that when animation start.
117461847f8eSopenharmony_ci   * "targetIndex": the target index value of the tab that when animation start.
117561847f8eSopenharmony_ci   * "event": the animation event callback info.
117661847f8eSopenharmony_ci   * @returns { TabsAttribute }
117761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
117861847f8eSopenharmony_ci   * @crossplatform
117961847f8eSopenharmony_ci   * @since 11
118061847f8eSopenharmony_ci   */
118161847f8eSopenharmony_ci  /**
118261847f8eSopenharmony_ci   * Called when the tab content flip animation start.
118361847f8eSopenharmony_ci   *
118461847f8eSopenharmony_ci   * @param { function } handler -
118561847f8eSopenharmony_ci   * "index": the index value of the tab that when animation start.
118661847f8eSopenharmony_ci   * "targetIndex": the target index value of the tab that when animation start.
118761847f8eSopenharmony_ci   * "event": the animation event callback info.
118861847f8eSopenharmony_ci   * @returns { TabsAttribute }
118961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
119061847f8eSopenharmony_ci   * @crossplatform
119161847f8eSopenharmony_ci   * @atomicservice
119261847f8eSopenharmony_ci   * @since 12
119361847f8eSopenharmony_ci   */
119461847f8eSopenharmony_ci  onAnimationStart(handler: (index: number, targetIndex: number, event: TabsAnimationEvent) => void): TabsAttribute;
119561847f8eSopenharmony_ci
119661847f8eSopenharmony_ci  /**
119761847f8eSopenharmony_ci   * Called when the tab content flip animation end.
119861847f8eSopenharmony_ci   *
119961847f8eSopenharmony_ci   * @param { function } handler -
120061847f8eSopenharmony_ci   * "index": the index value of the tab that when animation start.
120161847f8eSopenharmony_ci   * "event": the animation event callback info.
120261847f8eSopenharmony_ci   * @returns { TabsAttribute }
120361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
120461847f8eSopenharmony_ci   * @crossplatform
120561847f8eSopenharmony_ci   * @since 11
120661847f8eSopenharmony_ci   */
120761847f8eSopenharmony_ci  /**
120861847f8eSopenharmony_ci   * Called when the tab content flip animation end.
120961847f8eSopenharmony_ci   *
121061847f8eSopenharmony_ci   * @param { function } handler -
121161847f8eSopenharmony_ci   * "index": the index value of the tab that when animation start.
121261847f8eSopenharmony_ci   * "event": the animation event callback info.
121361847f8eSopenharmony_ci   * @returns { TabsAttribute }
121461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
121561847f8eSopenharmony_ci   * @crossplatform
121661847f8eSopenharmony_ci   * @atomicservice
121761847f8eSopenharmony_ci   * @since 12
121861847f8eSopenharmony_ci   */
121961847f8eSopenharmony_ci  onAnimationEnd(handler: (index: number, event: TabsAnimationEvent) => void): TabsAttribute;
122061847f8eSopenharmony_ci
122161847f8eSopenharmony_ci  /**
122261847f8eSopenharmony_ci   * Called when swiping the tab content with the gesture.
122361847f8eSopenharmony_ci   *
122461847f8eSopenharmony_ci   * @param { function } handler -
122561847f8eSopenharmony_ci   * "index": the index value of the tab that when animation start.
122661847f8eSopenharmony_ci   * "event": the animation event callback info.
122761847f8eSopenharmony_ci   * @returns { TabsAttribute }
122861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
122961847f8eSopenharmony_ci   * @crossplatform
123061847f8eSopenharmony_ci   * @since 11
123161847f8eSopenharmony_ci   */
123261847f8eSopenharmony_ci  /**
123361847f8eSopenharmony_ci   * Called when swiping the tab content with the gesture.
123461847f8eSopenharmony_ci   *
123561847f8eSopenharmony_ci   * @param { function } handler -
123661847f8eSopenharmony_ci   * "index": the index value of the tab that when animation start.
123761847f8eSopenharmony_ci   * "event": the animation event callback info.
123861847f8eSopenharmony_ci   * @returns { TabsAttribute }
123961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
124061847f8eSopenharmony_ci   * @crossplatform
124161847f8eSopenharmony_ci   * @atomicservice
124261847f8eSopenharmony_ci   * @since 12
124361847f8eSopenharmony_ci   */
124461847f8eSopenharmony_ci  onGestureSwipe(handler: (index: number, event: TabsAnimationEvent) => void): TabsAttribute;
124561847f8eSopenharmony_ci
124661847f8eSopenharmony_ci  /**
124761847f8eSopenharmony_ci   * Set whether the edges of tab bar are fading.
124861847f8eSopenharmony_ci   *
124961847f8eSopenharmony_ci   * @param { boolean } value - indicates whether the edges of tab bar are fading.
125061847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
125161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
125261847f8eSopenharmony_ci   * @crossplatform
125361847f8eSopenharmony_ci   * @since 10
125461847f8eSopenharmony_ci   */
125561847f8eSopenharmony_ci  /**
125661847f8eSopenharmony_ci   * Set whether the edges of tab bar are fading.
125761847f8eSopenharmony_ci   *
125861847f8eSopenharmony_ci   * @param { boolean } value - indicates whether the edges of tab bar are fading.
125961847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
126061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
126161847f8eSopenharmony_ci   * @crossplatform
126261847f8eSopenharmony_ci   * @atomicservice
126361847f8eSopenharmony_ci   * @since 11
126461847f8eSopenharmony_ci   */
126561847f8eSopenharmony_ci  fadingEdge(value: boolean): TabsAttribute;
126661847f8eSopenharmony_ci
126761847f8eSopenharmony_ci  /**
126861847f8eSopenharmony_ci   * Set the divider between tab bar and tab content.
126961847f8eSopenharmony_ci   *
127061847f8eSopenharmony_ci   * @param { DividerStyle | null } value - indicates the style of the indicator.
127161847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
127261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
127361847f8eSopenharmony_ci   * @crossplatform
127461847f8eSopenharmony_ci   * @since 10
127561847f8eSopenharmony_ci   */
127661847f8eSopenharmony_ci  /**
127761847f8eSopenharmony_ci   * Set the divider between tab bar and tab content.
127861847f8eSopenharmony_ci   *
127961847f8eSopenharmony_ci   * @param { DividerStyle | null } value - indicates the style of the indicator.
128061847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
128161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
128261847f8eSopenharmony_ci   * @crossplatform
128361847f8eSopenharmony_ci   * @atomicservice
128461847f8eSopenharmony_ci   * @since 11
128561847f8eSopenharmony_ci   */
128661847f8eSopenharmony_ci  divider(value: DividerStyle | null): TabsAttribute;
128761847f8eSopenharmony_ci
128861847f8eSopenharmony_ci  /**
128961847f8eSopenharmony_ci   * Set whether the tab bar overlaps with the tab content.
129061847f8eSopenharmony_ci   *
129161847f8eSopenharmony_ci   * @param { boolean } value - indicates whether the tab bar overlaps with the tab content.
129261847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
129361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
129461847f8eSopenharmony_ci   * @since 10
129561847f8eSopenharmony_ci   */
129661847f8eSopenharmony_ci  /**
129761847f8eSopenharmony_ci   * Set whether the tab bar overlaps with the tab content.
129861847f8eSopenharmony_ci   *
129961847f8eSopenharmony_ci   * @param { boolean } value - indicates whether the tab bar overlaps with the tab content.
130061847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
130161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
130261847f8eSopenharmony_ci   * @crossplatform
130361847f8eSopenharmony_ci   * @atomicservice
130461847f8eSopenharmony_ci   * @since 11
130561847f8eSopenharmony_ci   */
130661847f8eSopenharmony_ci  barOverlap(value: boolean): TabsAttribute;
130761847f8eSopenharmony_ci
130861847f8eSopenharmony_ci  /**
130961847f8eSopenharmony_ci   * Set the background color of the tab bar.
131061847f8eSopenharmony_ci   *
131161847f8eSopenharmony_ci   * @param { ResourceColor } value - indicates the background color of the tab bar.
131261847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
131361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
131461847f8eSopenharmony_ci   * @since 10
131561847f8eSopenharmony_ci   */
131661847f8eSopenharmony_ci  /**
131761847f8eSopenharmony_ci   * Set the background color of the tab bar.
131861847f8eSopenharmony_ci   *
131961847f8eSopenharmony_ci   * @param { ResourceColor } value - indicates the background color of the tab bar.
132061847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
132161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
132261847f8eSopenharmony_ci   * @crossplatform
132361847f8eSopenharmony_ci   * @atomicservice
132461847f8eSopenharmony_ci   * @since 11
132561847f8eSopenharmony_ci   */
132661847f8eSopenharmony_ci  barBackgroundColor(value: ResourceColor): TabsAttribute;
132761847f8eSopenharmony_ci
132861847f8eSopenharmony_ci  /**
132961847f8eSopenharmony_ci   * Set the grid alignment options of the tab bar.
133061847f8eSopenharmony_ci   *
133161847f8eSopenharmony_ci   * @param { BarGridColumnOptions } value - indicates the bar grid alignment options.
133261847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
133361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
133461847f8eSopenharmony_ci   * @crossplatform
133561847f8eSopenharmony_ci   * @since 10
133661847f8eSopenharmony_ci   */
133761847f8eSopenharmony_ci  /**
133861847f8eSopenharmony_ci   * Set the grid alignment options of the tab bar.
133961847f8eSopenharmony_ci   *
134061847f8eSopenharmony_ci   * @param { BarGridColumnOptions } value - indicates the bar grid alignment options.
134161847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
134261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
134361847f8eSopenharmony_ci   * @crossplatform
134461847f8eSopenharmony_ci   * @atomicservice
134561847f8eSopenharmony_ci   * @since 11
134661847f8eSopenharmony_ci   */
134761847f8eSopenharmony_ci  barGridAlign(value: BarGridColumnOptions): TabsAttribute;
134861847f8eSopenharmony_ci
134961847f8eSopenharmony_ci  /**
135061847f8eSopenharmony_ci   * Custom tab content transition animation.
135161847f8eSopenharmony_ci   * When undefined is set, this interface does not take effect.
135261847f8eSopenharmony_ci   *
135361847f8eSopenharmony_ci   * @param { function } delegate - custom content transition animation.
135461847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
135561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
135661847f8eSopenharmony_ci   * @crossplatform
135761847f8eSopenharmony_ci   * @form
135861847f8eSopenharmony_ci   * @since 11
135961847f8eSopenharmony_ci   */
136061847f8eSopenharmony_ci  /**
136161847f8eSopenharmony_ci   * Custom tab content transition animation.
136261847f8eSopenharmony_ci   * When undefined is set, this interface does not take effect.
136361847f8eSopenharmony_ci   *
136461847f8eSopenharmony_ci   * @param { function } delegate - custom content transition animation.
136561847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
136661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
136761847f8eSopenharmony_ci   * @crossplatform
136861847f8eSopenharmony_ci   * @form
136961847f8eSopenharmony_ci   * @atomicservice
137061847f8eSopenharmony_ci   * @since 12
137161847f8eSopenharmony_ci   */
137261847f8eSopenharmony_ci  customContentTransition(delegate: (from: number, to: number) => TabContentAnimatedTransition | undefined): TabsAttribute;
137361847f8eSopenharmony_ci
137461847f8eSopenharmony_ci  /**
137561847f8eSopenharmony_ci   * Set the BlurStyle of the tab bar.
137661847f8eSopenharmony_ci   *
137761847f8eSopenharmony_ci   * @param { BlurStyle } value - indicates the  BlurStyle of the tab bar.
137861847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
137961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
138061847f8eSopenharmony_ci   * @crossplatform
138161847f8eSopenharmony_ci   * @atomicservice
138261847f8eSopenharmony_ci   * @since 11
138361847f8eSopenharmony_ci   */
138461847f8eSopenharmony_ci  barBackgroundBlurStyle(value: BlurStyle): TabsAttribute;
138561847f8eSopenharmony_ci
138661847f8eSopenharmony_ci  /**
138761847f8eSopenharmony_ci   * Set the BlurStyle of the tab bar.
138861847f8eSopenharmony_ci   *
138961847f8eSopenharmony_ci   * @param { BlurStyle } style - style indicate the blur style for the tab bar
139061847f8eSopenharmony_ci   * @param { BackgroundBlurStyleOptions } options - options indicate the options for the tab bar
139161847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
139261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
139361847f8eSopenharmony_ci   * @crossplatform
139461847f8eSopenharmony_ci   * @atomicservice
139561847f8eSopenharmony_ci   * @since 13
139661847f8eSopenharmony_ci   */
139761847f8eSopenharmony_ci  barBackgroundBlurStyle(style: BlurStyle, options: BackgroundBlurStyleOptions): TabsAttribute;
139861847f8eSopenharmony_ci
139961847f8eSopenharmony_ci  /**
140061847f8eSopenharmony_ci   * Set the BackgroundEffect of the tab bar.
140161847f8eSopenharmony_ci   *
140261847f8eSopenharmony_ci   * @param { BackgroundEffectOptions } options - options indicate the options for the tab bar
140361847f8eSopenharmony_ci   * @returns { TabsAttribute } the attribute of the tabs
140461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
140561847f8eSopenharmony_ci   * @crossplatform
140661847f8eSopenharmony_ci   * @atomicservice
140761847f8eSopenharmony_ci   * @since 13
140861847f8eSopenharmony_ci   */
140961847f8eSopenharmony_ci  barBackgroundEffect(options: BackgroundEffectOptions): TabsAttribute;
141061847f8eSopenharmony_ci
141161847f8eSopenharmony_ci  /**
141261847f8eSopenharmony_ci   * Called when content will change.
141361847f8eSopenharmony_ci   *
141461847f8eSopenharmony_ci   * @param { function } handler
141561847f8eSopenharmony_ci   * "currentIndex": the index value of the current tab.
141661847f8eSopenharmony_ci   * "comingIndex": the index value of the tab that will change.
141761847f8eSopenharmony_ci   * Tabs can change from currentIndex to comingIndex if function return true.
141861847f8eSopenharmony_ci   * Tabs can not change from currentIndex to comingIndex if function return false.
141961847f8eSopenharmony_ci   * @returns { TabsAttribute }
142061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
142161847f8eSopenharmony_ci   * @crossplatform
142261847f8eSopenharmony_ci   * @atomicservice
142361847f8eSopenharmony_ci   * @since 12
142461847f8eSopenharmony_ci   */
142561847f8eSopenharmony_ci  onContentWillChange(handler: (currentIndex: number, comingIndex: number) => boolean): TabsAttribute;
142661847f8eSopenharmony_ci}
142761847f8eSopenharmony_ci
142861847f8eSopenharmony_ci/**
142961847f8eSopenharmony_ci * Defines the Tab Content animated transition options.
143061847f8eSopenharmony_ci *
143161847f8eSopenharmony_ci * @interface TabContentAnimatedTransition
143261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
143361847f8eSopenharmony_ci * @crossplatform
143461847f8eSopenharmony_ci * @form
143561847f8eSopenharmony_ci * @since 11
143661847f8eSopenharmony_ci */
143761847f8eSopenharmony_ci/**
143861847f8eSopenharmony_ci * Defines the Tab Content animated transition options.
143961847f8eSopenharmony_ci *
144061847f8eSopenharmony_ci * @interface TabContentAnimatedTransition
144161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
144261847f8eSopenharmony_ci * @crossplatform
144361847f8eSopenharmony_ci * @form
144461847f8eSopenharmony_ci * @atomicservice
144561847f8eSopenharmony_ci * @since 12
144661847f8eSopenharmony_ci */
144761847f8eSopenharmony_cideclare interface TabContentAnimatedTransition {
144861847f8eSopenharmony_ci  /**
144961847f8eSopenharmony_ci   * Defines the timeout of custom content transition animation. The unit is ms.
145061847f8eSopenharmony_ci   * If TabContentTransitionProxy.finishTransition() is not invoked, use the timeout as animation end time.
145161847f8eSopenharmony_ci   *
145261847f8eSopenharmony_ci   * @type { ?number }
145361847f8eSopenharmony_ci   * @default 1000 ms
145461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
145561847f8eSopenharmony_ci   * @crossplatform
145661847f8eSopenharmony_ci   * @form
145761847f8eSopenharmony_ci   * @since 11
145861847f8eSopenharmony_ci   */
145961847f8eSopenharmony_ci  /**
146061847f8eSopenharmony_ci   * Defines the timeout of custom content transition animation. The unit is ms.
146161847f8eSopenharmony_ci   * If TabContentTransitionProxy.finishTransition() is not invoked, use the timeout as animation end time.
146261847f8eSopenharmony_ci   *
146361847f8eSopenharmony_ci   * @type { ?number }
146461847f8eSopenharmony_ci   * @default 1000 ms
146561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
146661847f8eSopenharmony_ci   * @crossplatform
146761847f8eSopenharmony_ci   * @form
146861847f8eSopenharmony_ci   * @atomicservice
146961847f8eSopenharmony_ci   * @since 12
147061847f8eSopenharmony_ci   */
147161847f8eSopenharmony_ci  timeout?: number;
147261847f8eSopenharmony_ci
147361847f8eSopenharmony_ci  /**
147461847f8eSopenharmony_ci   * Called when custom content transition animation start.
147561847f8eSopenharmony_ci   *
147661847f8eSopenharmony_ci   * @type { function }
147761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
147861847f8eSopenharmony_ci   * @crossplatform
147961847f8eSopenharmony_ci   * @form
148061847f8eSopenharmony_ci   * @since 11
148161847f8eSopenharmony_ci   */
148261847f8eSopenharmony_ci  /**
148361847f8eSopenharmony_ci   * Called when custom content transition animation start.
148461847f8eSopenharmony_ci   *
148561847f8eSopenharmony_ci   * @type { function }
148661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
148761847f8eSopenharmony_ci   * @crossplatform
148861847f8eSopenharmony_ci   * @form
148961847f8eSopenharmony_ci   * @atomicservice
149061847f8eSopenharmony_ci   * @since 12
149161847f8eSopenharmony_ci   */
149261847f8eSopenharmony_ci  transition: (proxy: TabContentTransitionProxy) => void;
149361847f8eSopenharmony_ci}
149461847f8eSopenharmony_ci
149561847f8eSopenharmony_ci/**
149661847f8eSopenharmony_ci *  The proxy of TabContentAnimatedTransition.
149761847f8eSopenharmony_ci *
149861847f8eSopenharmony_ci * @interface TabContentTransitionProxy
149961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
150061847f8eSopenharmony_ci * @crossplatform
150161847f8eSopenharmony_ci * @form
150261847f8eSopenharmony_ci * @since 11
150361847f8eSopenharmony_ci */
150461847f8eSopenharmony_ci/**
150561847f8eSopenharmony_ci *  The proxy of TabContentAnimatedTransition.
150661847f8eSopenharmony_ci *
150761847f8eSopenharmony_ci * @interface TabContentTransitionProxy
150861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
150961847f8eSopenharmony_ci * @crossplatform
151061847f8eSopenharmony_ci * @form
151161847f8eSopenharmony_ci * @atomicservice
151261847f8eSopenharmony_ci * @since 12
151361847f8eSopenharmony_ci */
151461847f8eSopenharmony_cideclare interface TabContentTransitionProxy {
151561847f8eSopenharmony_ci  /**
151661847f8eSopenharmony_ci   * The index of current tab content.
151761847f8eSopenharmony_ci   *
151861847f8eSopenharmony_ci   * @type { number }
151961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
152061847f8eSopenharmony_ci   * @crossplatform
152161847f8eSopenharmony_ci   * @form
152261847f8eSopenharmony_ci   * @since 11
152361847f8eSopenharmony_ci   */
152461847f8eSopenharmony_ci  /**
152561847f8eSopenharmony_ci   * The index of current tab content.
152661847f8eSopenharmony_ci   *
152761847f8eSopenharmony_ci   * @type { number }
152861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
152961847f8eSopenharmony_ci   * @crossplatform
153061847f8eSopenharmony_ci   * @form
153161847f8eSopenharmony_ci   * @atomicservice
153261847f8eSopenharmony_ci   * @since 12
153361847f8eSopenharmony_ci   */
153461847f8eSopenharmony_ci  from: number;
153561847f8eSopenharmony_ci
153661847f8eSopenharmony_ci  /**
153761847f8eSopenharmony_ci   * The index of target tab content.
153861847f8eSopenharmony_ci   *
153961847f8eSopenharmony_ci   * @type { number }
154061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
154161847f8eSopenharmony_ci   * @crossplatform
154261847f8eSopenharmony_ci   * @form
154361847f8eSopenharmony_ci   * @since 11
154461847f8eSopenharmony_ci   */
154561847f8eSopenharmony_ci  /**
154661847f8eSopenharmony_ci   * The index of target tab content.
154761847f8eSopenharmony_ci   *
154861847f8eSopenharmony_ci   * @type { number }
154961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
155061847f8eSopenharmony_ci   * @crossplatform
155161847f8eSopenharmony_ci   * @form
155261847f8eSopenharmony_ci   * @atomicservice
155361847f8eSopenharmony_ci   * @since 12
155461847f8eSopenharmony_ci   */
155561847f8eSopenharmony_ci  to: number;
155661847f8eSopenharmony_ci
155761847f8eSopenharmony_ci  /**
155861847f8eSopenharmony_ci   * Notifies Tabs component the custom content transition animation is complete.
155961847f8eSopenharmony_ci   *
156061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
156161847f8eSopenharmony_ci   * @crossplatform
156261847f8eSopenharmony_ci   * @form
156361847f8eSopenharmony_ci   * @since 11
156461847f8eSopenharmony_ci   */
156561847f8eSopenharmony_ci  /**
156661847f8eSopenharmony_ci   * Notifies Tabs component the custom content transition animation is complete.
156761847f8eSopenharmony_ci   *
156861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
156961847f8eSopenharmony_ci   * @crossplatform
157061847f8eSopenharmony_ci   * @form
157161847f8eSopenharmony_ci   * @atomicservice
157261847f8eSopenharmony_ci   * @since 12
157361847f8eSopenharmony_ci   */
157461847f8eSopenharmony_ci  finishTransition(): void;
157561847f8eSopenharmony_ci}
157661847f8eSopenharmony_ci
157761847f8eSopenharmony_ci/**
157861847f8eSopenharmony_ci * Defines Tabs Component.
157961847f8eSopenharmony_ci *
158061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
158161847f8eSopenharmony_ci * @since 7
158261847f8eSopenharmony_ci */
158361847f8eSopenharmony_ci/**
158461847f8eSopenharmony_ci * Defines Tabs Component.
158561847f8eSopenharmony_ci *
158661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
158761847f8eSopenharmony_ci * @crossplatform
158861847f8eSopenharmony_ci * @since 10
158961847f8eSopenharmony_ci */
159061847f8eSopenharmony_ci/**
159161847f8eSopenharmony_ci * Defines Tabs Component.
159261847f8eSopenharmony_ci *
159361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
159461847f8eSopenharmony_ci * @crossplatform
159561847f8eSopenharmony_ci * @atomicservice
159661847f8eSopenharmony_ci * @since 11
159761847f8eSopenharmony_ci */
159861847f8eSopenharmony_cideclare const Tabs: TabsInterface;
159961847f8eSopenharmony_ci
160061847f8eSopenharmony_ci/**
160161847f8eSopenharmony_ci * Defines Tabs Component instance.
160261847f8eSopenharmony_ci *
160361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
160461847f8eSopenharmony_ci * @since 7
160561847f8eSopenharmony_ci */
160661847f8eSopenharmony_ci/**
160761847f8eSopenharmony_ci * Defines Tabs Component instance.
160861847f8eSopenharmony_ci *
160961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
161061847f8eSopenharmony_ci * @crossplatform
161161847f8eSopenharmony_ci * @since 10
161261847f8eSopenharmony_ci */
161361847f8eSopenharmony_ci/**
161461847f8eSopenharmony_ci * Defines Tabs Component instance.
161561847f8eSopenharmony_ci *
161661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
161761847f8eSopenharmony_ci * @crossplatform
161861847f8eSopenharmony_ci * @atomicservice
161961847f8eSopenharmony_ci * @since 11
162061847f8eSopenharmony_ci */
162161847f8eSopenharmony_cideclare const TabsInstance: TabsAttribute;
1622