161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2021-2024 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 sliderstyle
2361847f8eSopenharmony_ci *
2461847f8eSopenharmony_ci * @enum { number }
2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
2661847f8eSopenharmony_ci * @since 7
2761847f8eSopenharmony_ci */
2861847f8eSopenharmony_ci/**
2961847f8eSopenharmony_ci * Declare sliderstyle
3061847f8eSopenharmony_ci *
3161847f8eSopenharmony_ci * @enum { number }
3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
3361847f8eSopenharmony_ci * @form
3461847f8eSopenharmony_ci * @since 9
3561847f8eSopenharmony_ci */
3661847f8eSopenharmony_ci/**
3761847f8eSopenharmony_ci * Declare sliderstyle
3861847f8eSopenharmony_ci *
3961847f8eSopenharmony_ci * @enum { number }
4061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
4161847f8eSopenharmony_ci * @crossplatform
4261847f8eSopenharmony_ci * @form
4361847f8eSopenharmony_ci * @since 10
4461847f8eSopenharmony_ci */
4561847f8eSopenharmony_ci/**
4661847f8eSopenharmony_ci * Declare sliderstyle
4761847f8eSopenharmony_ci *
4861847f8eSopenharmony_ci * @enum { number }
4961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
5061847f8eSopenharmony_ci * @crossplatform
5161847f8eSopenharmony_ci * @form
5261847f8eSopenharmony_ci * @atomicservice
5361847f8eSopenharmony_ci * @since 11
5461847f8eSopenharmony_ci */
5561847f8eSopenharmony_cideclare enum SliderStyle {
5661847f8eSopenharmony_ci  /**
5761847f8eSopenharmony_ci   * The slider is on the slide rail.
5861847f8eSopenharmony_ci   *
5961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6061847f8eSopenharmony_ci   * @since 7
6161847f8eSopenharmony_ci   */
6261847f8eSopenharmony_ci  /**
6361847f8eSopenharmony_ci   * The slider is on the slide rail.
6461847f8eSopenharmony_ci   *
6561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6661847f8eSopenharmony_ci   * @form
6761847f8eSopenharmony_ci   * @since 9
6861847f8eSopenharmony_ci   */
6961847f8eSopenharmony_ci  /**
7061847f8eSopenharmony_ci   * The slider is on the slide rail.
7161847f8eSopenharmony_ci   *
7261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
7361847f8eSopenharmony_ci   * @crossplatform
7461847f8eSopenharmony_ci   * @form
7561847f8eSopenharmony_ci   * @since 10
7661847f8eSopenharmony_ci   */
7761847f8eSopenharmony_ci  /**
7861847f8eSopenharmony_ci   * The slider is on the slide rail.
7961847f8eSopenharmony_ci   *
8061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
8161847f8eSopenharmony_ci   * @crossplatform
8261847f8eSopenharmony_ci   * @form
8361847f8eSopenharmony_ci   * @atomicservice
8461847f8eSopenharmony_ci   * @since 11
8561847f8eSopenharmony_ci   */
8661847f8eSopenharmony_ci  OutSet,
8761847f8eSopenharmony_ci
8861847f8eSopenharmony_ci  /**
8961847f8eSopenharmony_ci   * The slider is in the slide rail.
9061847f8eSopenharmony_ci   *
9161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
9261847f8eSopenharmony_ci   * @since 7
9361847f8eSopenharmony_ci   */
9461847f8eSopenharmony_ci  /**
9561847f8eSopenharmony_ci   * The slider is in the slide rail.
9661847f8eSopenharmony_ci   *
9761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
9861847f8eSopenharmony_ci   * @form
9961847f8eSopenharmony_ci   * @since 9
10061847f8eSopenharmony_ci   */
10161847f8eSopenharmony_ci  /**
10261847f8eSopenharmony_ci   * The slider is in the slide rail.
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   * The slider is in the slide rail.
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  InSet,
11961847f8eSopenharmony_ci  /**
12061847f8eSopenharmony_ci   * No slider.
12161847f8eSopenharmony_ci   *
12261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
12361847f8eSopenharmony_ci   * @crossplatform
12461847f8eSopenharmony_ci   * @form
12561847f8eSopenharmony_ci   * @atomicservice
12661847f8eSopenharmony_ci   * @since 12
12761847f8eSopenharmony_ci   */
12861847f8eSopenharmony_ci  NONE,
12961847f8eSopenharmony_ci}
13061847f8eSopenharmony_ci
13161847f8eSopenharmony_ci/**
13261847f8eSopenharmony_ci * Declare SliderChangeMode
13361847f8eSopenharmony_ci *
13461847f8eSopenharmony_ci * @enum { number }
13561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
13661847f8eSopenharmony_ci * @since 7
13761847f8eSopenharmony_ci */
13861847f8eSopenharmony_ci/**
13961847f8eSopenharmony_ci * Declare SliderChangeMode
14061847f8eSopenharmony_ci *
14161847f8eSopenharmony_ci * @enum { number }
14261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
14361847f8eSopenharmony_ci * @form
14461847f8eSopenharmony_ci * @since 9
14561847f8eSopenharmony_ci */
14661847f8eSopenharmony_ci/**
14761847f8eSopenharmony_ci * Declare SliderChangeMode
14861847f8eSopenharmony_ci *
14961847f8eSopenharmony_ci * @enum { number }
15061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
15161847f8eSopenharmony_ci * @crossplatform
15261847f8eSopenharmony_ci * @form
15361847f8eSopenharmony_ci * @since 10
15461847f8eSopenharmony_ci */
15561847f8eSopenharmony_ci/**
15661847f8eSopenharmony_ci * Declare SliderChangeMode
15761847f8eSopenharmony_ci *
15861847f8eSopenharmony_ci * @enum { number }
15961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
16061847f8eSopenharmony_ci * @crossplatform
16161847f8eSopenharmony_ci * @form
16261847f8eSopenharmony_ci * @atomicservice
16361847f8eSopenharmony_ci * @since 11
16461847f8eSopenharmony_ci */
16561847f8eSopenharmony_cideclare enum SliderChangeMode {
16661847f8eSopenharmony_ci  /**
16761847f8eSopenharmony_ci   * Start dragging the slider.
16861847f8eSopenharmony_ci   *
16961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
17061847f8eSopenharmony_ci   * @since 7
17161847f8eSopenharmony_ci   */
17261847f8eSopenharmony_ci  /**
17361847f8eSopenharmony_ci   * Start dragging the slider.
17461847f8eSopenharmony_ci   *
17561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
17661847f8eSopenharmony_ci   * @form
17761847f8eSopenharmony_ci   * @since 9
17861847f8eSopenharmony_ci   */
17961847f8eSopenharmony_ci  /**
18061847f8eSopenharmony_ci   * Start dragging the slider.
18161847f8eSopenharmony_ci   *
18261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18361847f8eSopenharmony_ci   * @crossplatform
18461847f8eSopenharmony_ci   * @form
18561847f8eSopenharmony_ci   * @since 10
18661847f8eSopenharmony_ci   */
18761847f8eSopenharmony_ci  /**
18861847f8eSopenharmony_ci   * Start dragging the slider.
18961847f8eSopenharmony_ci   *
19061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
19161847f8eSopenharmony_ci   * @crossplatform
19261847f8eSopenharmony_ci   * @form
19361847f8eSopenharmony_ci   * @atomicservice
19461847f8eSopenharmony_ci   * @since 11
19561847f8eSopenharmony_ci   */
19661847f8eSopenharmony_ci  Begin,
19761847f8eSopenharmony_ci
19861847f8eSopenharmony_ci  /**
19961847f8eSopenharmony_ci   * Drag the slider.
20061847f8eSopenharmony_ci   *
20161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
20261847f8eSopenharmony_ci   * @since 7
20361847f8eSopenharmony_ci   */
20461847f8eSopenharmony_ci  /**
20561847f8eSopenharmony_ci   * Drag the slider.
20661847f8eSopenharmony_ci   *
20761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
20861847f8eSopenharmony_ci   * @form
20961847f8eSopenharmony_ci   * @since 9
21061847f8eSopenharmony_ci   */
21161847f8eSopenharmony_ci  /**
21261847f8eSopenharmony_ci   * Drag the slider.
21361847f8eSopenharmony_ci   *
21461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
21561847f8eSopenharmony_ci   * @crossplatform
21661847f8eSopenharmony_ci   * @form
21761847f8eSopenharmony_ci   * @since 10
21861847f8eSopenharmony_ci   */
21961847f8eSopenharmony_ci  /**
22061847f8eSopenharmony_ci   * Drag the slider.
22161847f8eSopenharmony_ci   *
22261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
22361847f8eSopenharmony_ci   * @crossplatform
22461847f8eSopenharmony_ci   * @form
22561847f8eSopenharmony_ci   * @atomicservice
22661847f8eSopenharmony_ci   * @since 11
22761847f8eSopenharmony_ci   */
22861847f8eSopenharmony_ci  Moving,
22961847f8eSopenharmony_ci
23061847f8eSopenharmony_ci  /**
23161847f8eSopenharmony_ci   * End dragging the slider.
23261847f8eSopenharmony_ci   *
23361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
23461847f8eSopenharmony_ci   * @since 7
23561847f8eSopenharmony_ci   */
23661847f8eSopenharmony_ci  /**
23761847f8eSopenharmony_ci   * End dragging the slider.
23861847f8eSopenharmony_ci   *
23961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
24061847f8eSopenharmony_ci   * @form
24161847f8eSopenharmony_ci   * @since 9
24261847f8eSopenharmony_ci   */
24361847f8eSopenharmony_ci  /**
24461847f8eSopenharmony_ci   * End dragging the slider.
24561847f8eSopenharmony_ci   *
24661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
24761847f8eSopenharmony_ci   * @crossplatform
24861847f8eSopenharmony_ci   * @form
24961847f8eSopenharmony_ci   * @since 10
25061847f8eSopenharmony_ci   */
25161847f8eSopenharmony_ci  /**
25261847f8eSopenharmony_ci   * End dragging the slider.
25361847f8eSopenharmony_ci   *
25461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
25561847f8eSopenharmony_ci   * @crossplatform
25661847f8eSopenharmony_ci   * @form
25761847f8eSopenharmony_ci   * @atomicservice
25861847f8eSopenharmony_ci   * @since 11
25961847f8eSopenharmony_ci   */
26061847f8eSopenharmony_ci  End,
26161847f8eSopenharmony_ci
26261847f8eSopenharmony_ci  /**
26361847f8eSopenharmony_ci   * Click the slider.
26461847f8eSopenharmony_ci   *
26561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
26661847f8eSopenharmony_ci   * @since 8
26761847f8eSopenharmony_ci   */
26861847f8eSopenharmony_ci  /**
26961847f8eSopenharmony_ci   * Click the slider.
27061847f8eSopenharmony_ci   *
27161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
27261847f8eSopenharmony_ci   * @form
27361847f8eSopenharmony_ci   * @since 9
27461847f8eSopenharmony_ci   */
27561847f8eSopenharmony_ci  /**
27661847f8eSopenharmony_ci   * Click the slider.
27761847f8eSopenharmony_ci   *
27861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
27961847f8eSopenharmony_ci   * @crossplatform
28061847f8eSopenharmony_ci   * @form
28161847f8eSopenharmony_ci   * @since 10
28261847f8eSopenharmony_ci   */
28361847f8eSopenharmony_ci  /**
28461847f8eSopenharmony_ci   * Click the slider.
28561847f8eSopenharmony_ci   *
28661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
28761847f8eSopenharmony_ci   * @crossplatform
28861847f8eSopenharmony_ci   * @form
28961847f8eSopenharmony_ci   * @atomicservice
29061847f8eSopenharmony_ci   * @since 11
29161847f8eSopenharmony_ci   */
29261847f8eSopenharmony_ci  Click,
29361847f8eSopenharmony_ci}
29461847f8eSopenharmony_ci
29561847f8eSopenharmony_ci/**
29661847f8eSopenharmony_ci * Declare SliderInteraction
29761847f8eSopenharmony_ci *
29861847f8eSopenharmony_ci * @enum { number }
29961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
30061847f8eSopenharmony_ci * @crossplatform
30161847f8eSopenharmony_ci * @atomicservice
30261847f8eSopenharmony_ci * @since 12
30361847f8eSopenharmony_ci */
30461847f8eSopenharmony_cideclare enum SliderInteraction {
30561847f8eSopenharmony_ci  /**
30661847f8eSopenharmony_ci   * Allow user to slide the block and click track to move the block
30761847f8eSopenharmony_ci   *
30861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
30961847f8eSopenharmony_ci   * @crossplatform
31061847f8eSopenharmony_ci   * @atomicservice
31161847f8eSopenharmony_ci   * @since 12
31261847f8eSopenharmony_ci   */
31361847f8eSopenharmony_ci  SLIDE_AND_CLICK,
31461847f8eSopenharmony_ci
31561847f8eSopenharmony_ci  /**
31661847f8eSopenharmony_ci   * Only allow user to slide the block
31761847f8eSopenharmony_ci   *
31861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
31961847f8eSopenharmony_ci   * @crossplatform
32061847f8eSopenharmony_ci   * @atomicservice
32161847f8eSopenharmony_ci   * @since 12
32261847f8eSopenharmony_ci   */
32361847f8eSopenharmony_ci  SLIDE_ONLY,
32461847f8eSopenharmony_ci
32561847f8eSopenharmony_ci  /**
32661847f8eSopenharmony_ci   * Allow user to slide the block and click track to move the block, but click value only change when touch up.
32761847f8eSopenharmony_ci   * 
32861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
32961847f8eSopenharmony_ci   * @crossplatform
33061847f8eSopenharmony_ci   * @atomicservice
33161847f8eSopenharmony_ci   * @since 12
33261847f8eSopenharmony_ci   */
33361847f8eSopenharmony_ci  SLIDE_AND_CLICK_UP = 2
33461847f8eSopenharmony_ci}
33561847f8eSopenharmony_ci
33661847f8eSopenharmony_ci/**
33761847f8eSopenharmony_ci * Defines the valid slidable range. If and only if MIN <= from <= to <= MAX, sliding range can be set successfully.
33861847f8eSopenharmony_ci *
33961847f8eSopenharmony_ci * @interface SlideRange
34061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
34161847f8eSopenharmony_ci * @crossplatform
34261847f8eSopenharmony_ci * @atomicservice
34361847f8eSopenharmony_ci * @since 12
34461847f8eSopenharmony_ci */
34561847f8eSopenharmony_cideclare interface SlideRange {
34661847f8eSopenharmony_ci  /**
34761847f8eSopenharmony_ci   * Set the start point of sliding range.
34861847f8eSopenharmony_ci   *
34961847f8eSopenharmony_ci   * @type { ?number }
35061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35161847f8eSopenharmony_ci   * @crossplatform
35261847f8eSopenharmony_ci   * @atomicservice
35361847f8eSopenharmony_ci   * @since 12
35461847f8eSopenharmony_ci   */
35561847f8eSopenharmony_ci  from?: number;
35661847f8eSopenharmony_ci
35761847f8eSopenharmony_ci  /**
35861847f8eSopenharmony_ci   * Set the end point of sliding range.
35961847f8eSopenharmony_ci   *
36061847f8eSopenharmony_ci   * @type { ?number }
36161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
36261847f8eSopenharmony_ci   * @crossplatform
36361847f8eSopenharmony_ci   * @atomicservice
36461847f8eSopenharmony_ci   * @since 12
36561847f8eSopenharmony_ci   */
36661847f8eSopenharmony_ci  to?: number;
36761847f8eSopenharmony_ci}
36861847f8eSopenharmony_ci
36961847f8eSopenharmony_ci/**
37061847f8eSopenharmony_ci * Defines the options of Slider.
37161847f8eSopenharmony_ci *
37261847f8eSopenharmony_ci * @interface SliderOptions
37361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
37461847f8eSopenharmony_ci * @since 7
37561847f8eSopenharmony_ci */
37661847f8eSopenharmony_ci/**
37761847f8eSopenharmony_ci * Defines the options of Slider.
37861847f8eSopenharmony_ci *
37961847f8eSopenharmony_ci * @interface SliderOptions
38061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
38161847f8eSopenharmony_ci * @form
38261847f8eSopenharmony_ci * @since 9
38361847f8eSopenharmony_ci */
38461847f8eSopenharmony_ci/**
38561847f8eSopenharmony_ci * Defines the options of Slider.
38661847f8eSopenharmony_ci *
38761847f8eSopenharmony_ci * @interface SliderOptions
38861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
38961847f8eSopenharmony_ci * @crossplatform
39061847f8eSopenharmony_ci * @form
39161847f8eSopenharmony_ci * @since 10
39261847f8eSopenharmony_ci */
39361847f8eSopenharmony_ci/**
39461847f8eSopenharmony_ci * Defines the options of Slider.
39561847f8eSopenharmony_ci *
39661847f8eSopenharmony_ci * @interface SliderOptions
39761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
39861847f8eSopenharmony_ci * @crossplatform
39961847f8eSopenharmony_ci * @form
40061847f8eSopenharmony_ci * @atomicservice
40161847f8eSopenharmony_ci * @since 11
40261847f8eSopenharmony_ci */
40361847f8eSopenharmony_cideclare interface SliderOptions {
40461847f8eSopenharmony_ci  /**
40561847f8eSopenharmony_ci   * Current value of Slider.
40661847f8eSopenharmony_ci   *
40761847f8eSopenharmony_ci   * @type { ?number }
40861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
40961847f8eSopenharmony_ci   * @since 7
41061847f8eSopenharmony_ci   */
41161847f8eSopenharmony_ci  /**
41261847f8eSopenharmony_ci   * Current value of Slider.
41361847f8eSopenharmony_ci   *
41461847f8eSopenharmony_ci   * @type { ?number }
41561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
41661847f8eSopenharmony_ci   * @form
41761847f8eSopenharmony_ci   * @since 9
41861847f8eSopenharmony_ci   */
41961847f8eSopenharmony_ci  /**
42061847f8eSopenharmony_ci   * Current value of Slider.
42161847f8eSopenharmony_ci   *
42261847f8eSopenharmony_ci   * @type { ?number }
42361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
42461847f8eSopenharmony_ci   * @crossplatform
42561847f8eSopenharmony_ci   * @form
42661847f8eSopenharmony_ci   * @since 10
42761847f8eSopenharmony_ci   */
42861847f8eSopenharmony_ci  /**
42961847f8eSopenharmony_ci   * Current value of Slider.
43061847f8eSopenharmony_ci   *
43161847f8eSopenharmony_ci   * @type { ?number }
43261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
43361847f8eSopenharmony_ci   * @crossplatform
43461847f8eSopenharmony_ci   * @form
43561847f8eSopenharmony_ci   * @atomicservice
43661847f8eSopenharmony_ci   * @since 11
43761847f8eSopenharmony_ci   */
43861847f8eSopenharmony_ci  value?: number;
43961847f8eSopenharmony_ci
44061847f8eSopenharmony_ci  /**
44161847f8eSopenharmony_ci   * Sets the min value of Slider.
44261847f8eSopenharmony_ci   *
44361847f8eSopenharmony_ci   * @type { ?number }
44461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
44561847f8eSopenharmony_ci   * @since 7
44661847f8eSopenharmony_ci   */
44761847f8eSopenharmony_ci  /**
44861847f8eSopenharmony_ci   * Sets the min value of Slider.
44961847f8eSopenharmony_ci   *
45061847f8eSopenharmony_ci   * @type { ?number }
45161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
45261847f8eSopenharmony_ci   * @form
45361847f8eSopenharmony_ci   * @since 9
45461847f8eSopenharmony_ci   */
45561847f8eSopenharmony_ci  /**
45661847f8eSopenharmony_ci   * Sets the min value of Slider.
45761847f8eSopenharmony_ci   *
45861847f8eSopenharmony_ci   * @type { ?number }
45961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
46061847f8eSopenharmony_ci   * @crossplatform
46161847f8eSopenharmony_ci   * @form
46261847f8eSopenharmony_ci   * @since 10
46361847f8eSopenharmony_ci   */
46461847f8eSopenharmony_ci  /**
46561847f8eSopenharmony_ci   * Sets the min value of Slider.
46661847f8eSopenharmony_ci   *
46761847f8eSopenharmony_ci   * @type { ?number }
46861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
46961847f8eSopenharmony_ci   * @crossplatform
47061847f8eSopenharmony_ci   * @form
47161847f8eSopenharmony_ci   * @atomicservice
47261847f8eSopenharmony_ci   * @since 11
47361847f8eSopenharmony_ci   */
47461847f8eSopenharmony_ci  min?: number;
47561847f8eSopenharmony_ci
47661847f8eSopenharmony_ci  /**
47761847f8eSopenharmony_ci   * Sets the max value of Slider.
47861847f8eSopenharmony_ci   *
47961847f8eSopenharmony_ci   * @type { ?number }
48061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
48161847f8eSopenharmony_ci   * @since 7
48261847f8eSopenharmony_ci   */
48361847f8eSopenharmony_ci  /**
48461847f8eSopenharmony_ci   * Sets the max value of Slider.
48561847f8eSopenharmony_ci   *
48661847f8eSopenharmony_ci   * @type { ?number }
48761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
48861847f8eSopenharmony_ci   * @form
48961847f8eSopenharmony_ci   * @since 9
49061847f8eSopenharmony_ci   */
49161847f8eSopenharmony_ci  /**
49261847f8eSopenharmony_ci   * Sets the max value of Slider.
49361847f8eSopenharmony_ci   *
49461847f8eSopenharmony_ci   * @type { ?number }
49561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
49661847f8eSopenharmony_ci   * @crossplatform
49761847f8eSopenharmony_ci   * @form
49861847f8eSopenharmony_ci   * @since 10
49961847f8eSopenharmony_ci   */
50061847f8eSopenharmony_ci  /**
50161847f8eSopenharmony_ci   * Sets the max value of Slider.
50261847f8eSopenharmony_ci   *
50361847f8eSopenharmony_ci   * @type { ?number }
50461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
50561847f8eSopenharmony_ci   * @crossplatform
50661847f8eSopenharmony_ci   * @form
50761847f8eSopenharmony_ci   * @atomicservice
50861847f8eSopenharmony_ci   * @since 11
50961847f8eSopenharmony_ci   */
51061847f8eSopenharmony_ci  max?: number;
51161847f8eSopenharmony_ci
51261847f8eSopenharmony_ci  /**
51361847f8eSopenharmony_ci   * Sets the step of each slide value.
51461847f8eSopenharmony_ci   *
51561847f8eSopenharmony_ci   * @type { ?number }
51661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
51761847f8eSopenharmony_ci   * @since 7
51861847f8eSopenharmony_ci   */
51961847f8eSopenharmony_ci  /**
52061847f8eSopenharmony_ci   * Sets the step of each slide value.
52161847f8eSopenharmony_ci   *
52261847f8eSopenharmony_ci   * @type { ?number }
52361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
52461847f8eSopenharmony_ci   * @form
52561847f8eSopenharmony_ci   * @since 9
52661847f8eSopenharmony_ci   */
52761847f8eSopenharmony_ci  /**
52861847f8eSopenharmony_ci   * Sets the step of each slide value.
52961847f8eSopenharmony_ci   *
53061847f8eSopenharmony_ci   * @type { ?number }
53161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
53261847f8eSopenharmony_ci   * @crossplatform
53361847f8eSopenharmony_ci   * @form
53461847f8eSopenharmony_ci   * @since 10
53561847f8eSopenharmony_ci   */
53661847f8eSopenharmony_ci  /**
53761847f8eSopenharmony_ci   * Sets the step of each slide value.
53861847f8eSopenharmony_ci   *
53961847f8eSopenharmony_ci   * @type { ?number }
54061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
54161847f8eSopenharmony_ci   * @crossplatform
54261847f8eSopenharmony_ci   * @form
54361847f8eSopenharmony_ci   * @atomicservice
54461847f8eSopenharmony_ci   * @since 11
54561847f8eSopenharmony_ci   */
54661847f8eSopenharmony_ci  step?: number;
54761847f8eSopenharmony_ci
54861847f8eSopenharmony_ci  /**
54961847f8eSopenharmony_ci   * Sets the slider style.
55061847f8eSopenharmony_ci   *
55161847f8eSopenharmony_ci   * @type { ?SliderStyle }
55261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
55361847f8eSopenharmony_ci   * @since 7
55461847f8eSopenharmony_ci   */
55561847f8eSopenharmony_ci  /**
55661847f8eSopenharmony_ci   * Sets the slider style.
55761847f8eSopenharmony_ci   *
55861847f8eSopenharmony_ci   * @type { ?SliderStyle }
55961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
56061847f8eSopenharmony_ci   * @form
56161847f8eSopenharmony_ci   * @since 9
56261847f8eSopenharmony_ci   */
56361847f8eSopenharmony_ci  /**
56461847f8eSopenharmony_ci   * Sets the slider style.
56561847f8eSopenharmony_ci   *
56661847f8eSopenharmony_ci   * @type { ?SliderStyle }
56761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
56861847f8eSopenharmony_ci   * @crossplatform
56961847f8eSopenharmony_ci   * @form
57061847f8eSopenharmony_ci   * @since 10
57161847f8eSopenharmony_ci   */
57261847f8eSopenharmony_ci  /**
57361847f8eSopenharmony_ci   * Sets the slider style.
57461847f8eSopenharmony_ci   *
57561847f8eSopenharmony_ci   * @type { ?SliderStyle }
57661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
57761847f8eSopenharmony_ci   * @crossplatform
57861847f8eSopenharmony_ci   * @form
57961847f8eSopenharmony_ci   * @atomicservice
58061847f8eSopenharmony_ci   * @since 11
58161847f8eSopenharmony_ci   */
58261847f8eSopenharmony_ci  style?: SliderStyle;
58361847f8eSopenharmony_ci
58461847f8eSopenharmony_ci  /**
58561847f8eSopenharmony_ci   * Sets the slider direction style.
58661847f8eSopenharmony_ci   *
58761847f8eSopenharmony_ci   * @type { ?Axis }
58861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
58961847f8eSopenharmony_ci   * @since 8
59061847f8eSopenharmony_ci   */
59161847f8eSopenharmony_ci  /**
59261847f8eSopenharmony_ci   * Sets the slider direction style.
59361847f8eSopenharmony_ci   *
59461847f8eSopenharmony_ci   * @type { ?Axis }
59561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
59661847f8eSopenharmony_ci   * @form
59761847f8eSopenharmony_ci   * @since 9
59861847f8eSopenharmony_ci   */
59961847f8eSopenharmony_ci  /**
60061847f8eSopenharmony_ci   * Sets the slider direction style.
60161847f8eSopenharmony_ci   *
60261847f8eSopenharmony_ci   * @type { ?Axis }
60361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
60461847f8eSopenharmony_ci   * @crossplatform
60561847f8eSopenharmony_ci   * @form
60661847f8eSopenharmony_ci   * @since 10
60761847f8eSopenharmony_ci   */
60861847f8eSopenharmony_ci  /**
60961847f8eSopenharmony_ci   * Sets the slider direction style.
61061847f8eSopenharmony_ci   *
61161847f8eSopenharmony_ci   * @type { ?Axis }
61261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
61361847f8eSopenharmony_ci   * @crossplatform
61461847f8eSopenharmony_ci   * @form
61561847f8eSopenharmony_ci   * @atomicservice
61661847f8eSopenharmony_ci   * @since 11
61761847f8eSopenharmony_ci   */
61861847f8eSopenharmony_ci  direction?: Axis;
61961847f8eSopenharmony_ci
62061847f8eSopenharmony_ci  /**
62161847f8eSopenharmony_ci   * Set whether the direction of the slider needs to be reversed.
62261847f8eSopenharmony_ci   *
62361847f8eSopenharmony_ci   * @type { ?boolean }
62461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
62561847f8eSopenharmony_ci   * @since 8
62661847f8eSopenharmony_ci   */
62761847f8eSopenharmony_ci  /**
62861847f8eSopenharmony_ci   * Set whether the direction of the slider needs to be reversed.
62961847f8eSopenharmony_ci   *
63061847f8eSopenharmony_ci   * @type { ?boolean }
63161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
63261847f8eSopenharmony_ci   * @form
63361847f8eSopenharmony_ci   * @since 9
63461847f8eSopenharmony_ci   */
63561847f8eSopenharmony_ci  /**
63661847f8eSopenharmony_ci   * Set whether the direction of the slider needs to be reversed.
63761847f8eSopenharmony_ci   *
63861847f8eSopenharmony_ci   * @type { ?boolean }
63961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
64061847f8eSopenharmony_ci   * @crossplatform
64161847f8eSopenharmony_ci   * @form
64261847f8eSopenharmony_ci   * @since 10
64361847f8eSopenharmony_ci   */
64461847f8eSopenharmony_ci  /**
64561847f8eSopenharmony_ci   * Set whether the direction of the slider needs to be reversed.
64661847f8eSopenharmony_ci   *
64761847f8eSopenharmony_ci   * @type { ?boolean }
64861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
64961847f8eSopenharmony_ci   * @crossplatform
65061847f8eSopenharmony_ci   * @form
65161847f8eSopenharmony_ci   * @atomicservice
65261847f8eSopenharmony_ci   * @since 11
65361847f8eSopenharmony_ci   */
65461847f8eSopenharmony_ci  reverse?: boolean;
65561847f8eSopenharmony_ci}
65661847f8eSopenharmony_ci
65761847f8eSopenharmony_ci/**
65861847f8eSopenharmony_ci * Declare SliderBlockType
65961847f8eSopenharmony_ci *
66061847f8eSopenharmony_ci * @enum { number }
66161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
66261847f8eSopenharmony_ci * @crossplatform
66361847f8eSopenharmony_ci * @since 10
66461847f8eSopenharmony_ci */
66561847f8eSopenharmony_ci/**
66661847f8eSopenharmony_ci * Declare SliderBlockType
66761847f8eSopenharmony_ci *
66861847f8eSopenharmony_ci * @enum { number }
66961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
67061847f8eSopenharmony_ci * @crossplatform
67161847f8eSopenharmony_ci * @atomicservice
67261847f8eSopenharmony_ci * @since 11
67361847f8eSopenharmony_ci */
67461847f8eSopenharmony_cideclare enum SliderBlockType {
67561847f8eSopenharmony_ci  /**
67661847f8eSopenharmony_ci   * Use the default block.
67761847f8eSopenharmony_ci   *
67861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
67961847f8eSopenharmony_ci   * @crossplatform
68061847f8eSopenharmony_ci   * @since 10
68161847f8eSopenharmony_ci   */
68261847f8eSopenharmony_ci  /**
68361847f8eSopenharmony_ci   * Use the default block.
68461847f8eSopenharmony_ci   *
68561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
68661847f8eSopenharmony_ci   * @crossplatform
68761847f8eSopenharmony_ci   * @atomicservice
68861847f8eSopenharmony_ci   * @since 11
68961847f8eSopenharmony_ci   */
69061847f8eSopenharmony_ci  DEFAULT,
69161847f8eSopenharmony_ci
69261847f8eSopenharmony_ci  /**
69361847f8eSopenharmony_ci   * Use an image as the slider block.
69461847f8eSopenharmony_ci   *
69561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
69661847f8eSopenharmony_ci   * @crossplatform
69761847f8eSopenharmony_ci   * @since 10
69861847f8eSopenharmony_ci   */
69961847f8eSopenharmony_ci  /**
70061847f8eSopenharmony_ci   * Use an image as the slider block.
70161847f8eSopenharmony_ci   *
70261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
70361847f8eSopenharmony_ci   * @crossplatform
70461847f8eSopenharmony_ci   * @atomicservice
70561847f8eSopenharmony_ci   * @since 11
70661847f8eSopenharmony_ci   */
70761847f8eSopenharmony_ci  IMAGE,
70861847f8eSopenharmony_ci
70961847f8eSopenharmony_ci  /**
71061847f8eSopenharmony_ci   * Use a shape as the slider block.
71161847f8eSopenharmony_ci   *
71261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
71361847f8eSopenharmony_ci   * @crossplatform
71461847f8eSopenharmony_ci   * @since 10
71561847f8eSopenharmony_ci   */
71661847f8eSopenharmony_ci  /**
71761847f8eSopenharmony_ci   * Use a shape as the slider block.
71861847f8eSopenharmony_ci   *
71961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
72061847f8eSopenharmony_ci   * @crossplatform
72161847f8eSopenharmony_ci   * @atomicservice
72261847f8eSopenharmony_ci   * @since 11
72361847f8eSopenharmony_ci   */
72461847f8eSopenharmony_ci  SHAPE,
72561847f8eSopenharmony_ci}
72661847f8eSopenharmony_ci
72761847f8eSopenharmony_ci/**
72861847f8eSopenharmony_ci * Defines the style of slider block.
72961847f8eSopenharmony_ci *
73061847f8eSopenharmony_ci * @interface SliderBlockStyle
73161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
73261847f8eSopenharmony_ci * @crossplatform
73361847f8eSopenharmony_ci * @since 10
73461847f8eSopenharmony_ci */
73561847f8eSopenharmony_ci/**
73661847f8eSopenharmony_ci * Defines the style of slider block.
73761847f8eSopenharmony_ci *
73861847f8eSopenharmony_ci * @interface SliderBlockStyle
73961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
74061847f8eSopenharmony_ci * @crossplatform
74161847f8eSopenharmony_ci * @atomicservice
74261847f8eSopenharmony_ci * @since 11
74361847f8eSopenharmony_ci */
74461847f8eSopenharmony_cideclare interface SliderBlockStyle {
74561847f8eSopenharmony_ci  /**
74661847f8eSopenharmony_ci   * Sets the type of slider block.
74761847f8eSopenharmony_ci   *
74861847f8eSopenharmony_ci   * @type { SliderBlockType }
74961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
75061847f8eSopenharmony_ci   * @crossplatform
75161847f8eSopenharmony_ci   * @since 10
75261847f8eSopenharmony_ci   */
75361847f8eSopenharmony_ci  /**
75461847f8eSopenharmony_ci   * Sets the type of slider block.
75561847f8eSopenharmony_ci   *
75661847f8eSopenharmony_ci   * @type { SliderBlockType }
75761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
75861847f8eSopenharmony_ci   * @crossplatform
75961847f8eSopenharmony_ci   * @atomicservice
76061847f8eSopenharmony_ci   * @since 11
76161847f8eSopenharmony_ci   */
76261847f8eSopenharmony_ci  type: SliderBlockType;
76361847f8eSopenharmony_ci
76461847f8eSopenharmony_ci  /**
76561847f8eSopenharmony_ci   * Sets the image of slider block while the type is set to SliderBlockType.Image.
76661847f8eSopenharmony_ci   *
76761847f8eSopenharmony_ci   * @type { ?ResourceStr }
76861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
76961847f8eSopenharmony_ci   * @crossplatform
77061847f8eSopenharmony_ci   * @since 10
77161847f8eSopenharmony_ci   */
77261847f8eSopenharmony_ci  /**
77361847f8eSopenharmony_ci   * Sets the image of slider block while the type is set to SliderBlockType.Image.
77461847f8eSopenharmony_ci   *
77561847f8eSopenharmony_ci   * @type { ?ResourceStr }
77661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
77761847f8eSopenharmony_ci   * @crossplatform
77861847f8eSopenharmony_ci   * @atomicservice
77961847f8eSopenharmony_ci   * @since 11
78061847f8eSopenharmony_ci   */
78161847f8eSopenharmony_ci  image?: ResourceStr;
78261847f8eSopenharmony_ci
78361847f8eSopenharmony_ci  /**
78461847f8eSopenharmony_ci   * Sets the shape of slider block while the type is set to SliderBlockType.Shape.
78561847f8eSopenharmony_ci   *
78661847f8eSopenharmony_ci   * @type { ?(CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute) }
78761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
78861847f8eSopenharmony_ci   * @crossplatform
78961847f8eSopenharmony_ci   * @since 10
79061847f8eSopenharmony_ci   */
79161847f8eSopenharmony_ci  /**
79261847f8eSopenharmony_ci   * Sets the shape of slider block while the type is set to SliderBlockType.Shape.
79361847f8eSopenharmony_ci   *
79461847f8eSopenharmony_ci   * @type { ?(CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute) }
79561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
79661847f8eSopenharmony_ci   * @crossplatform
79761847f8eSopenharmony_ci   * @atomicservice
79861847f8eSopenharmony_ci   * @since 11
79961847f8eSopenharmony_ci   */
80061847f8eSopenharmony_ci  shape?: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute;
80161847f8eSopenharmony_ci}
80261847f8eSopenharmony_ci
80361847f8eSopenharmony_ci/**
80461847f8eSopenharmony_ci * Defines the callback type used in SliderConfiguration.
80561847f8eSopenharmony_ci *
80661847f8eSopenharmony_ci * @typedef {function} SliderTriggerChangeCallback 
80761847f8eSopenharmony_ci * @param { number } value - The value of slider.
80861847f8eSopenharmony_ci * @param { SliderChangeMode } mode - The changeMode of slider.
80961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
81061847f8eSopenharmony_ci * @crossplatform
81161847f8eSopenharmony_ci * @atomicservice
81261847f8eSopenharmony_ci * @since 12
81361847f8eSopenharmony_ci */
81461847f8eSopenharmony_cideclare type SliderTriggerChangeCallback = (value: number, mode: SliderChangeMode) => void;
81561847f8eSopenharmony_ci
81661847f8eSopenharmony_ci/**
81761847f8eSopenharmony_ci * SliderConfiguration used by slider content modifier
81861847f8eSopenharmony_ci *
81961847f8eSopenharmony_ci * @interface SliderConfiguration
82061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
82161847f8eSopenharmony_ci * @crossplatform
82261847f8eSopenharmony_ci * @atomicservice
82361847f8eSopenharmony_ci * @since 12
82461847f8eSopenharmony_ci */
82561847f8eSopenharmony_cideclare interface SliderConfiguration extends CommonConfiguration<SliderConfiguration> {
82661847f8eSopenharmony_ci  /**
82761847f8eSopenharmony_ci   * Current progress value.
82861847f8eSopenharmony_ci   *
82961847f8eSopenharmony_ci   * @type { number }
83061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
83161847f8eSopenharmony_ci   * @crossplatform
83261847f8eSopenharmony_ci   * @atomicservice
83361847f8eSopenharmony_ci   * @since 12
83461847f8eSopenharmony_ci   */
83561847f8eSopenharmony_ci  value: number;
83661847f8eSopenharmony_ci
83761847f8eSopenharmony_ci  /**
83861847f8eSopenharmony_ci   * Minimum value.
83961847f8eSopenharmony_ci   *
84061847f8eSopenharmony_ci   * @type { number }
84161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
84261847f8eSopenharmony_ci   * @crossplatform
84361847f8eSopenharmony_ci   * @atomicservice
84461847f8eSopenharmony_ci   * @since 12
84561847f8eSopenharmony_ci   */
84661847f8eSopenharmony_ci  min: number;
84761847f8eSopenharmony_ci
84861847f8eSopenharmony_ci  /**
84961847f8eSopenharmony_ci   * Maximum value.
85061847f8eSopenharmony_ci   *
85161847f8eSopenharmony_ci   * @type { number }
85261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
85361847f8eSopenharmony_ci   * @crossplatform
85461847f8eSopenharmony_ci   * @atomicservice
85561847f8eSopenharmony_ci   * @since 12
85661847f8eSopenharmony_ci   */
85761847f8eSopenharmony_ci  max: number;
85861847f8eSopenharmony_ci
85961847f8eSopenharmony_ci  /**
86061847f8eSopenharmony_ci   * The sliding step size of Slider.
86161847f8eSopenharmony_ci   *
86261847f8eSopenharmony_ci   * @type { number }
86361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
86461847f8eSopenharmony_ci   * @crossplatform
86561847f8eSopenharmony_ci   * @atomicservice
86661847f8eSopenharmony_ci   * @since 12
86761847f8eSopenharmony_ci   */
86861847f8eSopenharmony_ci  step: number;
86961847f8eSopenharmony_ci
87061847f8eSopenharmony_ci  /**
87161847f8eSopenharmony_ci   * Trigger slider change
87261847f8eSopenharmony_ci   *
87361847f8eSopenharmony_ci   * @type { SliderTriggerChangeCallback }
87461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
87561847f8eSopenharmony_ci   * @crossplatform
87661847f8eSopenharmony_ci   * @atomicservice
87761847f8eSopenharmony_ci   * @since 12
87861847f8eSopenharmony_ci   */
87961847f8eSopenharmony_ci  triggerChange: SliderTriggerChangeCallback;
88061847f8eSopenharmony_ci}
88161847f8eSopenharmony_ci
88261847f8eSopenharmony_ci/**
88361847f8eSopenharmony_ci * Provides an interface for the slide bar component.
88461847f8eSopenharmony_ci *
88561847f8eSopenharmony_ci * @interface SliderInterface
88661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
88761847f8eSopenharmony_ci * @since 7
88861847f8eSopenharmony_ci */
88961847f8eSopenharmony_ci/**
89061847f8eSopenharmony_ci * Provides an interface for the slide bar component.
89161847f8eSopenharmony_ci *
89261847f8eSopenharmony_ci * @interface SliderInterface
89361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
89461847f8eSopenharmony_ci * @form
89561847f8eSopenharmony_ci * @since 9
89661847f8eSopenharmony_ci */
89761847f8eSopenharmony_ci/**
89861847f8eSopenharmony_ci * Provides an interface for the slide bar component.
89961847f8eSopenharmony_ci *
90061847f8eSopenharmony_ci * @interface SliderInterface
90161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
90261847f8eSopenharmony_ci * @crossplatform
90361847f8eSopenharmony_ci * @form
90461847f8eSopenharmony_ci * @since 10
90561847f8eSopenharmony_ci */
90661847f8eSopenharmony_ci/**
90761847f8eSopenharmony_ci * Provides an interface for the slide bar component.
90861847f8eSopenharmony_ci *
90961847f8eSopenharmony_ci * @interface SliderInterface
91061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
91161847f8eSopenharmony_ci * @crossplatform
91261847f8eSopenharmony_ci * @form
91361847f8eSopenharmony_ci * @atomicservice
91461847f8eSopenharmony_ci * @since 11
91561847f8eSopenharmony_ci */
91661847f8eSopenharmony_ciinterface SliderInterface {
91761847f8eSopenharmony_ci  /**
91861847f8eSopenharmony_ci   * Called when the slider bar component is used.
91961847f8eSopenharmony_ci   *
92061847f8eSopenharmony_ci   * @param { SliderOptions } options
92161847f8eSopenharmony_ci   * @returns { SliderAttribute }
92261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
92361847f8eSopenharmony_ci   * @since 7
92461847f8eSopenharmony_ci   */
92561847f8eSopenharmony_ci  /**
92661847f8eSopenharmony_ci   * Called when the slider bar component is used.
92761847f8eSopenharmony_ci   *
92861847f8eSopenharmony_ci   * @param { SliderOptions } options
92961847f8eSopenharmony_ci   * @returns { SliderAttribute }
93061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
93161847f8eSopenharmony_ci   * @form
93261847f8eSopenharmony_ci   * @since 9
93361847f8eSopenharmony_ci   */
93461847f8eSopenharmony_ci  /**
93561847f8eSopenharmony_ci   * Called when the slider bar component is used.
93661847f8eSopenharmony_ci   *
93761847f8eSopenharmony_ci   * @param { SliderOptions } options
93861847f8eSopenharmony_ci   * @returns { SliderAttribute }
93961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
94061847f8eSopenharmony_ci   * @crossplatform
94161847f8eSopenharmony_ci   * @form
94261847f8eSopenharmony_ci   * @since 10
94361847f8eSopenharmony_ci   */
94461847f8eSopenharmony_ci  /**
94561847f8eSopenharmony_ci   * Called when the slider bar component is used.
94661847f8eSopenharmony_ci   *
94761847f8eSopenharmony_ci   * @param { SliderOptions } options
94861847f8eSopenharmony_ci   * @returns { SliderAttribute }
94961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
95061847f8eSopenharmony_ci   * @crossplatform
95161847f8eSopenharmony_ci   * @form
95261847f8eSopenharmony_ci   * @atomicservice
95361847f8eSopenharmony_ci   * @since 11
95461847f8eSopenharmony_ci   */
95561847f8eSopenharmony_ci  (options?: SliderOptions): SliderAttribute;
95661847f8eSopenharmony_ci}
95761847f8eSopenharmony_ci
95861847f8eSopenharmony_ci/**
95961847f8eSopenharmony_ci * Defines the attribute functions of Slider.
96061847f8eSopenharmony_ci *
96161847f8eSopenharmony_ci * @extends CommonMethod<SliderAttribute>
96261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
96361847f8eSopenharmony_ci * @since 7
96461847f8eSopenharmony_ci */
96561847f8eSopenharmony_ci/**
96661847f8eSopenharmony_ci * Defines the attribute functions of Slider.
96761847f8eSopenharmony_ci *
96861847f8eSopenharmony_ci * @extends CommonMethod<SliderAttribute>
96961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
97061847f8eSopenharmony_ci * @form
97161847f8eSopenharmony_ci * @since 9
97261847f8eSopenharmony_ci */
97361847f8eSopenharmony_ci/**
97461847f8eSopenharmony_ci * Defines the attribute functions of Slider.
97561847f8eSopenharmony_ci *
97661847f8eSopenharmony_ci * @extends CommonMethod<SliderAttribute>
97761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
97861847f8eSopenharmony_ci * @crossplatform
97961847f8eSopenharmony_ci * @form
98061847f8eSopenharmony_ci * @since 10
98161847f8eSopenharmony_ci */
98261847f8eSopenharmony_ci/**
98361847f8eSopenharmony_ci * Defines the attribute functions of Slider.
98461847f8eSopenharmony_ci *
98561847f8eSopenharmony_ci * @extends CommonMethod<SliderAttribute>
98661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
98761847f8eSopenharmony_ci * @crossplatform
98861847f8eSopenharmony_ci * @form
98961847f8eSopenharmony_ci * @atomicservice
99061847f8eSopenharmony_ci * @since 11
99161847f8eSopenharmony_ci */
99261847f8eSopenharmony_cideclare class SliderAttribute extends CommonMethod<SliderAttribute> {
99361847f8eSopenharmony_ci  /**
99461847f8eSopenharmony_ci   * Called when the slider color of the slider bar is set.
99561847f8eSopenharmony_ci   *
99661847f8eSopenharmony_ci   * @param { ResourceColor } value
99761847f8eSopenharmony_ci   * @returns { SliderAttribute }
99861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
99961847f8eSopenharmony_ci   * @since 7
100061847f8eSopenharmony_ci   */
100161847f8eSopenharmony_ci  /**
100261847f8eSopenharmony_ci   * Called when the slider color of the slider bar is set.
100361847f8eSopenharmony_ci   *
100461847f8eSopenharmony_ci   * @param { ResourceColor } value
100561847f8eSopenharmony_ci   * @returns { SliderAttribute }
100661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
100761847f8eSopenharmony_ci   * @form
100861847f8eSopenharmony_ci   * @since 9
100961847f8eSopenharmony_ci   */
101061847f8eSopenharmony_ci  /**
101161847f8eSopenharmony_ci   * Called when the slider color of the slider bar is set.
101261847f8eSopenharmony_ci   *
101361847f8eSopenharmony_ci   * @param { ResourceColor } value
101461847f8eSopenharmony_ci   * @returns { SliderAttribute }
101561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
101661847f8eSopenharmony_ci   * @crossplatform
101761847f8eSopenharmony_ci   * @form
101861847f8eSopenharmony_ci   * @since 10
101961847f8eSopenharmony_ci   */
102061847f8eSopenharmony_ci  /**
102161847f8eSopenharmony_ci   * Called when the slider color of the slider bar is set.
102261847f8eSopenharmony_ci   *
102361847f8eSopenharmony_ci   * @param { ResourceColor } value
102461847f8eSopenharmony_ci   * @returns { SliderAttribute }
102561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
102661847f8eSopenharmony_ci   * @crossplatform
102761847f8eSopenharmony_ci   * @form
102861847f8eSopenharmony_ci   * @atomicservice
102961847f8eSopenharmony_ci   * @since 11
103061847f8eSopenharmony_ci   */
103161847f8eSopenharmony_ci  blockColor(value: ResourceColor): SliderAttribute;
103261847f8eSopenharmony_ci
103361847f8eSopenharmony_ci  /**
103461847f8eSopenharmony_ci   * Called when the track color of the slider is set.
103561847f8eSopenharmony_ci   *
103661847f8eSopenharmony_ci   * @param { ResourceColor } value
103761847f8eSopenharmony_ci   * @returns { SliderAttribute }
103861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
103961847f8eSopenharmony_ci   * @since 7
104061847f8eSopenharmony_ci   */
104161847f8eSopenharmony_ci  /**
104261847f8eSopenharmony_ci   * Called when the track color of the slider is set.
104361847f8eSopenharmony_ci   *
104461847f8eSopenharmony_ci   * @param { ResourceColor } value
104561847f8eSopenharmony_ci   * @returns { SliderAttribute }
104661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
104761847f8eSopenharmony_ci   * @form
104861847f8eSopenharmony_ci   * @since 9
104961847f8eSopenharmony_ci   */
105061847f8eSopenharmony_ci  /**
105161847f8eSopenharmony_ci   * Called when the track color of the slider is set.
105261847f8eSopenharmony_ci   *
105361847f8eSopenharmony_ci   * @param { ResourceColor } value
105461847f8eSopenharmony_ci   * @returns { SliderAttribute }
105561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
105661847f8eSopenharmony_ci   * @crossplatform
105761847f8eSopenharmony_ci   * @form
105861847f8eSopenharmony_ci   * @since 10
105961847f8eSopenharmony_ci   */
106061847f8eSopenharmony_ci  /**
106161847f8eSopenharmony_ci   * Called when the track color of the slider is set.
106261847f8eSopenharmony_ci   *
106361847f8eSopenharmony_ci   * @param { ResourceColor } value
106461847f8eSopenharmony_ci   * @returns { SliderAttribute }
106561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
106661847f8eSopenharmony_ci   * @crossplatform
106761847f8eSopenharmony_ci   * @form
106861847f8eSopenharmony_ci   * @atomicservice
106961847f8eSopenharmony_ci   * @since 11
107061847f8eSopenharmony_ci   */
107161847f8eSopenharmony_ci  /**
107261847f8eSopenharmony_ci   * Called when the track color of the slider is set.
107361847f8eSopenharmony_ci   *
107461847f8eSopenharmony_ci   * @param { ResourceColor | LinearGradient } value
107561847f8eSopenharmony_ci   * @returns { SliderAttribute }
107661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
107761847f8eSopenharmony_ci   * @crossplatform
107861847f8eSopenharmony_ci   * @form
107961847f8eSopenharmony_ci   * @atomicservice
108061847f8eSopenharmony_ci   * @since 12
108161847f8eSopenharmony_ci   */
108261847f8eSopenharmony_ci  trackColor(value: ResourceColor | LinearGradient): SliderAttribute;
108361847f8eSopenharmony_ci
108461847f8eSopenharmony_ci  /**
108561847f8eSopenharmony_ci   * Called when the slider of the slider bar is set to slide over the area color.
108661847f8eSopenharmony_ci   *
108761847f8eSopenharmony_ci   * @param { ResourceColor } value
108861847f8eSopenharmony_ci   * @returns { SliderAttribute }
108961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
109061847f8eSopenharmony_ci   * @since 7
109161847f8eSopenharmony_ci   */
109261847f8eSopenharmony_ci  /**
109361847f8eSopenharmony_ci   * Called when the slider of the slider bar is set to slide over the area color.
109461847f8eSopenharmony_ci   *
109561847f8eSopenharmony_ci   * @param { ResourceColor } value
109661847f8eSopenharmony_ci   * @returns { SliderAttribute }
109761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
109861847f8eSopenharmony_ci   * @form
109961847f8eSopenharmony_ci   * @since 9
110061847f8eSopenharmony_ci   */
110161847f8eSopenharmony_ci  /**
110261847f8eSopenharmony_ci   * Called when the slider of the slider bar is set to slide over the area color.
110361847f8eSopenharmony_ci   *
110461847f8eSopenharmony_ci   * @param { ResourceColor } value
110561847f8eSopenharmony_ci   * @returns { SliderAttribute }
110661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
110761847f8eSopenharmony_ci   * @crossplatform
110861847f8eSopenharmony_ci   * @form
110961847f8eSopenharmony_ci   * @since 10
111061847f8eSopenharmony_ci   */
111161847f8eSopenharmony_ci  /**
111261847f8eSopenharmony_ci   * Called when the slider of the slider bar is set to slide over the area color.
111361847f8eSopenharmony_ci   *
111461847f8eSopenharmony_ci   * @param { ResourceColor } value
111561847f8eSopenharmony_ci   * @returns { SliderAttribute }
111661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
111761847f8eSopenharmony_ci   * @crossplatform
111861847f8eSopenharmony_ci   * @form
111961847f8eSopenharmony_ci   * @atomicservice
112061847f8eSopenharmony_ci   * @since 11
112161847f8eSopenharmony_ci   */
112261847f8eSopenharmony_ci  selectedColor(value: ResourceColor): SliderAttribute;
112361847f8eSopenharmony_ci
112461847f8eSopenharmony_ci  /**
112561847f8eSopenharmony_ci   * Called when the minimum label is set.
112661847f8eSopenharmony_ci   *
112761847f8eSopenharmony_ci   * @param { string } value
112861847f8eSopenharmony_ci   * @returns { SliderAttribute }
112961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
113061847f8eSopenharmony_ci   * @since 7
113161847f8eSopenharmony_ci   * @deprecated since 9
113261847f8eSopenharmony_ci   * @useinstead min
113361847f8eSopenharmony_ci   */
113461847f8eSopenharmony_ci  minLabel(value: string): SliderAttribute;
113561847f8eSopenharmony_ci
113661847f8eSopenharmony_ci  /**
113761847f8eSopenharmony_ci   * Called when the maximum label is set.
113861847f8eSopenharmony_ci   *
113961847f8eSopenharmony_ci   * @param { string } value
114061847f8eSopenharmony_ci   * @returns { SliderAttribute }
114161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
114261847f8eSopenharmony_ci   * @since 7
114361847f8eSopenharmony_ci   * @deprecated since 9
114461847f8eSopenharmony_ci   * @useinstead max
114561847f8eSopenharmony_ci   */
114661847f8eSopenharmony_ci  maxLabel(value: string): SliderAttribute;
114761847f8eSopenharmony_ci
114861847f8eSopenharmony_ci  /**
114961847f8eSopenharmony_ci   * Called when setting whether to display step size.
115061847f8eSopenharmony_ci   *
115161847f8eSopenharmony_ci   * @param { boolean } value
115261847f8eSopenharmony_ci   * @returns { SliderAttribute }
115361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
115461847f8eSopenharmony_ci   * @since 7
115561847f8eSopenharmony_ci   */
115661847f8eSopenharmony_ci  /**
115761847f8eSopenharmony_ci   * Called when setting whether to display step size.
115861847f8eSopenharmony_ci   *
115961847f8eSopenharmony_ci   * @param { boolean } value
116061847f8eSopenharmony_ci   * @returns { SliderAttribute }
116161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
116261847f8eSopenharmony_ci   * @form
116361847f8eSopenharmony_ci   * @since 9
116461847f8eSopenharmony_ci   */
116561847f8eSopenharmony_ci  /**
116661847f8eSopenharmony_ci   * Called when setting whether to display step size.
116761847f8eSopenharmony_ci   *
116861847f8eSopenharmony_ci   * @param { boolean } value
116961847f8eSopenharmony_ci   * @returns { SliderAttribute }
117061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
117161847f8eSopenharmony_ci   * @crossplatform
117261847f8eSopenharmony_ci   * @form
117361847f8eSopenharmony_ci   * @since 10
117461847f8eSopenharmony_ci   */
117561847f8eSopenharmony_ci  /**
117661847f8eSopenharmony_ci   * Called when setting whether to display step size.
117761847f8eSopenharmony_ci   *
117861847f8eSopenharmony_ci   * @param { boolean } value
117961847f8eSopenharmony_ci   * @returns { SliderAttribute }
118061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
118161847f8eSopenharmony_ci   * @crossplatform
118261847f8eSopenharmony_ci   * @form
118361847f8eSopenharmony_ci   * @atomicservice
118461847f8eSopenharmony_ci   * @since 11
118561847f8eSopenharmony_ci   */
118661847f8eSopenharmony_ci  showSteps(value: boolean): SliderAttribute;
118761847f8eSopenharmony_ci
118861847f8eSopenharmony_ci  /**
118961847f8eSopenharmony_ci   * Called when the percentage of bubble prompt is set when sliding.
119061847f8eSopenharmony_ci   *
119161847f8eSopenharmony_ci   * @param { boolean } value
119261847f8eSopenharmony_ci   * @returns { SliderAttribute }
119361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
119461847f8eSopenharmony_ci   * @since 7
119561847f8eSopenharmony_ci   */
119661847f8eSopenharmony_ci  /**
119761847f8eSopenharmony_ci   * Called when the percentage of bubble prompt is set when sliding.
119861847f8eSopenharmony_ci   *
119961847f8eSopenharmony_ci   * @param { boolean } value
120061847f8eSopenharmony_ci   * @returns { SliderAttribute }
120161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
120261847f8eSopenharmony_ci   * @form
120361847f8eSopenharmony_ci   * @since 9
120461847f8eSopenharmony_ci   */
120561847f8eSopenharmony_ci  /**
120661847f8eSopenharmony_ci   * Called when the percentage of bubble prompt is set when sliding.
120761847f8eSopenharmony_ci   *
120861847f8eSopenharmony_ci   * @param { boolean } value - Whether to display the bubble.
120961847f8eSopenharmony_ci   * @param { ResourceStr } content - Text content in the bubble. If the content is not specified, the current
121061847f8eSopenharmony_ci   *                                  percentage is displayed by default.
121161847f8eSopenharmony_ci   * @returns { SliderAttribute }
121261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
121361847f8eSopenharmony_ci   * @crossplatform
121461847f8eSopenharmony_ci   * @form
121561847f8eSopenharmony_ci   * @since 10
121661847f8eSopenharmony_ci   */
121761847f8eSopenharmony_ci  /**
121861847f8eSopenharmony_ci   * Called when the percentage of bubble prompt is set when sliding.
121961847f8eSopenharmony_ci   *
122061847f8eSopenharmony_ci   * @param { boolean } value - Whether to display the bubble.
122161847f8eSopenharmony_ci   * @param { ResourceStr } content - Text content in the bubble. If the content is not specified, the current
122261847f8eSopenharmony_ci   *                                  percentage is displayed by default.
122361847f8eSopenharmony_ci   * @returns { SliderAttribute }
122461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
122561847f8eSopenharmony_ci   * @crossplatform
122661847f8eSopenharmony_ci   * @form
122761847f8eSopenharmony_ci   * @atomicservice
122861847f8eSopenharmony_ci   * @since 11
122961847f8eSopenharmony_ci   */
123061847f8eSopenharmony_ci  showTips(value: boolean, content?: ResourceStr): SliderAttribute;
123161847f8eSopenharmony_ci
123261847f8eSopenharmony_ci  /**
123361847f8eSopenharmony_ci   * Called when the thickness of track is set.
123461847f8eSopenharmony_ci   *
123561847f8eSopenharmony_ci   * @param { Length } value
123661847f8eSopenharmony_ci   * @returns { SliderAttribute }
123761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
123861847f8eSopenharmony_ci   * @since 8
123961847f8eSopenharmony_ci   */
124061847f8eSopenharmony_ci  /**
124161847f8eSopenharmony_ci   * Called when the thickness of track is set.
124261847f8eSopenharmony_ci   *
124361847f8eSopenharmony_ci   * @param { Length } value
124461847f8eSopenharmony_ci   * @returns { SliderAttribute }
124561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
124661847f8eSopenharmony_ci   * @form
124761847f8eSopenharmony_ci   * @since 9
124861847f8eSopenharmony_ci   */
124961847f8eSopenharmony_ci  /**
125061847f8eSopenharmony_ci   * Called when the thickness of track is set.
125161847f8eSopenharmony_ci   *
125261847f8eSopenharmony_ci   * @param { Length } value
125361847f8eSopenharmony_ci   * @returns { SliderAttribute }
125461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
125561847f8eSopenharmony_ci   * @crossplatform
125661847f8eSopenharmony_ci   * @form
125761847f8eSopenharmony_ci   * @since 10
125861847f8eSopenharmony_ci   */
125961847f8eSopenharmony_ci  /**
126061847f8eSopenharmony_ci   * Called when the thickness of track is set.
126161847f8eSopenharmony_ci   *
126261847f8eSopenharmony_ci   * @param { Length } value
126361847f8eSopenharmony_ci   * @returns { SliderAttribute }
126461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
126561847f8eSopenharmony_ci   * @crossplatform
126661847f8eSopenharmony_ci   * @form
126761847f8eSopenharmony_ci   * @atomicservice
126861847f8eSopenharmony_ci   * @since 11
126961847f8eSopenharmony_ci   */
127061847f8eSopenharmony_ci  trackThickness(value: Length): SliderAttribute;
127161847f8eSopenharmony_ci
127261847f8eSopenharmony_ci  /**
127361847f8eSopenharmony_ci   * Called when the selection value changes.
127461847f8eSopenharmony_ci   *
127561847f8eSopenharmony_ci   * @param { function } callback
127661847f8eSopenharmony_ci   * @returns { SliderAttribute }
127761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
127861847f8eSopenharmony_ci   * @since 7
127961847f8eSopenharmony_ci   */
128061847f8eSopenharmony_ci  /**
128161847f8eSopenharmony_ci   * Called when the selection value changes.
128261847f8eSopenharmony_ci   *
128361847f8eSopenharmony_ci   * @param { function } callback
128461847f8eSopenharmony_ci   * @returns { SliderAttribute }
128561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
128661847f8eSopenharmony_ci   * @form
128761847f8eSopenharmony_ci   * @since 9
128861847f8eSopenharmony_ci   */
128961847f8eSopenharmony_ci  /**
129061847f8eSopenharmony_ci   * Called when the selection value changes.
129161847f8eSopenharmony_ci   *
129261847f8eSopenharmony_ci   * @param { function } callback
129361847f8eSopenharmony_ci   * @returns { SliderAttribute }
129461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
129561847f8eSopenharmony_ci   * @crossplatform
129661847f8eSopenharmony_ci   * @form
129761847f8eSopenharmony_ci   * @since 10
129861847f8eSopenharmony_ci   */
129961847f8eSopenharmony_ci  /**
130061847f8eSopenharmony_ci   * Called when the selection value changes.
130161847f8eSopenharmony_ci   *
130261847f8eSopenharmony_ci   * @param { function } callback
130361847f8eSopenharmony_ci   * @returns { SliderAttribute }
130461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
130561847f8eSopenharmony_ci   * @crossplatform
130661847f8eSopenharmony_ci   * @form
130761847f8eSopenharmony_ci   * @atomicservice
130861847f8eSopenharmony_ci   * @since 11
130961847f8eSopenharmony_ci   */
131061847f8eSopenharmony_ci  onChange(callback: (value: number, mode: SliderChangeMode) => void): SliderAttribute;
131161847f8eSopenharmony_ci
131261847f8eSopenharmony_ci  /**
131361847f8eSopenharmony_ci   * Called when the border color of block is set.
131461847f8eSopenharmony_ci   *
131561847f8eSopenharmony_ci   * @param { ResourceColor } value - the border color of block.
131661847f8eSopenharmony_ci   * @returns { SliderAttribute }
131761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
131861847f8eSopenharmony_ci   * @crossplatform
131961847f8eSopenharmony_ci   * @since 10
132061847f8eSopenharmony_ci   */
132161847f8eSopenharmony_ci  /**
132261847f8eSopenharmony_ci   * Called when the border color of block is set.
132361847f8eSopenharmony_ci   *
132461847f8eSopenharmony_ci   * @param { ResourceColor } value - the border color of block.
132561847f8eSopenharmony_ci   * @returns { SliderAttribute }
132661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
132761847f8eSopenharmony_ci   * @crossplatform
132861847f8eSopenharmony_ci   * @atomicservice
132961847f8eSopenharmony_ci   * @since 11
133061847f8eSopenharmony_ci   */
133161847f8eSopenharmony_ci  blockBorderColor(value: ResourceColor): SliderAttribute;
133261847f8eSopenharmony_ci
133361847f8eSopenharmony_ci  /**
133461847f8eSopenharmony_ci   * Called when the border width of block is set.
133561847f8eSopenharmony_ci   *
133661847f8eSopenharmony_ci   * @param { Length } value - the border width of block.
133761847f8eSopenharmony_ci   * @returns { SliderAttribute }
133861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
133961847f8eSopenharmony_ci   * @crossplatform
134061847f8eSopenharmony_ci   * @since 10
134161847f8eSopenharmony_ci   */
134261847f8eSopenharmony_ci  /**
134361847f8eSopenharmony_ci   * Called when the border width of block is set.
134461847f8eSopenharmony_ci   *
134561847f8eSopenharmony_ci   * @param { Length } value - the border width of block.
134661847f8eSopenharmony_ci   * @returns { SliderAttribute }
134761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
134861847f8eSopenharmony_ci   * @crossplatform
134961847f8eSopenharmony_ci   * @atomicservice
135061847f8eSopenharmony_ci   * @since 11
135161847f8eSopenharmony_ci   */
135261847f8eSopenharmony_ci  blockBorderWidth(value: Length): SliderAttribute;
135361847f8eSopenharmony_ci
135461847f8eSopenharmony_ci  /**
135561847f8eSopenharmony_ci   * Called when the color of step is set.
135661847f8eSopenharmony_ci   *
135761847f8eSopenharmony_ci   * @param { ResourceColor } value - the color of step.
135861847f8eSopenharmony_ci   * @returns { SliderAttribute }
135961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
136061847f8eSopenharmony_ci   * @crossplatform
136161847f8eSopenharmony_ci   * @since 10
136261847f8eSopenharmony_ci   */
136361847f8eSopenharmony_ci  /**
136461847f8eSopenharmony_ci   * Called when the color of step is set.
136561847f8eSopenharmony_ci   *
136661847f8eSopenharmony_ci   * @param { ResourceColor } value - the color of step.
136761847f8eSopenharmony_ci   * @returns { SliderAttribute }
136861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
136961847f8eSopenharmony_ci   * @crossplatform
137061847f8eSopenharmony_ci   * @atomicservice
137161847f8eSopenharmony_ci   * @since 11
137261847f8eSopenharmony_ci   */
137361847f8eSopenharmony_ci  stepColor(value: ResourceColor): SliderAttribute;
137461847f8eSopenharmony_ci
137561847f8eSopenharmony_ci  /**
137661847f8eSopenharmony_ci   * Called when the radius of track border is set.
137761847f8eSopenharmony_ci   *
137861847f8eSopenharmony_ci   * @param { Length } value - the radius of track border.
137961847f8eSopenharmony_ci   * @returns { SliderAttribute }
138061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
138161847f8eSopenharmony_ci   * @crossplatform
138261847f8eSopenharmony_ci   * @since 10
138361847f8eSopenharmony_ci   */
138461847f8eSopenharmony_ci  /**
138561847f8eSopenharmony_ci   * Called when the radius of track border is set.
138661847f8eSopenharmony_ci   *
138761847f8eSopenharmony_ci   * @param { Length } value - the radius of track border.
138861847f8eSopenharmony_ci   * @returns { SliderAttribute }
138961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
139061847f8eSopenharmony_ci   * @crossplatform
139161847f8eSopenharmony_ci   * @atomicservice
139261847f8eSopenharmony_ci   * @since 11
139361847f8eSopenharmony_ci   */
139461847f8eSopenharmony_ci  trackBorderRadius(value: Length): SliderAttribute;
139561847f8eSopenharmony_ci
139661847f8eSopenharmony_ci  /**
139761847f8eSopenharmony_ci   * Called when the radius of selected part is set.
139861847f8eSopenharmony_ci   *
139961847f8eSopenharmony_ci   * @param { Dimension } value - the radius of selected part.
140061847f8eSopenharmony_ci   * @returns { SliderAttribute }
140161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
140261847f8eSopenharmony_ci   * @crossplatform
140361847f8eSopenharmony_ci   * @atomicservice
140461847f8eSopenharmony_ci   * @since 12
140561847f8eSopenharmony_ci   */
140661847f8eSopenharmony_ci    selectedBorderRadius(value: Dimension): SliderAttribute;
140761847f8eSopenharmony_ci  
140861847f8eSopenharmony_ci  /**
140961847f8eSopenharmony_ci   * Called when the size of block is set.
141061847f8eSopenharmony_ci   *
141161847f8eSopenharmony_ci   * @param { SizeOptions } value - the size of block.
141261847f8eSopenharmony_ci   * @returns { SliderAttribute }
141361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
141461847f8eSopenharmony_ci   * @crossplatform
141561847f8eSopenharmony_ci   * @since 10
141661847f8eSopenharmony_ci   */
141761847f8eSopenharmony_ci  /**
141861847f8eSopenharmony_ci   * Called when the size of block is set.
141961847f8eSopenharmony_ci   *
142061847f8eSopenharmony_ci   * @param { SizeOptions } value - the size of block.
142161847f8eSopenharmony_ci   * @returns { SliderAttribute }
142261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
142361847f8eSopenharmony_ci   * @crossplatform
142461847f8eSopenharmony_ci   * @atomicservice
142561847f8eSopenharmony_ci   * @since 11
142661847f8eSopenharmony_ci   */
142761847f8eSopenharmony_ci  blockSize(value: SizeOptions): SliderAttribute;
142861847f8eSopenharmony_ci
142961847f8eSopenharmony_ci  /**
143061847f8eSopenharmony_ci   * Called when the style of block is set.
143161847f8eSopenharmony_ci   *
143261847f8eSopenharmony_ci   * @param { SliderBlockStyle } value - the style of block.
143361847f8eSopenharmony_ci   * @returns { SliderAttribute }
143461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
143561847f8eSopenharmony_ci   * @crossplatform
143661847f8eSopenharmony_ci   * @since 10
143761847f8eSopenharmony_ci   */
143861847f8eSopenharmony_ci  /**
143961847f8eSopenharmony_ci   * Called when the style of block is set.
144061847f8eSopenharmony_ci   *
144161847f8eSopenharmony_ci   * @param { SliderBlockStyle } value - the style of block.
144261847f8eSopenharmony_ci   * @returns { SliderAttribute }
144361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
144461847f8eSopenharmony_ci   * @crossplatform
144561847f8eSopenharmony_ci   * @atomicservice
144661847f8eSopenharmony_ci   * @since 11
144761847f8eSopenharmony_ci   */
144861847f8eSopenharmony_ci  blockStyle(value: SliderBlockStyle): SliderAttribute;
144961847f8eSopenharmony_ci
145061847f8eSopenharmony_ci  /**
145161847f8eSopenharmony_ci   * Called when the diameter of step is set.
145261847f8eSopenharmony_ci   *
145361847f8eSopenharmony_ci   * @param { Length } value - the diameter of step.
145461847f8eSopenharmony_ci   * @returns { SliderAttribute }
145561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
145661847f8eSopenharmony_ci   * @crossplatform
145761847f8eSopenharmony_ci   * @since 10
145861847f8eSopenharmony_ci   */
145961847f8eSopenharmony_ci  /**
146061847f8eSopenharmony_ci   * Called when the diameter of step is set.
146161847f8eSopenharmony_ci   *
146261847f8eSopenharmony_ci   * @param { Length } value - the diameter of step.
146361847f8eSopenharmony_ci   * @returns { SliderAttribute }
146461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
146561847f8eSopenharmony_ci   * @crossplatform
146661847f8eSopenharmony_ci   * @atomicservice
146761847f8eSopenharmony_ci   * @since 11
146861847f8eSopenharmony_ci   */
146961847f8eSopenharmony_ci  stepSize(value: Length): SliderAttribute;
147061847f8eSopenharmony_ci
147161847f8eSopenharmony_ci  /**
147261847f8eSopenharmony_ci   * Sets the interaction mode of the slider.
147361847f8eSopenharmony_ci   *
147461847f8eSopenharmony_ci   * @param { SliderInteraction } value
147561847f8eSopenharmony_ci   * @returns { SliderAttribute }
147661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
147761847f8eSopenharmony_ci   * @crossplatform
147861847f8eSopenharmony_ci   * @atomicservice
147961847f8eSopenharmony_ci   * @since 12
148061847f8eSopenharmony_ci   */
148161847f8eSopenharmony_ci  sliderInteractionMode(value: SliderInteraction): SliderAttribute;
148261847f8eSopenharmony_ci
148361847f8eSopenharmony_ci  /**
148461847f8eSopenharmony_ci   * Sets the min value when Slider response to drag event.
148561847f8eSopenharmony_ci   *
148661847f8eSopenharmony_ci   * @param { number } value
148761847f8eSopenharmony_ci   * @returns { SliderAttribute }
148861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
148961847f8eSopenharmony_ci   * @crossplatform
149061847f8eSopenharmony_ci   * @atomicservice
149161847f8eSopenharmony_ci   * @since 12
149261847f8eSopenharmony_ci   */
149361847f8eSopenharmony_ci  minResponsiveDistance(value: number): SliderAttribute;
149461847f8eSopenharmony_ci
149561847f8eSopenharmony_ci  /**
149661847f8eSopenharmony_ci   * Set the content modifier of slider.
149761847f8eSopenharmony_ci   *
149861847f8eSopenharmony_ci   * @param { ContentModifier<SliderConfiguration> } modifier - The content modifier of slider.
149961847f8eSopenharmony_ci   * @returns { SliderAttribute }
150061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
150161847f8eSopenharmony_ci   * @crossplatform
150261847f8eSopenharmony_ci   * @atomicservice
150361847f8eSopenharmony_ci   * @since 12
150461847f8eSopenharmony_ci   */
150561847f8eSopenharmony_ci  contentModifier(modifier: ContentModifier<SliderConfiguration>): SliderAttribute;
150661847f8eSopenharmony_ci
150761847f8eSopenharmony_ci  /**
150861847f8eSopenharmony_ci   * Set the valid slidable range.
150961847f8eSopenharmony_ci   *
151061847f8eSopenharmony_ci   * @param { SlideRange } value
151161847f8eSopenharmony_ci   * @returns { SliderAttribute }
151261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
151361847f8eSopenharmony_ci   * @crossplatform
151461847f8eSopenharmony_ci   * @atomicservice
151561847f8eSopenharmony_ci   * @since 12
151661847f8eSopenharmony_ci   */
151761847f8eSopenharmony_ci  slideRange(value: SlideRange): SliderAttribute;
151861847f8eSopenharmony_ci}
151961847f8eSopenharmony_ci
152061847f8eSopenharmony_ci/**
152161847f8eSopenharmony_ci * Defines Slider Component.
152261847f8eSopenharmony_ci *
152361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
152461847f8eSopenharmony_ci * @since 7
152561847f8eSopenharmony_ci */
152661847f8eSopenharmony_ci/**
152761847f8eSopenharmony_ci * Defines Slider Component.
152861847f8eSopenharmony_ci *
152961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
153061847f8eSopenharmony_ci * @form
153161847f8eSopenharmony_ci * @since 9
153261847f8eSopenharmony_ci */
153361847f8eSopenharmony_ci/**
153461847f8eSopenharmony_ci * Defines Slider Component.
153561847f8eSopenharmony_ci *
153661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
153761847f8eSopenharmony_ci * @crossplatform
153861847f8eSopenharmony_ci * @form
153961847f8eSopenharmony_ci * @since 10
154061847f8eSopenharmony_ci */
154161847f8eSopenharmony_ci/**
154261847f8eSopenharmony_ci * Defines Slider Component.
154361847f8eSopenharmony_ci *
154461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
154561847f8eSopenharmony_ci * @crossplatform
154661847f8eSopenharmony_ci * @form
154761847f8eSopenharmony_ci * @atomicservice
154861847f8eSopenharmony_ci * @since 11
154961847f8eSopenharmony_ci */
155061847f8eSopenharmony_cideclare const Slider: SliderInterface;
155161847f8eSopenharmony_ci
155261847f8eSopenharmony_ci/**
155361847f8eSopenharmony_ci * Defines Slider Component instance.
155461847f8eSopenharmony_ci *
155561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
155661847f8eSopenharmony_ci * @since 7
155761847f8eSopenharmony_ci */
155861847f8eSopenharmony_ci/**
155961847f8eSopenharmony_ci * Defines Slider Component instance.
156061847f8eSopenharmony_ci *
156161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
156261847f8eSopenharmony_ci * @form
156361847f8eSopenharmony_ci * @since 9
156461847f8eSopenharmony_ci */
156561847f8eSopenharmony_ci/**
156661847f8eSopenharmony_ci * Defines Slider Component instance.
156761847f8eSopenharmony_ci *
156861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
156961847f8eSopenharmony_ci * @crossplatform
157061847f8eSopenharmony_ci * @form
157161847f8eSopenharmony_ci * @since 10
157261847f8eSopenharmony_ci */
157361847f8eSopenharmony_ci/**
157461847f8eSopenharmony_ci * Defines Slider Component instance.
157561847f8eSopenharmony_ci *
157661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
157761847f8eSopenharmony_ci * @crossplatform
157861847f8eSopenharmony_ci * @form
157961847f8eSopenharmony_ci * @atomicservice
158061847f8eSopenharmony_ci * @since 11
158161847f8eSopenharmony_ci */
158261847f8eSopenharmony_cideclare const SliderInstance: SliderAttribute;
1583