161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit ArkUI
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ci/**
2261847f8eSopenharmony_ci * Provides the method of switching the cursor position.
2361847f8eSopenharmony_ci *
2461847f8eSopenharmony_ci * @extends TextContentControllerBase
2561847f8eSopenharmony_ci * @since 8
2661847f8eSopenharmony_ci */
2761847f8eSopenharmony_ci/**
2861847f8eSopenharmony_ci * Provides the method of switching the cursor position.
2961847f8eSopenharmony_ci *
3061847f8eSopenharmony_ci * @extends TextContentControllerBase
3161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
3261847f8eSopenharmony_ci * @crossplatform
3361847f8eSopenharmony_ci * @since 10
3461847f8eSopenharmony_ci */
3561847f8eSopenharmony_ci/**
3661847f8eSopenharmony_ci * Provides the method of switching the cursor position.
3761847f8eSopenharmony_ci *
3861847f8eSopenharmony_ci * @extends TextContentControllerBase
3961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
4061847f8eSopenharmony_ci * @crossplatform
4161847f8eSopenharmony_ci * @atomicservice
4261847f8eSopenharmony_ci * @since 11
4361847f8eSopenharmony_ci */
4461847f8eSopenharmony_cideclare class TextAreaController extends TextContentControllerBase {
4561847f8eSopenharmony_ci  /**
4661847f8eSopenharmony_ci   * constructor.
4761847f8eSopenharmony_ci   *
4861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
4961847f8eSopenharmony_ci   * @since 8
5061847f8eSopenharmony_ci   */
5161847f8eSopenharmony_ci  /**
5261847f8eSopenharmony_ci   * constructor.
5361847f8eSopenharmony_ci   *
5461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
5561847f8eSopenharmony_ci   * @crossplatform
5661847f8eSopenharmony_ci   * @since 10
5761847f8eSopenharmony_ci   */
5861847f8eSopenharmony_ci  /**
5961847f8eSopenharmony_ci   * constructor.
6061847f8eSopenharmony_ci   *
6161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6261847f8eSopenharmony_ci   * @crossplatform
6361847f8eSopenharmony_ci   * @atomicservice
6461847f8eSopenharmony_ci   * @since 11
6561847f8eSopenharmony_ci   */
6661847f8eSopenharmony_ci  constructor();
6761847f8eSopenharmony_ci
6861847f8eSopenharmony_ci  /**
6961847f8eSopenharmony_ci   * Called when the position of the insertion cursor is set.
7061847f8eSopenharmony_ci   *
7161847f8eSopenharmony_ci   * @param { number } value
7261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
7361847f8eSopenharmony_ci   * @since 8
7461847f8eSopenharmony_ci   */
7561847f8eSopenharmony_ci  /**
7661847f8eSopenharmony_ci   * Called when the position of the insertion cursor is set.
7761847f8eSopenharmony_ci   *
7861847f8eSopenharmony_ci   * @param { number } value
7961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
8061847f8eSopenharmony_ci   * @crossplatform
8161847f8eSopenharmony_ci   * @since 10
8261847f8eSopenharmony_ci   */
8361847f8eSopenharmony_ci  /**
8461847f8eSopenharmony_ci   * Called when the position of the insertion cursor is set.
8561847f8eSopenharmony_ci   *
8661847f8eSopenharmony_ci   * @param { number } value
8761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
8861847f8eSopenharmony_ci   * @crossplatform
8961847f8eSopenharmony_ci   * @atomicservice
9061847f8eSopenharmony_ci   * @since 11
9161847f8eSopenharmony_ci   */
9261847f8eSopenharmony_ci  caretPosition(value: number): void;
9361847f8eSopenharmony_ci
9461847f8eSopenharmony_ci  /**
9561847f8eSopenharmony_ci   * Text selection is achieved by specifying the start and end positions of the text.
9661847f8eSopenharmony_ci   *
9761847f8eSopenharmony_ci   * @param { number } selectionStart - The start position of the selected text.
9861847f8eSopenharmony_ci   * @param { number } selectionEnd - The end position of the selected text.
9961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10061847f8eSopenharmony_ci   * @crossplatform
10161847f8eSopenharmony_ci   * @since 10
10261847f8eSopenharmony_ci   */
10361847f8eSopenharmony_ci  /**
10461847f8eSopenharmony_ci   * Text selection is achieved by specifying the start and end positions of the text.
10561847f8eSopenharmony_ci   *
10661847f8eSopenharmony_ci   * @param { number } selectionStart - The start position of the selected text.
10761847f8eSopenharmony_ci   * @param { number } selectionEnd - The end position of the selected text.
10861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10961847f8eSopenharmony_ci   * @crossplatform
11061847f8eSopenharmony_ci   * @atomicservice
11161847f8eSopenharmony_ci   * @since 11
11261847f8eSopenharmony_ci   */
11361847f8eSopenharmony_ci  /**
11461847f8eSopenharmony_ci   * Text selection is achieved by specifying the start and end positions of the text.
11561847f8eSopenharmony_ci   *
11661847f8eSopenharmony_ci   * @param { number } selectionStart - The start position of the selected text.
11761847f8eSopenharmony_ci   * @param { number } selectionEnd - The end position of the selected text.
11861847f8eSopenharmony_ci   * @param { SelectionOptions } [options] - Indicates the options of the text selection.
11961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
12061847f8eSopenharmony_ci   * @crossplatform
12161847f8eSopenharmony_ci   * @atomicservice
12261847f8eSopenharmony_ci   * @since 12
12361847f8eSopenharmony_ci   */
12461847f8eSopenharmony_ci  setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void;
12561847f8eSopenharmony_ci
12661847f8eSopenharmony_ci  /**
12761847f8eSopenharmony_ci   * Exit edit state.
12861847f8eSopenharmony_ci   *
12961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
13061847f8eSopenharmony_ci   * @crossplatform
13161847f8eSopenharmony_ci   * @since 10
13261847f8eSopenharmony_ci   */
13361847f8eSopenharmony_ci  /**
13461847f8eSopenharmony_ci   * Exit edit state.
13561847f8eSopenharmony_ci   *
13661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
13761847f8eSopenharmony_ci   * @crossplatform
13861847f8eSopenharmony_ci   * @atomicservice
13961847f8eSopenharmony_ci   * @since 11
14061847f8eSopenharmony_ci   */
14161847f8eSopenharmony_ci  stopEditing(): void;
14261847f8eSopenharmony_ci}
14361847f8eSopenharmony_ci
14461847f8eSopenharmony_ci/**
14561847f8eSopenharmony_ci * Defines the options of TextArea.
14661847f8eSopenharmony_ci *
14761847f8eSopenharmony_ci * @interface TextAreaOptions
14861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
14961847f8eSopenharmony_ci * @since 7
15061847f8eSopenharmony_ci */
15161847f8eSopenharmony_ci/**
15261847f8eSopenharmony_ci * Defines the options of TextArea.
15361847f8eSopenharmony_ci *
15461847f8eSopenharmony_ci * @interface TextAreaOptions
15561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
15661847f8eSopenharmony_ci * @crossplatform
15761847f8eSopenharmony_ci * @since 10
15861847f8eSopenharmony_ci */
15961847f8eSopenharmony_ci/**
16061847f8eSopenharmony_ci * Defines the options of TextArea.
16161847f8eSopenharmony_ci *
16261847f8eSopenharmony_ci * @interface TextAreaOptions
16361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
16461847f8eSopenharmony_ci * @crossplatform
16561847f8eSopenharmony_ci * @atomicservice
16661847f8eSopenharmony_ci * @since 11
16761847f8eSopenharmony_ci */
16861847f8eSopenharmony_cideclare interface TextAreaOptions {
16961847f8eSopenharmony_ci  /**
17061847f8eSopenharmony_ci   * The place holder text string.
17161847f8eSopenharmony_ci   *
17261847f8eSopenharmony_ci   * @type { ?ResourceStr }
17361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
17461847f8eSopenharmony_ci   * @since 7
17561847f8eSopenharmony_ci   */
17661847f8eSopenharmony_ci  /**
17761847f8eSopenharmony_ci   * The place holder text string.
17861847f8eSopenharmony_ci   *
17961847f8eSopenharmony_ci   * @type { ?ResourceStr }
18061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18161847f8eSopenharmony_ci   * @crossplatform
18261847f8eSopenharmony_ci   * @since 10
18361847f8eSopenharmony_ci   */
18461847f8eSopenharmony_ci  /**
18561847f8eSopenharmony_ci   * The place holder text string.
18661847f8eSopenharmony_ci   *
18761847f8eSopenharmony_ci   * @type { ?ResourceStr }
18861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18961847f8eSopenharmony_ci   * @crossplatform
19061847f8eSopenharmony_ci   * @atomicservice
19161847f8eSopenharmony_ci   * @since 11
19261847f8eSopenharmony_ci   */
19361847f8eSopenharmony_ci  placeholder?: ResourceStr;
19461847f8eSopenharmony_ci
19561847f8eSopenharmony_ci  /**
19661847f8eSopenharmony_ci   * Sets the current value of TextArea.
19761847f8eSopenharmony_ci   *
19861847f8eSopenharmony_ci   * @type { ?ResourceStr }
19961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
20061847f8eSopenharmony_ci   * @since 7
20161847f8eSopenharmony_ci   */
20261847f8eSopenharmony_ci  /**
20361847f8eSopenharmony_ci   * Sets the current value of TextArea.
20461847f8eSopenharmony_ci   *
20561847f8eSopenharmony_ci   * @type { ?ResourceStr }
20661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
20761847f8eSopenharmony_ci   * @crossplatform
20861847f8eSopenharmony_ci   * @since 10
20961847f8eSopenharmony_ci   */
21061847f8eSopenharmony_ci  /**
21161847f8eSopenharmony_ci   * Sets the current value of TextArea.
21261847f8eSopenharmony_ci   *
21361847f8eSopenharmony_ci   * @type { ?ResourceStr }
21461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
21561847f8eSopenharmony_ci   * @crossplatform
21661847f8eSopenharmony_ci   * @atomicservice
21761847f8eSopenharmony_ci   * @since 11
21861847f8eSopenharmony_ci   */
21961847f8eSopenharmony_ci  text?: ResourceStr;
22061847f8eSopenharmony_ci
22161847f8eSopenharmony_ci  /**
22261847f8eSopenharmony_ci   * Called when the position of the insertion cursor is set.
22361847f8eSopenharmony_ci   *
22461847f8eSopenharmony_ci   * @type { ?TextAreaController }
22561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
22661847f8eSopenharmony_ci   * @since 8
22761847f8eSopenharmony_ci   */
22861847f8eSopenharmony_ci  /**
22961847f8eSopenharmony_ci   * Called when the position of the insertion cursor is set.
23061847f8eSopenharmony_ci   *
23161847f8eSopenharmony_ci   * @type { ?TextAreaController }
23261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
23361847f8eSopenharmony_ci   * @crossplatform
23461847f8eSopenharmony_ci   * @since 10
23561847f8eSopenharmony_ci   */
23661847f8eSopenharmony_ci  /**
23761847f8eSopenharmony_ci   * Called when the position of the insertion cursor is set.
23861847f8eSopenharmony_ci   *
23961847f8eSopenharmony_ci   * @type { ?TextAreaController }
24061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
24161847f8eSopenharmony_ci   * @crossplatform
24261847f8eSopenharmony_ci   * @atomicservice
24361847f8eSopenharmony_ci   * @since 11
24461847f8eSopenharmony_ci   */
24561847f8eSopenharmony_ci  controller?: TextAreaController;
24661847f8eSopenharmony_ci}
24761847f8eSopenharmony_ci
24861847f8eSopenharmony_ci/**
24961847f8eSopenharmony_ci * Provides an interface for the multi-line text input component.
25061847f8eSopenharmony_ci *
25161847f8eSopenharmony_ci * @interface TextAreaInterface
25261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
25361847f8eSopenharmony_ci * @since 7
25461847f8eSopenharmony_ci */
25561847f8eSopenharmony_ci/**
25661847f8eSopenharmony_ci * Provides an interface for the multi-line text input component.
25761847f8eSopenharmony_ci *
25861847f8eSopenharmony_ci * @interface TextAreaInterface
25961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
26061847f8eSopenharmony_ci * @crossplatform
26161847f8eSopenharmony_ci * @since 10
26261847f8eSopenharmony_ci */
26361847f8eSopenharmony_ci/**
26461847f8eSopenharmony_ci * Provides an interface for the multi-line text input component.
26561847f8eSopenharmony_ci *
26661847f8eSopenharmony_ci * @interface TextAreaInterface
26761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
26861847f8eSopenharmony_ci * @crossplatform
26961847f8eSopenharmony_ci * @atomicservice
27061847f8eSopenharmony_ci * @since 11
27161847f8eSopenharmony_ci */
27261847f8eSopenharmony_ciinterface TextAreaInterface {
27361847f8eSopenharmony_ci  /**
27461847f8eSopenharmony_ci   * Called when writing multiple lines of text.
27561847f8eSopenharmony_ci   *
27661847f8eSopenharmony_ci   * @param { TextAreaOptions } value
27761847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
27861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
27961847f8eSopenharmony_ci   * @since 7
28061847f8eSopenharmony_ci   */
28161847f8eSopenharmony_ci  /**
28261847f8eSopenharmony_ci   * Called when writing multiple lines of text.
28361847f8eSopenharmony_ci   *
28461847f8eSopenharmony_ci   * @param { TextAreaOptions } value
28561847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
28661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
28761847f8eSopenharmony_ci   * @crossplatform
28861847f8eSopenharmony_ci   * @since 10
28961847f8eSopenharmony_ci   */
29061847f8eSopenharmony_ci  /**
29161847f8eSopenharmony_ci   * Called when writing multiple lines of text.
29261847f8eSopenharmony_ci   *
29361847f8eSopenharmony_ci   * @param { TextAreaOptions } value
29461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
29561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
29661847f8eSopenharmony_ci   * @crossplatform
29761847f8eSopenharmony_ci   * @atomicservice
29861847f8eSopenharmony_ci   * @since 11
29961847f8eSopenharmony_ci   */
30061847f8eSopenharmony_ci  (value?: TextAreaOptions): TextAreaAttribute;
30161847f8eSopenharmony_ci}
30261847f8eSopenharmony_ci
30361847f8eSopenharmony_ci/**
30461847f8eSopenharmony_ci * Declare the type of input box
30561847f8eSopenharmony_ci *
30661847f8eSopenharmony_ci * @enum { number }
30761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
30861847f8eSopenharmony_ci * @crossplatform
30961847f8eSopenharmony_ci * @since 11
31061847f8eSopenharmony_ci */
31161847f8eSopenharmony_ci/**
31261847f8eSopenharmony_ci * Declare the type of input box
31361847f8eSopenharmony_ci *
31461847f8eSopenharmony_ci * @enum { number }
31561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
31661847f8eSopenharmony_ci * @crossplatform
31761847f8eSopenharmony_ci * @atomicservice
31861847f8eSopenharmony_ci * @since 12
31961847f8eSopenharmony_ci */
32061847f8eSopenharmony_cideclare enum TextAreaType {
32161847f8eSopenharmony_ci  /**
32261847f8eSopenharmony_ci   * Basic input mode.
32361847f8eSopenharmony_ci   *
32461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
32561847f8eSopenharmony_ci   * @crossplatform
32661847f8eSopenharmony_ci   * @since 11
32761847f8eSopenharmony_ci   */
32861847f8eSopenharmony_ci  /**
32961847f8eSopenharmony_ci   * Basic input mode.
33061847f8eSopenharmony_ci   *
33161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
33261847f8eSopenharmony_ci   * @crossplatform
33361847f8eSopenharmony_ci   * @atomicservice
33461847f8eSopenharmony_ci   * @since 12
33561847f8eSopenharmony_ci   */
33661847f8eSopenharmony_ci  NORMAL = 0,
33761847f8eSopenharmony_ci
33861847f8eSopenharmony_ci  /**
33961847f8eSopenharmony_ci   * Pure digital input mode.
34061847f8eSopenharmony_ci   *
34161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
34261847f8eSopenharmony_ci   * @crossplatform
34361847f8eSopenharmony_ci   * @since 11
34461847f8eSopenharmony_ci   */
34561847f8eSopenharmony_ci  /**
34661847f8eSopenharmony_ci   * Pure digital input mode.
34761847f8eSopenharmony_ci   *
34861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
34961847f8eSopenharmony_ci   * @crossplatform
35061847f8eSopenharmony_ci   * @atomicservice
35161847f8eSopenharmony_ci   * @since 12
35261847f8eSopenharmony_ci   */
35361847f8eSopenharmony_ci  NUMBER = 2,
35461847f8eSopenharmony_ci
35561847f8eSopenharmony_ci  /**
35661847f8eSopenharmony_ci   * Phone number entry mode.
35761847f8eSopenharmony_ci   *
35861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35961847f8eSopenharmony_ci   * @crossplatform
36061847f8eSopenharmony_ci   * @since 11
36161847f8eSopenharmony_ci   */
36261847f8eSopenharmony_ci  /**
36361847f8eSopenharmony_ci   * Phone number entry mode.
36461847f8eSopenharmony_ci   *
36561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
36661847f8eSopenharmony_ci   * @crossplatform
36761847f8eSopenharmony_ci   * @atomicservice
36861847f8eSopenharmony_ci   * @since 12
36961847f8eSopenharmony_ci   */
37061847f8eSopenharmony_ci  PHONE_NUMBER = 3,
37161847f8eSopenharmony_ci
37261847f8eSopenharmony_ci  /**
37361847f8eSopenharmony_ci   * E-mail address input mode.
37461847f8eSopenharmony_ci   *
37561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
37661847f8eSopenharmony_ci   * @crossplatform
37761847f8eSopenharmony_ci   * @since 11
37861847f8eSopenharmony_ci   */
37961847f8eSopenharmony_ci  /**
38061847f8eSopenharmony_ci   * E-mail address input mode.
38161847f8eSopenharmony_ci   *
38261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
38361847f8eSopenharmony_ci   * @crossplatform
38461847f8eSopenharmony_ci   * @atomicservice
38561847f8eSopenharmony_ci   * @since 12
38661847f8eSopenharmony_ci   */
38761847f8eSopenharmony_ci  EMAIL = 5,
38861847f8eSopenharmony_ci
38961847f8eSopenharmony_ci  /**
39061847f8eSopenharmony_ci   * Number decimal entry mode.
39161847f8eSopenharmony_ci   *
39261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
39361847f8eSopenharmony_ci   * @crossplatform
39461847f8eSopenharmony_ci   * @atomicservice
39561847f8eSopenharmony_ci   * @since 12
39661847f8eSopenharmony_ci   */
39761847f8eSopenharmony_ci  NUMBER_DECIMAL = 12,
39861847f8eSopenharmony_ci
39961847f8eSopenharmony_ci  /**
40061847f8eSopenharmony_ci   * URL entry mode.
40161847f8eSopenharmony_ci   *
40261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
40361847f8eSopenharmony_ci   * @crossplatform
40461847f8eSopenharmony_ci   * @atomicservice
40561847f8eSopenharmony_ci   * @since 12
40661847f8eSopenharmony_ci   */
40761847f8eSopenharmony_ci  URL = 13,
40861847f8eSopenharmony_ci}
40961847f8eSopenharmony_ci
41061847f8eSopenharmony_ci/**
41161847f8eSopenharmony_ci * Declare the content type of input box
41261847f8eSopenharmony_ci *
41361847f8eSopenharmony_ci * @enum { number }
41461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
41561847f8eSopenharmony_ci * @atomicservice
41661847f8eSopenharmony_ci * @since 12
41761847f8eSopenharmony_ci */
41861847f8eSopenharmony_cideclare enum ContentType {
41961847f8eSopenharmony_ci  /**
42061847f8eSopenharmony_ci   * User name content type.
42161847f8eSopenharmony_ci   *
42261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
42361847f8eSopenharmony_ci   * @atomicservice
42461847f8eSopenharmony_ci   * @since 12
42561847f8eSopenharmony_ci   */
42661847f8eSopenharmony_ci  USER_NAME = 0,
42761847f8eSopenharmony_ci
42861847f8eSopenharmony_ci  /**
42961847f8eSopenharmony_ci   * Password content type.
43061847f8eSopenharmony_ci   *
43161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
43261847f8eSopenharmony_ci   * @atomicservice
43361847f8eSopenharmony_ci   * @since 12
43461847f8eSopenharmony_ci   */
43561847f8eSopenharmony_ci  PASSWORD = 1,
43661847f8eSopenharmony_ci
43761847f8eSopenharmony_ci  /**
43861847f8eSopenharmony_ci   * New password content type.
43961847f8eSopenharmony_ci   *
44061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
44161847f8eSopenharmony_ci   * @atomicservice
44261847f8eSopenharmony_ci   * @since 12
44361847f8eSopenharmony_ci   */
44461847f8eSopenharmony_ci  NEW_PASSWORD = 2,
44561847f8eSopenharmony_ci
44661847f8eSopenharmony_ci  /**
44761847f8eSopenharmony_ci   * Full street address content type.
44861847f8eSopenharmony_ci   *
44961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
45061847f8eSopenharmony_ci   * @atomicservice
45161847f8eSopenharmony_ci   * @since 12
45261847f8eSopenharmony_ci   */
45361847f8eSopenharmony_ci  FULL_STREET_ADDRESS = 3,
45461847f8eSopenharmony_ci
45561847f8eSopenharmony_ci  /**
45661847f8eSopenharmony_ci   * House number content type.
45761847f8eSopenharmony_ci   *
45861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
45961847f8eSopenharmony_ci   * @atomicservice
46061847f8eSopenharmony_ci   * @since 12
46161847f8eSopenharmony_ci   */
46261847f8eSopenharmony_ci  HOUSE_NUMBER = 4,
46361847f8eSopenharmony_ci
46461847f8eSopenharmony_ci  /**
46561847f8eSopenharmony_ci   * District address content type.
46661847f8eSopenharmony_ci   *
46761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
46861847f8eSopenharmony_ci   * @atomicservice
46961847f8eSopenharmony_ci   * @since 12
47061847f8eSopenharmony_ci   */
47161847f8eSopenharmony_ci  DISTRICT_ADDRESS = 5,
47261847f8eSopenharmony_ci
47361847f8eSopenharmony_ci  /**
47461847f8eSopenharmony_ci   * City address content type.
47561847f8eSopenharmony_ci   *
47661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
47761847f8eSopenharmony_ci   * @atomicservice
47861847f8eSopenharmony_ci   * @since 12
47961847f8eSopenharmony_ci   */
48061847f8eSopenharmony_ci  CITY_ADDRESS = 6,
48161847f8eSopenharmony_ci
48261847f8eSopenharmony_ci  /**
48361847f8eSopenharmony_ci   * Province address content type.
48461847f8eSopenharmony_ci   *
48561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
48661847f8eSopenharmony_ci   * @atomicservice
48761847f8eSopenharmony_ci   * @since 12
48861847f8eSopenharmony_ci   */
48961847f8eSopenharmony_ci  PROVINCE_ADDRESS = 7,
49061847f8eSopenharmony_ci
49161847f8eSopenharmony_ci  /**
49261847f8eSopenharmony_ci   * Country address content type.
49361847f8eSopenharmony_ci   *
49461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
49561847f8eSopenharmony_ci   * @atomicservice
49661847f8eSopenharmony_ci   * @since 12
49761847f8eSopenharmony_ci   */
49861847f8eSopenharmony_ci  COUNTRY_ADDRESS = 8,
49961847f8eSopenharmony_ci
50061847f8eSopenharmony_ci  /**
50161847f8eSopenharmony_ci   * Person full name content type.
50261847f8eSopenharmony_ci   *
50361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
50461847f8eSopenharmony_ci   * @atomicservice
50561847f8eSopenharmony_ci   * @since 12
50661847f8eSopenharmony_ci   */
50761847f8eSopenharmony_ci  PERSON_FULL_NAME = 9,
50861847f8eSopenharmony_ci
50961847f8eSopenharmony_ci  /**
51061847f8eSopenharmony_ci   * Person last name content type.
51161847f8eSopenharmony_ci   *
51261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
51361847f8eSopenharmony_ci   * @atomicservice
51461847f8eSopenharmony_ci   * @since 12
51561847f8eSopenharmony_ci   */
51661847f8eSopenharmony_ci  PERSON_LAST_NAME = 10,
51761847f8eSopenharmony_ci
51861847f8eSopenharmony_ci  /**
51961847f8eSopenharmony_ci   * Person first name content type.
52061847f8eSopenharmony_ci   *
52161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
52261847f8eSopenharmony_ci   * @atomicservice
52361847f8eSopenharmony_ci   * @since 12
52461847f8eSopenharmony_ci   */
52561847f8eSopenharmony_ci  PERSON_FIRST_NAME = 11,
52661847f8eSopenharmony_ci
52761847f8eSopenharmony_ci  /**
52861847f8eSopenharmony_ci   * Phone number content type.
52961847f8eSopenharmony_ci   *
53061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
53161847f8eSopenharmony_ci   * @atomicservice
53261847f8eSopenharmony_ci   * @since 12
53361847f8eSopenharmony_ci   */
53461847f8eSopenharmony_ci  PHONE_NUMBER = 12,
53561847f8eSopenharmony_ci
53661847f8eSopenharmony_ci  /**
53761847f8eSopenharmony_ci   * Phone country code content type.
53861847f8eSopenharmony_ci   *
53961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
54061847f8eSopenharmony_ci   * @atomicservice
54161847f8eSopenharmony_ci   * @since 12
54261847f8eSopenharmony_ci   */
54361847f8eSopenharmony_ci  PHONE_COUNTRY_CODE = 13,
54461847f8eSopenharmony_ci
54561847f8eSopenharmony_ci  /**
54661847f8eSopenharmony_ci   * Full phone number content type.
54761847f8eSopenharmony_ci   *
54861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
54961847f8eSopenharmony_ci   * @atomicservice
55061847f8eSopenharmony_ci   * @since 12
55161847f8eSopenharmony_ci   */
55261847f8eSopenharmony_ci  FULL_PHONE_NUMBER = 14,
55361847f8eSopenharmony_ci
55461847f8eSopenharmony_ci  /**
55561847f8eSopenharmony_ci   * Email address content type.
55661847f8eSopenharmony_ci   *
55761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
55861847f8eSopenharmony_ci   * @atomicservice
55961847f8eSopenharmony_ci   * @since 12
56061847f8eSopenharmony_ci   */
56161847f8eSopenharmony_ci  EMAIL_ADDRESS = 15,
56261847f8eSopenharmony_ci
56361847f8eSopenharmony_ci  /**
56461847f8eSopenharmony_ci   * Bank card number content type.
56561847f8eSopenharmony_ci   *
56661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
56761847f8eSopenharmony_ci   * @atomicservice
56861847f8eSopenharmony_ci   * @since 12
56961847f8eSopenharmony_ci   */
57061847f8eSopenharmony_ci  BANK_CARD_NUMBER = 16,
57161847f8eSopenharmony_ci
57261847f8eSopenharmony_ci  /**
57361847f8eSopenharmony_ci   * ID card number content type.
57461847f8eSopenharmony_ci   *
57561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
57661847f8eSopenharmony_ci   * @atomicservice
57761847f8eSopenharmony_ci   * @since 12
57861847f8eSopenharmony_ci   */
57961847f8eSopenharmony_ci  ID_CARD_NUMBER = 17,
58061847f8eSopenharmony_ci
58161847f8eSopenharmony_ci  /**
58261847f8eSopenharmony_ci   * Nickname content type.
58361847f8eSopenharmony_ci   *
58461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
58561847f8eSopenharmony_ci   * @atomicservice
58661847f8eSopenharmony_ci   * @since 12
58761847f8eSopenharmony_ci   */
58861847f8eSopenharmony_ci  NICKNAME = 23,
58961847f8eSopenharmony_ci
59061847f8eSopenharmony_ci  /**
59161847f8eSopenharmony_ci   * Detail info without street content type.
59261847f8eSopenharmony_ci   *
59361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
59461847f8eSopenharmony_ci   * @atomicservice
59561847f8eSopenharmony_ci   * @since 12
59661847f8eSopenharmony_ci   */
59761847f8eSopenharmony_ci  DETAIL_INFO_WITHOUT_STREET = 24,
59861847f8eSopenharmony_ci
59961847f8eSopenharmony_ci  /**
60061847f8eSopenharmony_ci   * Format address content type.
60161847f8eSopenharmony_ci   *
60261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
60361847f8eSopenharmony_ci   * @atomicservice
60461847f8eSopenharmony_ci   * @since 12
60561847f8eSopenharmony_ci   */
60661847f8eSopenharmony_ci  FORMAT_ADDRESS = 25
60761847f8eSopenharmony_ci}
60861847f8eSopenharmony_ci
60961847f8eSopenharmony_ci/**
61061847f8eSopenharmony_ci * Defines the attribute functions of TextArea.
61161847f8eSopenharmony_ci *
61261847f8eSopenharmony_ci * @extends CommonMethod<TextAreaAttribute>
61361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
61461847f8eSopenharmony_ci * @since 7
61561847f8eSopenharmony_ci */
61661847f8eSopenharmony_ci/**
61761847f8eSopenharmony_ci * Defines the attribute functions of TextArea.
61861847f8eSopenharmony_ci *
61961847f8eSopenharmony_ci * @extends CommonMethod<TextAreaAttribute>
62061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
62161847f8eSopenharmony_ci * @crossplatform
62261847f8eSopenharmony_ci * @since 10
62361847f8eSopenharmony_ci */
62461847f8eSopenharmony_ci/**
62561847f8eSopenharmony_ci * Defines the attribute functions of TextArea.
62661847f8eSopenharmony_ci *
62761847f8eSopenharmony_ci * @extends CommonMethod<TextAreaAttribute>
62861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
62961847f8eSopenharmony_ci * @crossplatform
63061847f8eSopenharmony_ci * @atomicservice
63161847f8eSopenharmony_ci * @since 11
63261847f8eSopenharmony_ci */
63361847f8eSopenharmony_cideclare class TextAreaAttribute extends CommonMethod<TextAreaAttribute> {
63461847f8eSopenharmony_ci  /**
63561847f8eSopenharmony_ci   * Called when the color of the placeholder is set.
63661847f8eSopenharmony_ci   *
63761847f8eSopenharmony_ci   * @param { ResourceColor } value
63861847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
63961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
64061847f8eSopenharmony_ci   * @since 7
64161847f8eSopenharmony_ci   */
64261847f8eSopenharmony_ci  /**
64361847f8eSopenharmony_ci   * Called when the color of the placeholder is set.
64461847f8eSopenharmony_ci   *
64561847f8eSopenharmony_ci   * @param { ResourceColor } value
64661847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
64761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
64861847f8eSopenharmony_ci   * @crossplatform
64961847f8eSopenharmony_ci   * @since 10
65061847f8eSopenharmony_ci   */
65161847f8eSopenharmony_ci  /**
65261847f8eSopenharmony_ci   * Called when the color of the placeholder is set.
65361847f8eSopenharmony_ci   *
65461847f8eSopenharmony_ci   * @param { ResourceColor } value
65561847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
65661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
65761847f8eSopenharmony_ci   * @crossplatform
65861847f8eSopenharmony_ci   * @atomicservice
65961847f8eSopenharmony_ci   * @since 11
66061847f8eSopenharmony_ci   */
66161847f8eSopenharmony_ci  placeholderColor(value: ResourceColor): TextAreaAttribute;
66261847f8eSopenharmony_ci
66361847f8eSopenharmony_ci  /**
66461847f8eSopenharmony_ci   * Called when the font property of the placeholder is set.
66561847f8eSopenharmony_ci   *
66661847f8eSopenharmony_ci   * @param { Font } value
66761847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
66861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
66961847f8eSopenharmony_ci   * @since 7
67061847f8eSopenharmony_ci   */
67161847f8eSopenharmony_ci  /**
67261847f8eSopenharmony_ci   * Called when the font property of the placeholder is set.
67361847f8eSopenharmony_ci   *
67461847f8eSopenharmony_ci   * @param { Font } value
67561847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
67661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
67761847f8eSopenharmony_ci   * @crossplatform
67861847f8eSopenharmony_ci   * @since 10
67961847f8eSopenharmony_ci   */
68061847f8eSopenharmony_ci  /**
68161847f8eSopenharmony_ci   * Called when the font property of the placeholder is set.
68261847f8eSopenharmony_ci   *
68361847f8eSopenharmony_ci   * @param { Font } value
68461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
68561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
68661847f8eSopenharmony_ci   * @crossplatform
68761847f8eSopenharmony_ci   * @atomicservice
68861847f8eSopenharmony_ci   * @since 11
68961847f8eSopenharmony_ci   */
69061847f8eSopenharmony_ci  placeholderFont(value: Font): TextAreaAttribute;
69161847f8eSopenharmony_ci
69261847f8eSopenharmony_ci  /**
69361847f8eSopenharmony_ci   * Called when the type of soft keyboard input button is set.
69461847f8eSopenharmony_ci   *
69561847f8eSopenharmony_ci   * @param { EnterKeyType } value the type of soft keyboard
69661847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
69761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
69861847f8eSopenharmony_ci   * @crossplatform
69961847f8eSopenharmony_ci   * @since 11
70061847f8eSopenharmony_ci   */
70161847f8eSopenharmony_ci  /**
70261847f8eSopenharmony_ci   * Called when the type of soft keyboard input button is set.
70361847f8eSopenharmony_ci   *
70461847f8eSopenharmony_ci   * @param { EnterKeyType } value the type of soft keyboard
70561847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
70661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
70761847f8eSopenharmony_ci   * @crossplatform
70861847f8eSopenharmony_ci   * @atomicservice
70961847f8eSopenharmony_ci   * @since 12
71061847f8eSopenharmony_ci   */
71161847f8eSopenharmony_ci  enterKeyType(value: EnterKeyType): TextAreaAttribute;
71261847f8eSopenharmony_ci
71361847f8eSopenharmony_ci  /**
71461847f8eSopenharmony_ci   * Called when the alignment of the contents of a multiline text box is set.
71561847f8eSopenharmony_ci   *
71661847f8eSopenharmony_ci   * @param { TextAlign } value
71761847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
71861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
71961847f8eSopenharmony_ci   * @since 7
72061847f8eSopenharmony_ci   */
72161847f8eSopenharmony_ci  /**
72261847f8eSopenharmony_ci   * Called when the alignment of the contents of a multiline text box is set.
72361847f8eSopenharmony_ci   *
72461847f8eSopenharmony_ci   * @param { TextAlign } value
72561847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
72661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
72761847f8eSopenharmony_ci   * @crossplatform
72861847f8eSopenharmony_ci   * @since 10
72961847f8eSopenharmony_ci   */
73061847f8eSopenharmony_ci  /**
73161847f8eSopenharmony_ci   * Called when the alignment of the contents of a multiline text box is set.
73261847f8eSopenharmony_ci   *
73361847f8eSopenharmony_ci   * @param { TextAlign } value
73461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
73561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
73661847f8eSopenharmony_ci   * @crossplatform
73761847f8eSopenharmony_ci   * @atomicservice
73861847f8eSopenharmony_ci   * @since 11
73961847f8eSopenharmony_ci   */
74061847f8eSopenharmony_ci  textAlign(value: TextAlign): TextAreaAttribute;
74161847f8eSopenharmony_ci
74261847f8eSopenharmony_ci  /**
74361847f8eSopenharmony_ci   * Called when the insertion cursor color is set.
74461847f8eSopenharmony_ci   *
74561847f8eSopenharmony_ci   * @param { ResourceColor } value
74661847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
74761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
74861847f8eSopenharmony_ci   * @since 7
74961847f8eSopenharmony_ci   */
75061847f8eSopenharmony_ci  /**
75161847f8eSopenharmony_ci   * Called when the insertion cursor color is set.
75261847f8eSopenharmony_ci   *
75361847f8eSopenharmony_ci   * @param { ResourceColor } value
75461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
75561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
75661847f8eSopenharmony_ci   * @crossplatform
75761847f8eSopenharmony_ci   * @since 10
75861847f8eSopenharmony_ci   */
75961847f8eSopenharmony_ci  /**
76061847f8eSopenharmony_ci   * Called when the insertion cursor color is set.
76161847f8eSopenharmony_ci   *
76261847f8eSopenharmony_ci   * @param { ResourceColor } value
76361847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
76461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
76561847f8eSopenharmony_ci   * @crossplatform
76661847f8eSopenharmony_ci   * @atomicservice
76761847f8eSopenharmony_ci   * @since 11
76861847f8eSopenharmony_ci   */
76961847f8eSopenharmony_ci  caretColor(value: ResourceColor): TextAreaAttribute;
77061847f8eSopenharmony_ci
77161847f8eSopenharmony_ci  /**
77261847f8eSopenharmony_ci   * Called when the font color is set.
77361847f8eSopenharmony_ci   *
77461847f8eSopenharmony_ci   * @param { ResourceColor } value
77561847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
77661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
77761847f8eSopenharmony_ci   * @since 7
77861847f8eSopenharmony_ci   */
77961847f8eSopenharmony_ci  /**
78061847f8eSopenharmony_ci   * Called when the font color is set.
78161847f8eSopenharmony_ci   *
78261847f8eSopenharmony_ci   * @param { ResourceColor } value
78361847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
78461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
78561847f8eSopenharmony_ci   * @crossplatform
78661847f8eSopenharmony_ci   * @since 10
78761847f8eSopenharmony_ci   */
78861847f8eSopenharmony_ci  /**
78961847f8eSopenharmony_ci   * Called when the font color is set.
79061847f8eSopenharmony_ci   *
79161847f8eSopenharmony_ci   * @param { ResourceColor } value
79261847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
79361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
79461847f8eSopenharmony_ci   * @crossplatform
79561847f8eSopenharmony_ci   * @atomicservice
79661847f8eSopenharmony_ci   * @since 11
79761847f8eSopenharmony_ci   */
79861847f8eSopenharmony_ci  fontColor(value: ResourceColor): TextAreaAttribute;
79961847f8eSopenharmony_ci
80061847f8eSopenharmony_ci  /**
80161847f8eSopenharmony_ci   * Called when the font size is set.
80261847f8eSopenharmony_ci   *
80361847f8eSopenharmony_ci   * @param { Length } value
80461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
80561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
80661847f8eSopenharmony_ci   * @since 7
80761847f8eSopenharmony_ci   */
80861847f8eSopenharmony_ci  /**
80961847f8eSopenharmony_ci   * Called when the font size is set.
81061847f8eSopenharmony_ci   *
81161847f8eSopenharmony_ci   * @param { Length } value
81261847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
81361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
81461847f8eSopenharmony_ci   * @crossplatform
81561847f8eSopenharmony_ci   * @since 10
81661847f8eSopenharmony_ci   */
81761847f8eSopenharmony_ci  /**
81861847f8eSopenharmony_ci   * Called when the font size is set.
81961847f8eSopenharmony_ci   *
82061847f8eSopenharmony_ci   * @param { Length } value
82161847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
82261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
82361847f8eSopenharmony_ci   * @crossplatform
82461847f8eSopenharmony_ci   * @atomicservice
82561847f8eSopenharmony_ci   * @since 11
82661847f8eSopenharmony_ci   */
82761847f8eSopenharmony_ci  fontSize(value: Length): TextAreaAttribute;
82861847f8eSopenharmony_ci
82961847f8eSopenharmony_ci  /**
83061847f8eSopenharmony_ci   * Called when the font style of a font is set.
83161847f8eSopenharmony_ci   *
83261847f8eSopenharmony_ci   * @param { FontStyle } value
83361847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
83461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
83561847f8eSopenharmony_ci   * @since 7
83661847f8eSopenharmony_ci   */
83761847f8eSopenharmony_ci  /**
83861847f8eSopenharmony_ci   * Called when the font style of a font is set.
83961847f8eSopenharmony_ci   *
84061847f8eSopenharmony_ci   * @param { FontStyle } value
84161847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
84261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
84361847f8eSopenharmony_ci   * @crossplatform
84461847f8eSopenharmony_ci   * @since 10
84561847f8eSopenharmony_ci   */
84661847f8eSopenharmony_ci  /**
84761847f8eSopenharmony_ci   * Called when the font style of a font is set.
84861847f8eSopenharmony_ci   *
84961847f8eSopenharmony_ci   * @param { FontStyle } value
85061847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
85161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
85261847f8eSopenharmony_ci   * @crossplatform
85361847f8eSopenharmony_ci   * @atomicservice
85461847f8eSopenharmony_ci   * @since 11
85561847f8eSopenharmony_ci   */
85661847f8eSopenharmony_ci  fontStyle(value: FontStyle): TextAreaAttribute;
85761847f8eSopenharmony_ci
85861847f8eSopenharmony_ci  /**
85961847f8eSopenharmony_ci   * Called when the font weight is set.
86061847f8eSopenharmony_ci   *
86161847f8eSopenharmony_ci   * @param { number | FontWeight | string } value
86261847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
86361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
86461847f8eSopenharmony_ci   * @since 7
86561847f8eSopenharmony_ci   */
86661847f8eSopenharmony_ci  /**
86761847f8eSopenharmony_ci   * Called when the font weight is set.
86861847f8eSopenharmony_ci   *
86961847f8eSopenharmony_ci   * @param { number | FontWeight | string } value
87061847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
87161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
87261847f8eSopenharmony_ci   * @crossplatform
87361847f8eSopenharmony_ci   * @since 10
87461847f8eSopenharmony_ci   */
87561847f8eSopenharmony_ci  /**
87661847f8eSopenharmony_ci   * Called when the font weight is set.
87761847f8eSopenharmony_ci   *
87861847f8eSopenharmony_ci   * @param { number | FontWeight | string } value
87961847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
88061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
88161847f8eSopenharmony_ci   * @crossplatform
88261847f8eSopenharmony_ci   * @atomicservice
88361847f8eSopenharmony_ci   * @since 11
88461847f8eSopenharmony_ci   */
88561847f8eSopenharmony_ci  fontWeight(value: number | FontWeight | string): TextAreaAttribute;
88661847f8eSopenharmony_ci
88761847f8eSopenharmony_ci  /**
88861847f8eSopenharmony_ci   * Called when the font list of text is set.
88961847f8eSopenharmony_ci   *
89061847f8eSopenharmony_ci   * @param { ResourceStr } value
89161847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
89261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
89361847f8eSopenharmony_ci   * @since 7
89461847f8eSopenharmony_ci   */
89561847f8eSopenharmony_ci  /**
89661847f8eSopenharmony_ci   * Called when the font list of text is set.
89761847f8eSopenharmony_ci   *
89861847f8eSopenharmony_ci   * @param { ResourceStr } value
89961847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
90061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
90161847f8eSopenharmony_ci   * @crossplatform
90261847f8eSopenharmony_ci   * @since 10
90361847f8eSopenharmony_ci   */
90461847f8eSopenharmony_ci  /**
90561847f8eSopenharmony_ci   * Called when the font list of text is set.
90661847f8eSopenharmony_ci   *
90761847f8eSopenharmony_ci   * @param { ResourceStr } value
90861847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
90961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
91061847f8eSopenharmony_ci   * @crossplatform
91161847f8eSopenharmony_ci   * @atomicservice
91261847f8eSopenharmony_ci   * @since 11
91361847f8eSopenharmony_ci   */
91461847f8eSopenharmony_ci  fontFamily(value: ResourceStr): TextAreaAttribute;
91561847f8eSopenharmony_ci
91661847f8eSopenharmony_ci  /**
91761847f8eSopenharmony_ci   * Called when the overflow mode of the font is set.
91861847f8eSopenharmony_ci   *
91961847f8eSopenharmony_ci   * @param { TextOverflow } value
92061847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
92161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
92261847f8eSopenharmony_ci   * @crossplatform
92361847f8eSopenharmony_ci   * @atomicservice
92461847f8eSopenharmony_ci   * @since 12
92561847f8eSopenharmony_ci   */
92661847f8eSopenharmony_ci  textOverflow(value: TextOverflow): TextAreaAttribute;
92761847f8eSopenharmony_ci
92861847f8eSopenharmony_ci  /**
92961847f8eSopenharmony_ci   * Specify the indentation of the first line in a text-block.
93061847f8eSopenharmony_ci   *
93161847f8eSopenharmony_ci   * @param { Dimension } value - The length of text indent.
93261847f8eSopenharmony_ci   * @returns { TextAreaAttribute } The attribute of the text.
93361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
93461847f8eSopenharmony_ci   * @crossplatform
93561847f8eSopenharmony_ci   * @atomicservice
93661847f8eSopenharmony_ci   * @since 12
93761847f8eSopenharmony_ci   */
93861847f8eSopenharmony_ci  textIndent(value: Dimension): TextAreaAttribute;
93961847f8eSopenharmony_ci
94061847f8eSopenharmony_ci  /**
94161847f8eSopenharmony_ci   * Called when the inputFilter of text is set.
94261847f8eSopenharmony_ci   *
94361847f8eSopenharmony_ci   * @param { ResourceStr } value
94461847f8eSopenharmony_ci   * @param { function } error
94561847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
94661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
94761847f8eSopenharmony_ci   * @since 8
94861847f8eSopenharmony_ci   */
94961847f8eSopenharmony_ci  /**
95061847f8eSopenharmony_ci   * Called when the inputFilter of text is set.
95161847f8eSopenharmony_ci   *
95261847f8eSopenharmony_ci   * @param { ResourceStr } value
95361847f8eSopenharmony_ci   * @param { function } error
95461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
95561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
95661847f8eSopenharmony_ci   * @crossplatform
95761847f8eSopenharmony_ci   * @since 10
95861847f8eSopenharmony_ci   */
95961847f8eSopenharmony_ci  /**
96061847f8eSopenharmony_ci   * Called when the inputFilter of text is set.
96161847f8eSopenharmony_ci   *
96261847f8eSopenharmony_ci   * @param { ResourceStr } value
96361847f8eSopenharmony_ci   * @param { function } error
96461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
96561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
96661847f8eSopenharmony_ci   * @crossplatform
96761847f8eSopenharmony_ci   * @atomicservice
96861847f8eSopenharmony_ci   * @since 11
96961847f8eSopenharmony_ci   */
97061847f8eSopenharmony_ci  inputFilter(value: ResourceStr, error?: (value: string) => void): TextAreaAttribute;
97161847f8eSopenharmony_ci
97261847f8eSopenharmony_ci  /**
97361847f8eSopenharmony_ci   * Define the caret style of the text input
97461847f8eSopenharmony_ci   *
97561847f8eSopenharmony_ci   * @param { CaretStyle } value
97661847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
97761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
97861847f8eSopenharmony_ci   * @crossplatform
97961847f8eSopenharmony_ci   * @atomicservice
98061847f8eSopenharmony_ci   * @since 12
98161847f8eSopenharmony_ci   */
98261847f8eSopenharmony_ci  caretStyle(value: CaretStyle): TextAreaAttribute;
98361847f8eSopenharmony_ci
98461847f8eSopenharmony_ci  /**
98561847f8eSopenharmony_ci   * Define the text selected background color of the text input.
98661847f8eSopenharmony_ci   *
98761847f8eSopenharmony_ci   * @param { ResourceColor } value
98861847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
98961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
99061847f8eSopenharmony_ci   * @crossplatform
99161847f8eSopenharmony_ci   * @atomicservice
99261847f8eSopenharmony_ci   * @since 12
99361847f8eSopenharmony_ci   */
99461847f8eSopenharmony_ci  selectedBackgroundColor(value: ResourceColor): TextAreaAttribute;
99561847f8eSopenharmony_ci
99661847f8eSopenharmony_ci  /**
99761847f8eSopenharmony_ci   * Called when submitted.
99861847f8eSopenharmony_ci   *
99961847f8eSopenharmony_ci   * @param { function } callback
100061847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
100161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
100261847f8eSopenharmony_ci   * @crossplatform
100361847f8eSopenharmony_ci   * @since 11
100461847f8eSopenharmony_ci   */
100561847f8eSopenharmony_ci  /**
100661847f8eSopenharmony_ci   * Called when submitted.
100761847f8eSopenharmony_ci   *
100861847f8eSopenharmony_ci   * @param { function } callback
100961847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
101061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
101161847f8eSopenharmony_ci   * @crossplatform
101261847f8eSopenharmony_ci   * @atomicservice
101361847f8eSopenharmony_ci   * @since 12
101461847f8eSopenharmony_ci   */
101561847f8eSopenharmony_ci  onSubmit(callback: (enterKey: EnterKeyType) => void): TextAreaAttribute;
101661847f8eSopenharmony_ci
101761847f8eSopenharmony_ci  /**
101861847f8eSopenharmony_ci   * Called when the input changes.
101961847f8eSopenharmony_ci   *
102061847f8eSopenharmony_ci   * @param { function } callback
102161847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
102261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
102361847f8eSopenharmony_ci   * @since 7
102461847f8eSopenharmony_ci   */
102561847f8eSopenharmony_ci  /**
102661847f8eSopenharmony_ci   * Called when the input changes.
102761847f8eSopenharmony_ci   *
102861847f8eSopenharmony_ci   * @param { function } callback
102961847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
103061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
103161847f8eSopenharmony_ci   * @crossplatform
103261847f8eSopenharmony_ci   * @since 10
103361847f8eSopenharmony_ci   */
103461847f8eSopenharmony_ci  /**
103561847f8eSopenharmony_ci   * Called when the input changes.
103661847f8eSopenharmony_ci   *
103761847f8eSopenharmony_ci   * @param { function } callback
103861847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
103961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
104061847f8eSopenharmony_ci   * @crossplatform
104161847f8eSopenharmony_ci   * @atomicservice
104261847f8eSopenharmony_ci   * @since 11
104361847f8eSopenharmony_ci   */
104461847f8eSopenharmony_ci  /**
104561847f8eSopenharmony_ci   * Called when the input changes.
104661847f8eSopenharmony_ci   *
104761847f8eSopenharmony_ci   * @param { EditableTextOnChangeCallback } callback
104861847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
104961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
105061847f8eSopenharmony_ci   * @crossplatform
105161847f8eSopenharmony_ci   * @atomicservice
105261847f8eSopenharmony_ci   * @since 12
105361847f8eSopenharmony_ci   */
105461847f8eSopenharmony_ci  onChange(callback: EditableTextOnChangeCallback): TextAreaAttribute;
105561847f8eSopenharmony_ci
105661847f8eSopenharmony_ci  /**
105761847f8eSopenharmony_ci   * Called when the text selection changes.
105861847f8eSopenharmony_ci   *
105961847f8eSopenharmony_ci   * @param { function } callback - callback of the listened event.
106061847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
106161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
106261847f8eSopenharmony_ci   * @crossplatform
106361847f8eSopenharmony_ci   * @since 10
106461847f8eSopenharmony_ci   */
106561847f8eSopenharmony_ci  /**
106661847f8eSopenharmony_ci   * Called when the text selection changes.
106761847f8eSopenharmony_ci   *
106861847f8eSopenharmony_ci   * @param { function } callback - callback of the listened event.
106961847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
107061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
107161847f8eSopenharmony_ci   * @crossplatform
107261847f8eSopenharmony_ci   * @atomicservice
107361847f8eSopenharmony_ci   * @since 11
107461847f8eSopenharmony_ci   */
107561847f8eSopenharmony_ci  onTextSelectionChange(callback: (selectionStart: number, selectionEnd: number) => void): TextAreaAttribute;
107661847f8eSopenharmony_ci
107761847f8eSopenharmony_ci  /**
107861847f8eSopenharmony_ci   * Called when the content scrolls.
107961847f8eSopenharmony_ci   *
108061847f8eSopenharmony_ci   * @param { function } callback - callback of the listened event.
108161847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
108261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
108361847f8eSopenharmony_ci   * @crossplatform
108461847f8eSopenharmony_ci   * @since 10
108561847f8eSopenharmony_ci   */
108661847f8eSopenharmony_ci  /**
108761847f8eSopenharmony_ci   * Called when the content scrolls.
108861847f8eSopenharmony_ci   *
108961847f8eSopenharmony_ci   * @param { function } callback - callback of the listened event.
109061847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
109161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
109261847f8eSopenharmony_ci   * @crossplatform
109361847f8eSopenharmony_ci   * @atomicservice
109461847f8eSopenharmony_ci   * @since 11
109561847f8eSopenharmony_ci   */
109661847f8eSopenharmony_ci  onContentScroll(callback: (totalOffsetX: number, totalOffsetY: number) => void): TextAreaAttribute;
109761847f8eSopenharmony_ci
109861847f8eSopenharmony_ci  /**
109961847f8eSopenharmony_ci   * Called when judging whether the text editing change finished.
110061847f8eSopenharmony_ci   *
110161847f8eSopenharmony_ci   * @param { function } callback - Triggered when the text area status changes.
110261847f8eSopenharmony_ci   * If the value of isEditing is true, text area is in progress.
110361847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
110461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
110561847f8eSopenharmony_ci   * @crossplatform
110661847f8eSopenharmony_ci   * @since 10
110761847f8eSopenharmony_ci   */
110861847f8eSopenharmony_ci  /**
110961847f8eSopenharmony_ci   * Called when judging whether the text editing change finished.
111061847f8eSopenharmony_ci   *
111161847f8eSopenharmony_ci   * @param { function } callback - Triggered when the text area status changes.
111261847f8eSopenharmony_ci   * If the value of isEditing is true, text area is in progress.
111361847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
111461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
111561847f8eSopenharmony_ci   * @crossplatform
111661847f8eSopenharmony_ci   * @atomicservice
111761847f8eSopenharmony_ci   * @since 11
111861847f8eSopenharmony_ci   */
111961847f8eSopenharmony_ci  onEditChange(callback: (isEditing: boolean) => void): TextAreaAttribute;
112061847f8eSopenharmony_ci
112161847f8eSopenharmony_ci  /**
112261847f8eSopenharmony_ci   * Called when using the Clipboard menu
112361847f8eSopenharmony_ci   *
112461847f8eSopenharmony_ci   * @param { function } callback
112561847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
112661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
112761847f8eSopenharmony_ci   * @since 8
112861847f8eSopenharmony_ci   */
112961847f8eSopenharmony_ci  /**
113061847f8eSopenharmony_ci   * Called when using the Clipboard menu
113161847f8eSopenharmony_ci   *
113261847f8eSopenharmony_ci   * @param { function } callback
113361847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
113461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
113561847f8eSopenharmony_ci   * @crossplatform
113661847f8eSopenharmony_ci   * @since 10
113761847f8eSopenharmony_ci   */
113861847f8eSopenharmony_ci  /**
113961847f8eSopenharmony_ci   * Called when using the Clipboard menu
114061847f8eSopenharmony_ci   *
114161847f8eSopenharmony_ci   * @param { function } callback
114261847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
114361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
114461847f8eSopenharmony_ci   * @crossplatform
114561847f8eSopenharmony_ci   * @atomicservice
114661847f8eSopenharmony_ci   * @since 11
114761847f8eSopenharmony_ci   */
114861847f8eSopenharmony_ci  onCopy(callback: (value: string) => void): TextAreaAttribute;
114961847f8eSopenharmony_ci
115061847f8eSopenharmony_ci  /**
115161847f8eSopenharmony_ci   * Called when using the Clipboard menu
115261847f8eSopenharmony_ci   *
115361847f8eSopenharmony_ci   * @param { function } callback
115461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
115561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
115661847f8eSopenharmony_ci   * @since 8
115761847f8eSopenharmony_ci   */
115861847f8eSopenharmony_ci  /**
115961847f8eSopenharmony_ci   * Called when using the Clipboard menu
116061847f8eSopenharmony_ci   *
116161847f8eSopenharmony_ci   * @param { function } callback
116261847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
116361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
116461847f8eSopenharmony_ci   * @crossplatform
116561847f8eSopenharmony_ci   * @since 10
116661847f8eSopenharmony_ci   */
116761847f8eSopenharmony_ci  /**
116861847f8eSopenharmony_ci   * Called when using the Clipboard menu
116961847f8eSopenharmony_ci   *
117061847f8eSopenharmony_ci   * @param { function } callback
117161847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
117261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
117361847f8eSopenharmony_ci   * @crossplatform
117461847f8eSopenharmony_ci   * @atomicservice
117561847f8eSopenharmony_ci   * @since 11
117661847f8eSopenharmony_ci   */
117761847f8eSopenharmony_ci  onCut(callback: (value: string) => void): TextAreaAttribute;
117861847f8eSopenharmony_ci
117961847f8eSopenharmony_ci  /**
118061847f8eSopenharmony_ci   * Called when using the Clipboard menu
118161847f8eSopenharmony_ci   *
118261847f8eSopenharmony_ci   * @param { function } callback
118361847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
118461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
118561847f8eSopenharmony_ci   * @since 7
118661847f8eSopenharmony_ci   */
118761847f8eSopenharmony_ci  /**
118861847f8eSopenharmony_ci   * Called when using the Clipboard menu
118961847f8eSopenharmony_ci   *
119061847f8eSopenharmony_ci   * @param { function } callback
119161847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
119261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
119361847f8eSopenharmony_ci   * @crossplatform
119461847f8eSopenharmony_ci   * @since 10
119561847f8eSopenharmony_ci   */
119661847f8eSopenharmony_ci  /**
119761847f8eSopenharmony_ci   * Called when using the Clipboard menu
119861847f8eSopenharmony_ci   *
119961847f8eSopenharmony_ci   * @param { function } callback
120061847f8eSopenharmony_ci   *          Executed when a paste operation is performed.
120161847f8eSopenharmony_ci   *          { string } value - The text content to be pasted.
120261847f8eSopenharmony_ci   *          { PasteEvent } event - The user-defined paste event.
120361847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
120461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
120561847f8eSopenharmony_ci   * @crossplatform
120661847f8eSopenharmony_ci   * @atomicservice
120761847f8eSopenharmony_ci   * @since 11
120861847f8eSopenharmony_ci   */
120961847f8eSopenharmony_ci  onPaste(callback: (value: string, event: PasteEvent) => void): TextAreaAttribute;
121061847f8eSopenharmony_ci
121161847f8eSopenharmony_ci  /**
121261847f8eSopenharmony_ci   * Called when the copy option is set.
121361847f8eSopenharmony_ci   *
121461847f8eSopenharmony_ci   * @param { CopyOptions } value
121561847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
121661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
121761847f8eSopenharmony_ci   * @since 9
121861847f8eSopenharmony_ci   */
121961847f8eSopenharmony_ci  /**
122061847f8eSopenharmony_ci   * Called when the copy option is set.
122161847f8eSopenharmony_ci   *
122261847f8eSopenharmony_ci   * @param { CopyOptions } value
122361847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
122461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
122561847f8eSopenharmony_ci   * @crossplatform
122661847f8eSopenharmony_ci   * @since 10
122761847f8eSopenharmony_ci   */
122861847f8eSopenharmony_ci  /**
122961847f8eSopenharmony_ci   * Called when the copy option is set.
123061847f8eSopenharmony_ci   *
123161847f8eSopenharmony_ci   * @param { CopyOptions } value
123261847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
123361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
123461847f8eSopenharmony_ci   * @crossplatform
123561847f8eSopenharmony_ci   * @atomicservice
123661847f8eSopenharmony_ci   * @since 11
123761847f8eSopenharmony_ci   */
123861847f8eSopenharmony_ci  copyOption(value: CopyOptions): TextAreaAttribute;
123961847f8eSopenharmony_ci
124061847f8eSopenharmony_ci  /**
124161847f8eSopenharmony_ci   * Sets whether request keyboard or not when on focus.
124261847f8eSopenharmony_ci   *
124361847f8eSopenharmony_ci   * @param { boolean } value
124461847f8eSopenharmony_ci   * @returns { TextAreaAttribute } Returns the instance of the TextAreaAttribute.
124561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
124661847f8eSopenharmony_ci   * @crossplatform
124761847f8eSopenharmony_ci   * @since 10
124861847f8eSopenharmony_ci   */
124961847f8eSopenharmony_ci  /**
125061847f8eSopenharmony_ci   * Sets whether request keyboard or not when on focus.
125161847f8eSopenharmony_ci   *
125261847f8eSopenharmony_ci   * @param { boolean } value
125361847f8eSopenharmony_ci   * @returns { TextAreaAttribute } Returns the instance of the TextAreaAttribute.
125461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
125561847f8eSopenharmony_ci   * @crossplatform
125661847f8eSopenharmony_ci   * @atomicservice
125761847f8eSopenharmony_ci   * @since 11
125861847f8eSopenharmony_ci   */
125961847f8eSopenharmony_ci  enableKeyboardOnFocus(value: boolean): TextAreaAttribute;
126061847f8eSopenharmony_ci
126161847f8eSopenharmony_ci  /**
126261847f8eSopenharmony_ci   * Define the max length content of the text area.
126361847f8eSopenharmony_ci   *
126461847f8eSopenharmony_ci   * @param { number } value
126561847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
126661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
126761847f8eSopenharmony_ci   * @since 10
126861847f8eSopenharmony_ci   */
126961847f8eSopenharmony_ci  /**
127061847f8eSopenharmony_ci   * Define the max length content of the text area.
127161847f8eSopenharmony_ci   *
127261847f8eSopenharmony_ci   * @param { number } value
127361847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
127461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
127561847f8eSopenharmony_ci   * @crossplatform
127661847f8eSopenharmony_ci   * @atomicservice
127761847f8eSopenharmony_ci   * @since 11
127861847f8eSopenharmony_ci   */
127961847f8eSopenharmony_ci  maxLength(value: number): TextAreaAttribute;
128061847f8eSopenharmony_ci
128161847f8eSopenharmony_ci  /**
128261847f8eSopenharmony_ci   * Define show counter of the text area.
128361847f8eSopenharmony_ci   *
128461847f8eSopenharmony_ci   * @param { boolean } value
128561847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
128661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
128761847f8eSopenharmony_ci   * @since 10
128861847f8eSopenharmony_ci   */
128961847f8eSopenharmony_ci  /**
129061847f8eSopenharmony_ci   * Define show counter of the text area.
129161847f8eSopenharmony_ci   *
129261847f8eSopenharmony_ci   * @param { boolean } value - Set showcounter of the text area.
129361847f8eSopenharmony_ci   * @param { InputCounterOptions } options - Set the percentage of counter.
129461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
129561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
129661847f8eSopenharmony_ci   * @crossplatform
129761847f8eSopenharmony_ci   * @atomicservice
129861847f8eSopenharmony_ci   * @since 11
129961847f8eSopenharmony_ci   */
130061847f8eSopenharmony_ci  showCounter(value: boolean, options?: InputCounterOptions): TextAreaAttribute;
130161847f8eSopenharmony_ci
130261847f8eSopenharmony_ci  /**
130361847f8eSopenharmony_ci   * Define style of the text area.
130461847f8eSopenharmony_ci   *
130561847f8eSopenharmony_ci   * @param { TextContentStyle } value
130661847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
130761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
130861847f8eSopenharmony_ci   * @since 10
130961847f8eSopenharmony_ci   */
131061847f8eSopenharmony_ci  /**
131161847f8eSopenharmony_ci   * Define style of the text area.
131261847f8eSopenharmony_ci   *
131361847f8eSopenharmony_ci   * @param { TextContentStyle } value
131461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
131561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
131661847f8eSopenharmony_ci   * @crossplatform
131761847f8eSopenharmony_ci   * @atomicservice
131861847f8eSopenharmony_ci   * @since 11
131961847f8eSopenharmony_ci   */
132061847f8eSopenharmony_ci  style(value: TextContentStyle): TextAreaAttribute;
132161847f8eSopenharmony_ci
132261847f8eSopenharmony_ci  /**
132361847f8eSopenharmony_ci   * Define bar state of the text area.
132461847f8eSopenharmony_ci   *
132561847f8eSopenharmony_ci   * @param { BarState } value
132661847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
132761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
132861847f8eSopenharmony_ci   * @since 10
132961847f8eSopenharmony_ci   */
133061847f8eSopenharmony_ci  /**
133161847f8eSopenharmony_ci   * Define bar state of the text area.
133261847f8eSopenharmony_ci   *
133361847f8eSopenharmony_ci   * @param { BarState } value
133461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
133561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
133661847f8eSopenharmony_ci   * @atomicservice
133761847f8eSopenharmony_ci   * @since 11
133861847f8eSopenharmony_ci   */
133961847f8eSopenharmony_ci  barState(value: BarState): TextAreaAttribute;
134061847f8eSopenharmony_ci
134161847f8eSopenharmony_ci  /**
134261847f8eSopenharmony_ci   * Controls whether the selection menu pops up.
134361847f8eSopenharmony_ci   *
134461847f8eSopenharmony_ci   * @param { boolean } value
134561847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
134661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
134761847f8eSopenharmony_ci   * @crossplatform
134861847f8eSopenharmony_ci   * @since 10
134961847f8eSopenharmony_ci   */
135061847f8eSopenharmony_ci  /**
135161847f8eSopenharmony_ci   * Controls whether the selection menu pops up.
135261847f8eSopenharmony_ci   *
135361847f8eSopenharmony_ci   * @param { boolean } value
135461847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
135561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
135661847f8eSopenharmony_ci   * @crossplatform
135761847f8eSopenharmony_ci   * @atomicservice
135861847f8eSopenharmony_ci   * @since 11
135961847f8eSopenharmony_ci   */
136061847f8eSopenharmony_ci  selectionMenuHidden(value: boolean): TextAreaAttribute;
136161847f8eSopenharmony_ci
136261847f8eSopenharmony_ci  /**
136361847f8eSopenharmony_ci   * Called when the minimum font size of the font is set.
136461847f8eSopenharmony_ci   *
136561847f8eSopenharmony_ci   * @param { number | string | Resource } value
136661847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
136761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
136861847f8eSopenharmony_ci   * @crossplatform
136961847f8eSopenharmony_ci   * @atomicservice
137061847f8eSopenharmony_ci   * @since 12
137161847f8eSopenharmony_ci   */
137261847f8eSopenharmony_ci  minFontSize(value: number | string | Resource): TextAreaAttribute;
137361847f8eSopenharmony_ci
137461847f8eSopenharmony_ci  /**
137561847f8eSopenharmony_ci   * Called when the maximum font size of the font is set.
137661847f8eSopenharmony_ci   *
137761847f8eSopenharmony_ci   * @param { number | string | Resource } value
137861847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
137961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
138061847f8eSopenharmony_ci   * @crossplatform
138161847f8eSopenharmony_ci   * @atomicservice
138261847f8eSopenharmony_ci   * @since 12
138361847f8eSopenharmony_ci   */
138461847f8eSopenharmony_ci  maxFontSize(value: number | string | Resource): TextAreaAttribute;
138561847f8eSopenharmony_ci
138661847f8eSopenharmony_ci  /**
138761847f8eSopenharmony_ci   * Called when the height adaptive policy is set.
138861847f8eSopenharmony_ci   *
138961847f8eSopenharmony_ci   * @param { TextHeightAdaptivePolicy } value - The height adaptive policy.
139061847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
139161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
139261847f8eSopenharmony_ci   * @crossplatform
139361847f8eSopenharmony_ci   * @atomicservice
139461847f8eSopenharmony_ci   * @since 12
139561847f8eSopenharmony_ci   */
139661847f8eSopenharmony_ci  heightAdaptivePolicy(value: TextHeightAdaptivePolicy): TextAreaAttribute;
139761847f8eSopenharmony_ci
139861847f8eSopenharmony_ci  /**
139961847f8eSopenharmony_ci   * Define max lines of the text area.
140061847f8eSopenharmony_ci   *
140161847f8eSopenharmony_ci   * @param { number } value
140261847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
140361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
140461847f8eSopenharmony_ci   * @since 10
140561847f8eSopenharmony_ci   */
140661847f8eSopenharmony_ci  /**
140761847f8eSopenharmony_ci   * Define max lines of the text area.
140861847f8eSopenharmony_ci   *
140961847f8eSopenharmony_ci   * @param { number } value
141061847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
141161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
141261847f8eSopenharmony_ci   * @crossplatform
141361847f8eSopenharmony_ci   * @atomicservice
141461847f8eSopenharmony_ci   * @since 11
141561847f8eSopenharmony_ci   */
141661847f8eSopenharmony_ci  maxLines(value: number): TextAreaAttribute;
141761847f8eSopenharmony_ci
141861847f8eSopenharmony_ci  /**
141961847f8eSopenharmony_ci   * Set the word break type.
142061847f8eSopenharmony_ci   *
142161847f8eSopenharmony_ci   * @param { WordBreak } value - The word break type.
142261847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
142361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
142461847f8eSopenharmony_ci   * @crossplatform
142561847f8eSopenharmony_ci   * @atomicservice
142661847f8eSopenharmony_ci   * @since 12
142761847f8eSopenharmony_ci   */
142861847f8eSopenharmony_ci  wordBreak(value: WordBreak): TextAreaAttribute;
142961847f8eSopenharmony_ci
143061847f8eSopenharmony_ci  /**
143161847f8eSopenharmony_ci   * Set the text line break strategy type.
143261847f8eSopenharmony_ci   *
143361847f8eSopenharmony_ci   * @param { LineBreakStrategy } strategy - The text line break strategy type.
143461847f8eSopenharmony_ci   * @returns { TextAreaAttribute } The attribute of the TextAreaAttribute.
143561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
143661847f8eSopenharmony_ci   * @crossplatform
143761847f8eSopenharmony_ci   * @atomicservice
143861847f8eSopenharmony_ci   * @since 12
143961847f8eSopenharmony_ci   */
144061847f8eSopenharmony_ci  lineBreakStrategy(strategy: LineBreakStrategy): TextAreaAttribute;
144161847f8eSopenharmony_ci
144261847f8eSopenharmony_ci  /**
144361847f8eSopenharmony_ci   * Define custom keyboard of the text area.
144461847f8eSopenharmony_ci   *
144561847f8eSopenharmony_ci   * @param { CustomBuilder } value
144661847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
144761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
144861847f8eSopenharmony_ci   * @since 10
144961847f8eSopenharmony_ci   */
145061847f8eSopenharmony_ci  /**
145161847f8eSopenharmony_ci   * Define custom keyboard of the text area.
145261847f8eSopenharmony_ci   *
145361847f8eSopenharmony_ci   * @param { CustomBuilder } value
145461847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
145561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
145661847f8eSopenharmony_ci   * @crossplatform
145761847f8eSopenharmony_ci   * @atomicservice
145861847f8eSopenharmony_ci   * @since 11
145961847f8eSopenharmony_ci   */
146061847f8eSopenharmony_ci  /**
146161847f8eSopenharmony_ci   * Define custom keyboard of the text area.
146261847f8eSopenharmony_ci   *
146361847f8eSopenharmony_ci   * @param { CustomBuilder } value - Set up a custom keyboard of TextArea
146461847f8eSopenharmony_ci   * @param { KeyboardOptions } [options] - Indicates the custom keyboard options of TextArea
146561847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
146661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
146761847f8eSopenharmony_ci   * @crossplatform
146861847f8eSopenharmony_ci   * @atomicservice
146961847f8eSopenharmony_ci   * @since 12
147061847f8eSopenharmony_ci   */
147161847f8eSopenharmony_ci  customKeyboard(value: CustomBuilder, options?: KeyboardOptions): TextAreaAttribute;
147261847f8eSopenharmony_ci  
147361847f8eSopenharmony_ci  /**
147461847f8eSopenharmony_ci   * Called when the text decoration of the text is set.
147561847f8eSopenharmony_ci   *
147661847f8eSopenharmony_ci   * @param { TextDecorationOptions } value
147761847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
147861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
147961847f8eSopenharmony_ci   * @crossplatform
148061847f8eSopenharmony_ci   * @atomicservice
148161847f8eSopenharmony_ci   * @since 12
148261847f8eSopenharmony_ci   */
148361847f8eSopenharmony_ci  decoration(value: TextDecorationOptions): TextAreaAttribute;
148461847f8eSopenharmony_ci
148561847f8eSopenharmony_ci  /**
148661847f8eSopenharmony_ci   * Called when the distance between text fonts is set.
148761847f8eSopenharmony_ci   *
148861847f8eSopenharmony_ci   * @param { number | string | Resource } value
148961847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
149061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
149161847f8eSopenharmony_ci   * @crossplatform
149261847f8eSopenharmony_ci   * @atomicservice
149361847f8eSopenharmony_ci   * @since 12
149461847f8eSopenharmony_ci   */
149561847f8eSopenharmony_ci  letterSpacing(value: number | string | Resource): TextAreaAttribute;
149661847f8eSopenharmony_ci
149761847f8eSopenharmony_ci  /**
149861847f8eSopenharmony_ci   * Set font line spacing.
149961847f8eSopenharmony_ci   *
150061847f8eSopenharmony_ci   * @param { LengthMetrics } value
150161847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
150261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
150361847f8eSopenharmony_ci   * @crossplatform
150461847f8eSopenharmony_ci   * @atomicservice
150561847f8eSopenharmony_ci   * @since 12
150661847f8eSopenharmony_ci   */
150761847f8eSopenharmony_ci  lineSpacing(value: LengthMetrics): TextAreaAttribute;
150861847f8eSopenharmony_ci
150961847f8eSopenharmony_ci  /**
151061847f8eSopenharmony_ci   * Called when the line height of the font is set.
151161847f8eSopenharmony_ci   *
151261847f8eSopenharmony_ci   * @param { number | string | Resource } value
151361847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
151461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
151561847f8eSopenharmony_ci   * @crossplatform
151661847f8eSopenharmony_ci   * @atomicservice
151761847f8eSopenharmony_ci   * @since 12
151861847f8eSopenharmony_ci   */
151961847f8eSopenharmony_ci  lineHeight(value: number | string | Resource): TextAreaAttribute;
152061847f8eSopenharmony_ci
152161847f8eSopenharmony_ci  /**
152261847f8eSopenharmony_ci   * Called when the input type is set.
152361847f8eSopenharmony_ci   *
152461847f8eSopenharmony_ci   * @param { TextAreaType } value
152561847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
152661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
152761847f8eSopenharmony_ci   * @crossplatform
152861847f8eSopenharmony_ci   * @since 11
152961847f8eSopenharmony_ci   */
153061847f8eSopenharmony_ci  /**
153161847f8eSopenharmony_ci   * Called when the input type is set.
153261847f8eSopenharmony_ci   *
153361847f8eSopenharmony_ci   * @param { TextAreaType } value
153461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
153561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
153661847f8eSopenharmony_ci   * @crossplatform
153761847f8eSopenharmony_ci   * @atomicservice
153861847f8eSopenharmony_ci   * @since 12
153961847f8eSopenharmony_ci   */
154061847f8eSopenharmony_ci  type(value: TextAreaType): TextAreaAttribute;
154161847f8eSopenharmony_ci
154261847f8eSopenharmony_ci  /**
154361847f8eSopenharmony_ci   * Sets whether enable auto fill or not.
154461847f8eSopenharmony_ci   *
154561847f8eSopenharmony_ci   * @param { boolean } value - Indicates the flag whether autofill is enabled.
154661847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
154761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
154861847f8eSopenharmony_ci   * @atomicservice
154961847f8eSopenharmony_ci   * @since 12
155061847f8eSopenharmony_ci   */
155161847f8eSopenharmony_ci  enableAutoFill(value: boolean): TextAreaAttribute;
155261847f8eSopenharmony_ci
155361847f8eSopenharmony_ci  /**
155461847f8eSopenharmony_ci   * Called when the auto fill type is set.
155561847f8eSopenharmony_ci   *
155661847f8eSopenharmony_ci   * @param { ContentType } contentType - Indicates autofill type.
155761847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
155861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
155961847f8eSopenharmony_ci   * @atomicservice
156061847f8eSopenharmony_ci   * @since 12
156161847f8eSopenharmony_ci   */
156261847f8eSopenharmony_ci  contentType(contentType: ContentType): TextAreaAttribute;
156361847f8eSopenharmony_ci
156461847f8eSopenharmony_ci  /**
156561847f8eSopenharmony_ci   * Set font feature.
156661847f8eSopenharmony_ci   *
156761847f8eSopenharmony_ci   * @param { string } value - The fontFeature.
156861847f8eSopenharmony_ci   * normal | <feature-tag-value>, 
156961847f8eSopenharmony_ci   * where <feature-tag-value> = <string> [ <integer> | on | off ], like: "ss01" 0
157061847f8eSopenharmony_ci   * the values of <feature-tag-value> reference to doc of TextArea component
157161847f8eSopenharmony_ci   * number of <feature-tag-value> can be single or multiple, and separated by comma ','.
157261847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
157361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
157461847f8eSopenharmony_ci   * @crossplatform
157561847f8eSopenharmony_ci   * @atomicservice
157661847f8eSopenharmony_ci   * @since 12
157761847f8eSopenharmony_ci   */
157861847f8eSopenharmony_ci  fontFeature(value: string): TextAreaAttribute;
157961847f8eSopenharmony_ci
158061847f8eSopenharmony_ci  /**
158161847f8eSopenharmony_ci   * Get text value information when about to input.
158261847f8eSopenharmony_ci   *
158361847f8eSopenharmony_ci   * @param { Callback<InsertValue, boolean> } callback - The triggered function when text content is about to insert.
158461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
158561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
158661847f8eSopenharmony_ci   * @crossplatform
158761847f8eSopenharmony_ci   * @atomicservice
158861847f8eSopenharmony_ci   * @since 12
158961847f8eSopenharmony_ci   */
159061847f8eSopenharmony_ci  onWillInsert(callback: Callback<InsertValue, boolean>): TextAreaAttribute;
159161847f8eSopenharmony_ci
159261847f8eSopenharmony_ci  /**
159361847f8eSopenharmony_ci   * Get text value information when completed input.
159461847f8eSopenharmony_ci   *
159561847f8eSopenharmony_ci   * @param { Callback<InsertValue> } callback - The triggered function when text content has been inserted.
159661847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
159761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
159861847f8eSopenharmony_ci   * @crossplatform
159961847f8eSopenharmony_ci   * @atomicservice
160061847f8eSopenharmony_ci   * @since 12
160161847f8eSopenharmony_ci   */
160261847f8eSopenharmony_ci  onDidInsert(callback: Callback<InsertValue>): TextAreaAttribute;
160361847f8eSopenharmony_ci
160461847f8eSopenharmony_ci  /**
160561847f8eSopenharmony_ci   * Get text value information when about to delete.
160661847f8eSopenharmony_ci   *
160761847f8eSopenharmony_ci   * @param { Callback<DeleteValue, boolean> } callback - The triggered function when text content is about to delete.
160861847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
160961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
161061847f8eSopenharmony_ci   * @crossplatform
161161847f8eSopenharmony_ci   * @atomicservice
161261847f8eSopenharmony_ci   * @since 12
161361847f8eSopenharmony_ci   */
161461847f8eSopenharmony_ci  onWillDelete(callback: Callback<DeleteValue, boolean>): TextAreaAttribute;
161561847f8eSopenharmony_ci
161661847f8eSopenharmony_ci  /**
161761847f8eSopenharmony_ci   * Get text value information when the deletion has been completed
161861847f8eSopenharmony_ci   *
161961847f8eSopenharmony_ci   * @param { Callback<DeleteValue> } callback - The triggered function when text content has been deleted.
162061847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
162161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
162261847f8eSopenharmony_ci   * @crossplatform
162361847f8eSopenharmony_ci   * @atomicservice
162461847f8eSopenharmony_ci   * @since 12
162561847f8eSopenharmony_ci   */
162661847f8eSopenharmony_ci  onDidDelete(callback: Callback<DeleteValue>): TextAreaAttribute;
162761847f8eSopenharmony_ci
162861847f8eSopenharmony_ci  /**
162961847f8eSopenharmony_ci   * Set the custom text menu.
163061847f8eSopenharmony_ci   *
163161847f8eSopenharmony_ci   * @param { EditMenuOptions } editMenu - Customize text menu options.
163261847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
163361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
163461847f8eSopenharmony_ci   * @crossplatform
163561847f8eSopenharmony_ci   * @atomicservice
163661847f8eSopenharmony_ci   * @since 12
163761847f8eSopenharmony_ci   */
163861847f8eSopenharmony_ci  editMenuOptions(editMenu: EditMenuOptions): TextAreaAttribute;
163961847f8eSopenharmony_ci
164061847f8eSopenharmony_ci  /**
164161847f8eSopenharmony_ci   * Define the preview text mode of the text input.
164261847f8eSopenharmony_ci   *
164361847f8eSopenharmony_ci   * @param { boolean } enable - Indicates the preview text mode.
164461847f8eSopenharmony_ci   * @returns { TextAreaAttribute }
164561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
164661847f8eSopenharmony_ci   * @crossplatform
164761847f8eSopenharmony_ci   * @atomicservice
164861847f8eSopenharmony_ci   * @since 12
164961847f8eSopenharmony_ci   */
165061847f8eSopenharmony_ci  enablePreviewText(enable: boolean): TextAreaAttribute;
165161847f8eSopenharmony_ci
165261847f8eSopenharmony_ci  /**
165361847f8eSopenharmony_ci   * Enable or disable haptic feedback.
165461847f8eSopenharmony_ci   *
165561847f8eSopenharmony_ci   * @param { boolean } isEnabled - Default value is true, set false to disable haptic feedback.
165661847f8eSopenharmony_ci   * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute.
165761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
165861847f8eSopenharmony_ci   * @crossplatform
165961847f8eSopenharmony_ci   * @atomicservice
166061847f8eSopenharmony_ci   * @since 13
166161847f8eSopenharmony_ci   */
166261847f8eSopenharmony_ci  enableHapticFeedback(isEnabled: boolean): TextAreaAttribute;
166361847f8eSopenharmony_ci}
166461847f8eSopenharmony_ci
166561847f8eSopenharmony_ci/**
166661847f8eSopenharmony_ci * Defines TextArea Component.
166761847f8eSopenharmony_ci *
166861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
166961847f8eSopenharmony_ci * @since 7
167061847f8eSopenharmony_ci */
167161847f8eSopenharmony_ci/**
167261847f8eSopenharmony_ci * Defines TextArea Component.
167361847f8eSopenharmony_ci *
167461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
167561847f8eSopenharmony_ci * @crossplatform
167661847f8eSopenharmony_ci * @since 10
167761847f8eSopenharmony_ci */
167861847f8eSopenharmony_ci/**
167961847f8eSopenharmony_ci * Defines TextArea Component.
168061847f8eSopenharmony_ci *
168161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
168261847f8eSopenharmony_ci * @crossplatform
168361847f8eSopenharmony_ci * @atomicservice
168461847f8eSopenharmony_ci * @since 11
168561847f8eSopenharmony_ci */
168661847f8eSopenharmony_cideclare const TextArea: TextAreaInterface;
168761847f8eSopenharmony_ci
168861847f8eSopenharmony_ci/**
168961847f8eSopenharmony_ci * Defines TextArea Component instance.
169061847f8eSopenharmony_ci *
169161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
169261847f8eSopenharmony_ci * @since 7
169361847f8eSopenharmony_ci */
169461847f8eSopenharmony_ci/**
169561847f8eSopenharmony_ci * Defines TextArea Component instance.
169661847f8eSopenharmony_ci *
169761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
169861847f8eSopenharmony_ci * @crossplatform
169961847f8eSopenharmony_ci * @since 10
170061847f8eSopenharmony_ci */
170161847f8eSopenharmony_ci/**
170261847f8eSopenharmony_ci * Defines TextArea Component instance.
170361847f8eSopenharmony_ci *
170461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
170561847f8eSopenharmony_ci * @crossplatform
170661847f8eSopenharmony_ci * @atomicservice
170761847f8eSopenharmony_ci * @since 11
170861847f8eSopenharmony_ci */
170961847f8eSopenharmony_cideclare const TextAreaInstance: TextAreaAttribute;
1710