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 the type of input box
2361847f8eSopenharmony_ci *
2461847f8eSopenharmony_ci * @enum { number }
2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
2661847f8eSopenharmony_ci * @since 7
2761847f8eSopenharmony_ci */
2861847f8eSopenharmony_ci/**
2961847f8eSopenharmony_ci * Declare the type of input box
3061847f8eSopenharmony_ci *
3161847f8eSopenharmony_ci * @enum { number }
3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
3361847f8eSopenharmony_ci * @crossplatform
3461847f8eSopenharmony_ci * @since 10
3561847f8eSopenharmony_ci */
3661847f8eSopenharmony_ci/**
3761847f8eSopenharmony_ci * Declare the type of input box
3861847f8eSopenharmony_ci *
3961847f8eSopenharmony_ci * @enum { number }
4061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
4161847f8eSopenharmony_ci * @crossplatform
4261847f8eSopenharmony_ci * @atomicservice
4361847f8eSopenharmony_ci * @since 11
4461847f8eSopenharmony_ci */
4561847f8eSopenharmony_cideclare enum InputType {
4661847f8eSopenharmony_ci  /**
4761847f8eSopenharmony_ci   * Basic input mode.
4861847f8eSopenharmony_ci   *
4961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
5061847f8eSopenharmony_ci   * @since 7
5161847f8eSopenharmony_ci   */
5261847f8eSopenharmony_ci  /**
5361847f8eSopenharmony_ci   * Basic input mode.
5461847f8eSopenharmony_ci   *
5561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
5661847f8eSopenharmony_ci   * @crossplatform
5761847f8eSopenharmony_ci   * @since 10
5861847f8eSopenharmony_ci   */
5961847f8eSopenharmony_ci  /**
6061847f8eSopenharmony_ci   * Basic input mode.
6161847f8eSopenharmony_ci   *
6261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6361847f8eSopenharmony_ci   * @crossplatform
6461847f8eSopenharmony_ci   * @atomicservice
6561847f8eSopenharmony_ci   * @since 11
6661847f8eSopenharmony_ci   */
6761847f8eSopenharmony_ci  Normal,
6861847f8eSopenharmony_ci
6961847f8eSopenharmony_ci  /**
7061847f8eSopenharmony_ci   * Pure digital input mode.
7161847f8eSopenharmony_ci   *
7261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
7361847f8eSopenharmony_ci   * @since 7
7461847f8eSopenharmony_ci   */
7561847f8eSopenharmony_ci  /**
7661847f8eSopenharmony_ci   * Pure digital input mode.
7761847f8eSopenharmony_ci   *
7861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
7961847f8eSopenharmony_ci   * @crossplatform
8061847f8eSopenharmony_ci   * @since 10
8161847f8eSopenharmony_ci   */
8261847f8eSopenharmony_ci  /**
8361847f8eSopenharmony_ci   * Pure digital input mode.
8461847f8eSopenharmony_ci   *
8561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
8661847f8eSopenharmony_ci   * @crossplatform
8761847f8eSopenharmony_ci   * @atomicservice
8861847f8eSopenharmony_ci   * @since 11
8961847f8eSopenharmony_ci   */
9061847f8eSopenharmony_ci  Number,
9161847f8eSopenharmony_ci
9261847f8eSopenharmony_ci  /**
9361847f8eSopenharmony_ci   * Phone number entry mode.
9461847f8eSopenharmony_ci   *
9561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
9661847f8eSopenharmony_ci   * @since 9
9761847f8eSopenharmony_ci   */
9861847f8eSopenharmony_ci  /**
9961847f8eSopenharmony_ci   * Phone number entry mode.
10061847f8eSopenharmony_ci   *
10161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10261847f8eSopenharmony_ci   * @crossplatform
10361847f8eSopenharmony_ci   * @since 10
10461847f8eSopenharmony_ci   */
10561847f8eSopenharmony_ci  /**
10661847f8eSopenharmony_ci   * Phone number entry mode.
10761847f8eSopenharmony_ci   *
10861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10961847f8eSopenharmony_ci   * @crossplatform
11061847f8eSopenharmony_ci   * @atomicservice
11161847f8eSopenharmony_ci   * @since 11
11261847f8eSopenharmony_ci   */
11361847f8eSopenharmony_ci  PhoneNumber,
11461847f8eSopenharmony_ci
11561847f8eSopenharmony_ci  /**
11661847f8eSopenharmony_ci   * E-mail address input mode.
11761847f8eSopenharmony_ci   *
11861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
11961847f8eSopenharmony_ci   * @since 7
12061847f8eSopenharmony_ci   */
12161847f8eSopenharmony_ci  /**
12261847f8eSopenharmony_ci   * E-mail address input mode.
12361847f8eSopenharmony_ci   *
12461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
12561847f8eSopenharmony_ci   * @crossplatform
12661847f8eSopenharmony_ci   * @since 10
12761847f8eSopenharmony_ci   */
12861847f8eSopenharmony_ci  /**
12961847f8eSopenharmony_ci   * E-mail address input mode.
13061847f8eSopenharmony_ci   *
13161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
13261847f8eSopenharmony_ci   * @crossplatform
13361847f8eSopenharmony_ci   * @atomicservice
13461847f8eSopenharmony_ci   * @since 11
13561847f8eSopenharmony_ci   */
13661847f8eSopenharmony_ci  Email,
13761847f8eSopenharmony_ci
13861847f8eSopenharmony_ci  /**
13961847f8eSopenharmony_ci   * Password entry mode.
14061847f8eSopenharmony_ci   *
14161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
14261847f8eSopenharmony_ci   * @since 7
14361847f8eSopenharmony_ci   */
14461847f8eSopenharmony_ci  /**
14561847f8eSopenharmony_ci   * Password entry mode.
14661847f8eSopenharmony_ci   *
14761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
14861847f8eSopenharmony_ci   * @crossplatform
14961847f8eSopenharmony_ci   * @since 10
15061847f8eSopenharmony_ci   */
15161847f8eSopenharmony_ci  /**
15261847f8eSopenharmony_ci   * Password entry mode.
15361847f8eSopenharmony_ci   *
15461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
15561847f8eSopenharmony_ci   * @crossplatform
15661847f8eSopenharmony_ci   * @atomicservice
15761847f8eSopenharmony_ci   * @since 11
15861847f8eSopenharmony_ci   */
15961847f8eSopenharmony_ci  Password,
16061847f8eSopenharmony_ci
16161847f8eSopenharmony_ci  /**
16261847f8eSopenharmony_ci   * Number Password entry mode.
16361847f8eSopenharmony_ci   *
16461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
16561847f8eSopenharmony_ci   * @crossplatform
16661847f8eSopenharmony_ci   * @since 11
16761847f8eSopenharmony_ci   */
16861847f8eSopenharmony_ci  /**
16961847f8eSopenharmony_ci   * Number Password entry mode.
17061847f8eSopenharmony_ci   *
17161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
17261847f8eSopenharmony_ci   * @crossplatform
17361847f8eSopenharmony_ci   * @atomicservice
17461847f8eSopenharmony_ci   * @since 12
17561847f8eSopenharmony_ci   */
17661847f8eSopenharmony_ci  NUMBER_PASSWORD = 8,
17761847f8eSopenharmony_ci
17861847f8eSopenharmony_ci  /**
17961847f8eSopenharmony_ci   * Screen Lock Password entry mode.
18061847f8eSopenharmony_ci   *
18161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18261847f8eSopenharmony_ci   * @systemapi
18361847f8eSopenharmony_ci   * @since 11
18461847f8eSopenharmony_ci   */
18561847f8eSopenharmony_ci  SCREEN_LOCK_PASSWORD = 9,
18661847f8eSopenharmony_ci
18761847f8eSopenharmony_ci  /**
18861847f8eSopenharmony_ci   * UserName entry mode.
18961847f8eSopenharmony_ci   *
19061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
19161847f8eSopenharmony_ci   * @since 11
19261847f8eSopenharmony_ci   */
19361847f8eSopenharmony_ci  /**
19461847f8eSopenharmony_ci   * UserName entry mode.
19561847f8eSopenharmony_ci   *
19661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
19761847f8eSopenharmony_ci   * @atomicservice
19861847f8eSopenharmony_ci   * @since 12
19961847f8eSopenharmony_ci   */
20061847f8eSopenharmony_ci  USER_NAME = 10,
20161847f8eSopenharmony_ci
20261847f8eSopenharmony_ci  /**
20361847f8eSopenharmony_ci   * NewPassword entry mode.
20461847f8eSopenharmony_ci   *
20561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
20661847f8eSopenharmony_ci   * @since 11
20761847f8eSopenharmony_ci   */
20861847f8eSopenharmony_ci  /**
20961847f8eSopenharmony_ci   * NewPassword entry mode.
21061847f8eSopenharmony_ci   *
21161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
21261847f8eSopenharmony_ci   * @atomicservice
21361847f8eSopenharmony_ci   * @since 12
21461847f8eSopenharmony_ci   */
21561847f8eSopenharmony_ci  NEW_PASSWORD = 11,
21661847f8eSopenharmony_ci
21761847f8eSopenharmony_ci  /**
21861847f8eSopenharmony_ci   * Number decimal entry mode.
21961847f8eSopenharmony_ci   *
22061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
22161847f8eSopenharmony_ci   * @crossplatform
22261847f8eSopenharmony_ci   * @atomicservice
22361847f8eSopenharmony_ci   * @since 11
22461847f8eSopenharmony_ci   */
22561847f8eSopenharmony_ci  NUMBER_DECIMAL = 12,
22661847f8eSopenharmony_ci
22761847f8eSopenharmony_ci  /**
22861847f8eSopenharmony_ci   * URL entry mode.
22961847f8eSopenharmony_ci   *
23061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
23161847f8eSopenharmony_ci   * @crossplatform
23261847f8eSopenharmony_ci   * @atomicservice
23361847f8eSopenharmony_ci   * @since 12
23461847f8eSopenharmony_ci   */
23561847f8eSopenharmony_ci  URL = 13,
23661847f8eSopenharmony_ci}
23761847f8eSopenharmony_ci
23861847f8eSopenharmony_ci/**
23961847f8eSopenharmony_ci * Declare the type of input content
24061847f8eSopenharmony_ci *
24161847f8eSopenharmony_ci * @enum { number }
24261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
24361847f8eSopenharmony_ci * @atomicservice
24461847f8eSopenharmony_ci * @since 12
24561847f8eSopenharmony_ci */
24661847f8eSopenharmony_cideclare enum ContentType {
24761847f8eSopenharmony_ci  /**
24861847f8eSopenharmony_ci   * User name content type.
24961847f8eSopenharmony_ci   *
25061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
25161847f8eSopenharmony_ci   * @atomicservice
25261847f8eSopenharmony_ci   * @since 12
25361847f8eSopenharmony_ci   */
25461847f8eSopenharmony_ci  USER_NAME = 0,
25561847f8eSopenharmony_ci
25661847f8eSopenharmony_ci  /**
25761847f8eSopenharmony_ci   * Password content type.
25861847f8eSopenharmony_ci   *
25961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
26061847f8eSopenharmony_ci   * @atomicservice
26161847f8eSopenharmony_ci   * @since 12
26261847f8eSopenharmony_ci   */
26361847f8eSopenharmony_ci  PASSWORD = 1,
26461847f8eSopenharmony_ci
26561847f8eSopenharmony_ci  /**
26661847f8eSopenharmony_ci   * New password content type.
26761847f8eSopenharmony_ci   *
26861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
26961847f8eSopenharmony_ci   * @atomicservice
27061847f8eSopenharmony_ci   * @since 12
27161847f8eSopenharmony_ci   */
27261847f8eSopenharmony_ci  NEW_PASSWORD = 2,
27361847f8eSopenharmony_ci
27461847f8eSopenharmony_ci  /**
27561847f8eSopenharmony_ci   * Full street address content type.
27661847f8eSopenharmony_ci   *
27761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
27861847f8eSopenharmony_ci   * @atomicservice
27961847f8eSopenharmony_ci   * @since 12
28061847f8eSopenharmony_ci   */
28161847f8eSopenharmony_ci  FULL_STREET_ADDRESS = 3,
28261847f8eSopenharmony_ci
28361847f8eSopenharmony_ci  /**
28461847f8eSopenharmony_ci   * House number content type.
28561847f8eSopenharmony_ci   *
28661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
28761847f8eSopenharmony_ci   * @atomicservice
28861847f8eSopenharmony_ci   * @since 12
28961847f8eSopenharmony_ci   */
29061847f8eSopenharmony_ci  HOUSE_NUMBER = 4,
29161847f8eSopenharmony_ci
29261847f8eSopenharmony_ci  /**
29361847f8eSopenharmony_ci   * District address content type.
29461847f8eSopenharmony_ci   *
29561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
29661847f8eSopenharmony_ci   * @atomicservice
29761847f8eSopenharmony_ci   * @since 12
29861847f8eSopenharmony_ci   */
29961847f8eSopenharmony_ci  DISTRICT_ADDRESS = 5,
30061847f8eSopenharmony_ci
30161847f8eSopenharmony_ci  /**
30261847f8eSopenharmony_ci   * City address content type.
30361847f8eSopenharmony_ci   *
30461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
30561847f8eSopenharmony_ci   * @atomicservice
30661847f8eSopenharmony_ci   * @since 12
30761847f8eSopenharmony_ci   */
30861847f8eSopenharmony_ci  CITY_ADDRESS = 6,
30961847f8eSopenharmony_ci
31061847f8eSopenharmony_ci  /**
31161847f8eSopenharmony_ci   * Province address content type.
31261847f8eSopenharmony_ci   *
31361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
31461847f8eSopenharmony_ci   * @atomicservice
31561847f8eSopenharmony_ci   * @since 12
31661847f8eSopenharmony_ci   */
31761847f8eSopenharmony_ci  PROVINCE_ADDRESS = 7,
31861847f8eSopenharmony_ci
31961847f8eSopenharmony_ci  /**
32061847f8eSopenharmony_ci   * Country address content type.
32161847f8eSopenharmony_ci   *
32261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
32361847f8eSopenharmony_ci   * @atomicservice
32461847f8eSopenharmony_ci   * @since 12
32561847f8eSopenharmony_ci   */
32661847f8eSopenharmony_ci  COUNTRY_ADDRESS = 8,
32761847f8eSopenharmony_ci
32861847f8eSopenharmony_ci  /**
32961847f8eSopenharmony_ci   * Person full name content type.
33061847f8eSopenharmony_ci   *
33161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
33261847f8eSopenharmony_ci   * @atomicservice
33361847f8eSopenharmony_ci   * @since 12
33461847f8eSopenharmony_ci   */
33561847f8eSopenharmony_ci  PERSON_FULL_NAME = 9,
33661847f8eSopenharmony_ci
33761847f8eSopenharmony_ci  /**
33861847f8eSopenharmony_ci   * Person last name content type.
33961847f8eSopenharmony_ci   *
34061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
34161847f8eSopenharmony_ci   * @atomicservice
34261847f8eSopenharmony_ci   * @since 12
34361847f8eSopenharmony_ci   */
34461847f8eSopenharmony_ci  PERSON_LAST_NAME = 10,
34561847f8eSopenharmony_ci
34661847f8eSopenharmony_ci  /**
34761847f8eSopenharmony_ci   * Person first name content type.
34861847f8eSopenharmony_ci   *
34961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35061847f8eSopenharmony_ci   * @atomicservice
35161847f8eSopenharmony_ci   * @since 12
35261847f8eSopenharmony_ci   */
35361847f8eSopenharmony_ci  PERSON_FIRST_NAME = 11,
35461847f8eSopenharmony_ci
35561847f8eSopenharmony_ci  /**
35661847f8eSopenharmony_ci   * Phone number content type.
35761847f8eSopenharmony_ci   *
35861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35961847f8eSopenharmony_ci   * @atomicservice
36061847f8eSopenharmony_ci   * @since 12
36161847f8eSopenharmony_ci   */
36261847f8eSopenharmony_ci  PHONE_NUMBER = 12,
36361847f8eSopenharmony_ci
36461847f8eSopenharmony_ci  /**
36561847f8eSopenharmony_ci   * Phone country code content type.
36661847f8eSopenharmony_ci   *
36761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
36861847f8eSopenharmony_ci   * @atomicservice
36961847f8eSopenharmony_ci   * @since 12
37061847f8eSopenharmony_ci   */
37161847f8eSopenharmony_ci  PHONE_COUNTRY_CODE = 13,
37261847f8eSopenharmony_ci
37361847f8eSopenharmony_ci  /**
37461847f8eSopenharmony_ci   * Full phone number content type.
37561847f8eSopenharmony_ci   *
37661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
37761847f8eSopenharmony_ci   * @atomicservice
37861847f8eSopenharmony_ci   * @since 12
37961847f8eSopenharmony_ci   */
38061847f8eSopenharmony_ci  FULL_PHONE_NUMBER = 14,
38161847f8eSopenharmony_ci
38261847f8eSopenharmony_ci  /**
38361847f8eSopenharmony_ci   * Email address content type.
38461847f8eSopenharmony_ci   *
38561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
38661847f8eSopenharmony_ci   * @atomicservice
38761847f8eSopenharmony_ci   * @since 12
38861847f8eSopenharmony_ci   */
38961847f8eSopenharmony_ci  EMAIL_ADDRESS = 15,
39061847f8eSopenharmony_ci
39161847f8eSopenharmony_ci  /**
39261847f8eSopenharmony_ci   * Bank card number content type.
39361847f8eSopenharmony_ci   *
39461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
39561847f8eSopenharmony_ci   * @atomicservice
39661847f8eSopenharmony_ci   * @since 12
39761847f8eSopenharmony_ci   */
39861847f8eSopenharmony_ci  BANK_CARD_NUMBER = 16,
39961847f8eSopenharmony_ci
40061847f8eSopenharmony_ci  /**
40161847f8eSopenharmony_ci   * ID card number content type.
40261847f8eSopenharmony_ci   *
40361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
40461847f8eSopenharmony_ci   * @atomicservice
40561847f8eSopenharmony_ci   * @since 12
40661847f8eSopenharmony_ci   */
40761847f8eSopenharmony_ci  ID_CARD_NUMBER = 17,
40861847f8eSopenharmony_ci
40961847f8eSopenharmony_ci  /**
41061847f8eSopenharmony_ci   * Nickname content type.
41161847f8eSopenharmony_ci   *
41261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
41361847f8eSopenharmony_ci   * @atomicservice
41461847f8eSopenharmony_ci   * @since 12
41561847f8eSopenharmony_ci   */
41661847f8eSopenharmony_ci  NICKNAME = 23,
41761847f8eSopenharmony_ci
41861847f8eSopenharmony_ci  /**
41961847f8eSopenharmony_ci   * Detail info without street content type.
42061847f8eSopenharmony_ci   *
42161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
42261847f8eSopenharmony_ci   * @atomicservice
42361847f8eSopenharmony_ci   * @since 12
42461847f8eSopenharmony_ci   */
42561847f8eSopenharmony_ci  DETAIL_INFO_WITHOUT_STREET = 24,
42661847f8eSopenharmony_ci
42761847f8eSopenharmony_ci  /**
42861847f8eSopenharmony_ci   * Format address content type.
42961847f8eSopenharmony_ci   *
43061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
43161847f8eSopenharmony_ci   * @atomicservice
43261847f8eSopenharmony_ci   * @since 12
43361847f8eSopenharmony_ci   */
43461847f8eSopenharmony_ci  FORMAT_ADDRESS = 25
43561847f8eSopenharmony_ci}
43661847f8eSopenharmony_ci
43761847f8eSopenharmony_ci/**
43861847f8eSopenharmony_ci * Declare the type of soft keyboard.
43961847f8eSopenharmony_ci *
44061847f8eSopenharmony_ci * @enum { number }
44161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
44261847f8eSopenharmony_ci * @since 7
44361847f8eSopenharmony_ci */
44461847f8eSopenharmony_ci/**
44561847f8eSopenharmony_ci * Declare the type of soft keyboard.
44661847f8eSopenharmony_ci *
44761847f8eSopenharmony_ci * @enum { number }
44861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
44961847f8eSopenharmony_ci * @crossplatform
45061847f8eSopenharmony_ci * @since 10
45161847f8eSopenharmony_ci */
45261847f8eSopenharmony_ci/**
45361847f8eSopenharmony_ci * Declare the type of soft keyboard.
45461847f8eSopenharmony_ci *
45561847f8eSopenharmony_ci * @enum { number }
45661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
45761847f8eSopenharmony_ci * @crossplatform
45861847f8eSopenharmony_ci * @atomicservice
45961847f8eSopenharmony_ci * @since 11
46061847f8eSopenharmony_ci */
46161847f8eSopenharmony_cideclare enum EnterKeyType {
46261847f8eSopenharmony_ci  /**
46361847f8eSopenharmony_ci   * Go.
46461847f8eSopenharmony_ci   *
46561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
46661847f8eSopenharmony_ci   * @since 7
46761847f8eSopenharmony_ci   */
46861847f8eSopenharmony_ci  /**
46961847f8eSopenharmony_ci   * Go.
47061847f8eSopenharmony_ci   *
47161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
47261847f8eSopenharmony_ci   * @crossplatform
47361847f8eSopenharmony_ci   * @since 10
47461847f8eSopenharmony_ci   */
47561847f8eSopenharmony_ci  /**
47661847f8eSopenharmony_ci   * Go.
47761847f8eSopenharmony_ci   *
47861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
47961847f8eSopenharmony_ci   * @crossplatform
48061847f8eSopenharmony_ci   * @atomicservice
48161847f8eSopenharmony_ci   * @since 11
48261847f8eSopenharmony_ci   */
48361847f8eSopenharmony_ci  Go = 2,
48461847f8eSopenharmony_ci
48561847f8eSopenharmony_ci  /**
48661847f8eSopenharmony_ci   * Search.
48761847f8eSopenharmony_ci   *
48861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
48961847f8eSopenharmony_ci   * @since 7
49061847f8eSopenharmony_ci   */
49161847f8eSopenharmony_ci  /**
49261847f8eSopenharmony_ci   * Search.
49361847f8eSopenharmony_ci   *
49461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
49561847f8eSopenharmony_ci   * @crossplatform
49661847f8eSopenharmony_ci   * @since 10
49761847f8eSopenharmony_ci   */
49861847f8eSopenharmony_ci  /**
49961847f8eSopenharmony_ci   * Search.
50061847f8eSopenharmony_ci   *
50161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
50261847f8eSopenharmony_ci   * @crossplatform
50361847f8eSopenharmony_ci   * @atomicservice
50461847f8eSopenharmony_ci   * @since 11
50561847f8eSopenharmony_ci   */
50661847f8eSopenharmony_ci  Search = 3,
50761847f8eSopenharmony_ci
50861847f8eSopenharmony_ci  /**
50961847f8eSopenharmony_ci   * Send.
51061847f8eSopenharmony_ci   *
51161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
51261847f8eSopenharmony_ci   * @since 7
51361847f8eSopenharmony_ci   */
51461847f8eSopenharmony_ci  /**
51561847f8eSopenharmony_ci   * Send.
51661847f8eSopenharmony_ci   *
51761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
51861847f8eSopenharmony_ci   * @crossplatform
51961847f8eSopenharmony_ci   * @since 10
52061847f8eSopenharmony_ci   */
52161847f8eSopenharmony_ci  /**
52261847f8eSopenharmony_ci   * Send.
52361847f8eSopenharmony_ci   *
52461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
52561847f8eSopenharmony_ci   * @crossplatform
52661847f8eSopenharmony_ci   * @atomicservice
52761847f8eSopenharmony_ci   * @since 11
52861847f8eSopenharmony_ci   */
52961847f8eSopenharmony_ci  Send = 4,
53061847f8eSopenharmony_ci
53161847f8eSopenharmony_ci  /**
53261847f8eSopenharmony_ci   * Next.
53361847f8eSopenharmony_ci   *
53461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
53561847f8eSopenharmony_ci   * @since 7
53661847f8eSopenharmony_ci   */
53761847f8eSopenharmony_ci  /**
53861847f8eSopenharmony_ci   * Next.
53961847f8eSopenharmony_ci   *
54061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
54161847f8eSopenharmony_ci   * @crossplatform
54261847f8eSopenharmony_ci   * @since 10
54361847f8eSopenharmony_ci   */
54461847f8eSopenharmony_ci  /**
54561847f8eSopenharmony_ci   * Next.
54661847f8eSopenharmony_ci   *
54761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
54861847f8eSopenharmony_ci   * @crossplatform
54961847f8eSopenharmony_ci   * @atomicservice
55061847f8eSopenharmony_ci   * @since 11
55161847f8eSopenharmony_ci   */
55261847f8eSopenharmony_ci  Next = 5,
55361847f8eSopenharmony_ci
55461847f8eSopenharmony_ci  /**
55561847f8eSopenharmony_ci   * Done.
55661847f8eSopenharmony_ci   *
55761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
55861847f8eSopenharmony_ci   * @since 7
55961847f8eSopenharmony_ci   */
56061847f8eSopenharmony_ci  /**
56161847f8eSopenharmony_ci   * Done.
56261847f8eSopenharmony_ci   *
56361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
56461847f8eSopenharmony_ci   * @crossplatform
56561847f8eSopenharmony_ci   * @since 10
56661847f8eSopenharmony_ci   */
56761847f8eSopenharmony_ci  /**
56861847f8eSopenharmony_ci   * Done.
56961847f8eSopenharmony_ci   *
57061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
57161847f8eSopenharmony_ci   * @crossplatform
57261847f8eSopenharmony_ci   * @atomicservice
57361847f8eSopenharmony_ci   * @since 11
57461847f8eSopenharmony_ci   */
57561847f8eSopenharmony_ci  Done = 6,
57661847f8eSopenharmony_ci
57761847f8eSopenharmony_ci  /**
57861847f8eSopenharmony_ci   * Showed as 'previous' pattern.
57961847f8eSopenharmony_ci   *
58061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
58161847f8eSopenharmony_ci   * @crossplatform
58261847f8eSopenharmony_ci   * @since 11
58361847f8eSopenharmony_ci   */
58461847f8eSopenharmony_ci  /**
58561847f8eSopenharmony_ci   * Showed as 'previous' pattern.
58661847f8eSopenharmony_ci   *
58761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
58861847f8eSopenharmony_ci   * @crossplatform
58961847f8eSopenharmony_ci   * @atomicservice
59061847f8eSopenharmony_ci   * @since 12
59161847f8eSopenharmony_ci   */
59261847f8eSopenharmony_ci  PREVIOUS = 7,
59361847f8eSopenharmony_ci
59461847f8eSopenharmony_ci  /**
59561847f8eSopenharmony_ci   * Showed as 'new line' pattern.
59661847f8eSopenharmony_ci   *
59761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
59861847f8eSopenharmony_ci   * @crossplatform
59961847f8eSopenharmony_ci   * @since 11
60061847f8eSopenharmony_ci   */
60161847f8eSopenharmony_ci  /**
60261847f8eSopenharmony_ci   * Showed as 'new line' pattern.
60361847f8eSopenharmony_ci   *
60461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
60561847f8eSopenharmony_ci   * @crossplatform
60661847f8eSopenharmony_ci   * @atomicservice
60761847f8eSopenharmony_ci   * @since 12
60861847f8eSopenharmony_ci   */
60961847f8eSopenharmony_ci  NEW_LINE = 8,
61061847f8eSopenharmony_ci}
61161847f8eSopenharmony_ci
61261847f8eSopenharmony_ci/**
61361847f8eSopenharmony_ci  * Defines the underline color width property.
61461847f8eSopenharmony_ci  *
61561847f8eSopenharmony_ci  * @interface UnderlineColor
61661847f8eSopenharmony_ci  * @syscap SystemCapability.ArkUI.ArkUI.Full
61761847f8eSopenharmony_ci  * @crossplatform
61861847f8eSopenharmony_ci  * @atomicservice
61961847f8eSopenharmony_ci  * @since 12
62061847f8eSopenharmony_ci  */
62161847f8eSopenharmony_cideclare interface UnderlineColor {
62261847f8eSopenharmony_ci  /**
62361847f8eSopenharmony_ci    * Typing underline color width property.
62461847f8eSopenharmony_ci    *
62561847f8eSopenharmony_ci    * @type { ?(ResourceColor | undefined) }
62661847f8eSopenharmony_ci    * @syscap SystemCapability.ArkUI.ArkUI.Full
62761847f8eSopenharmony_ci    * @crossplatform
62861847f8eSopenharmony_ci    * @atomicservice
62961847f8eSopenharmony_ci    * @since 12
63061847f8eSopenharmony_ci    */
63161847f8eSopenharmony_ci  typing?: ResourceColor | undefined;
63261847f8eSopenharmony_ci  /**
63361847f8eSopenharmony_ci    * Normal underline color width property.
63461847f8eSopenharmony_ci    *
63561847f8eSopenharmony_ci    * @type { ?(ResourceColor | undefined) }
63661847f8eSopenharmony_ci    * @syscap SystemCapability.ArkUI.ArkUI.Full
63761847f8eSopenharmony_ci    * @crossplatform
63861847f8eSopenharmony_ci    * @atomicservice
63961847f8eSopenharmony_ci    * @since 12
64061847f8eSopenharmony_ci    */
64161847f8eSopenharmony_ci  normal?: ResourceColor | undefined;
64261847f8eSopenharmony_ci  /**
64361847f8eSopenharmony_ci    * Error underline color width property.
64461847f8eSopenharmony_ci    *
64561847f8eSopenharmony_ci    * @type { ?(ResourceColor | undefined) }
64661847f8eSopenharmony_ci    * @syscap SystemCapability.ArkUI.ArkUI.Full
64761847f8eSopenharmony_ci    * @crossplatform
64861847f8eSopenharmony_ci    * @atomicservice
64961847f8eSopenharmony_ci    * @since 12
65061847f8eSopenharmony_ci    */
65161847f8eSopenharmony_ci  error?: ResourceColor | undefined;
65261847f8eSopenharmony_ci  /**
65361847f8eSopenharmony_ci    * Disable underline color width property.
65461847f8eSopenharmony_ci    *
65561847f8eSopenharmony_ci    * @type { ?(ResourceColor | undefined) }
65661847f8eSopenharmony_ci    * @syscap SystemCapability.ArkUI.ArkUI.Full
65761847f8eSopenharmony_ci    * @crossplatform
65861847f8eSopenharmony_ci    * @atomicservice
65961847f8eSopenharmony_ci    * @since 12
66061847f8eSopenharmony_ci    */
66161847f8eSopenharmony_ci  disable?: ResourceColor | undefined;
66261847f8eSopenharmony_ci} 
66361847f8eSopenharmony_ci
66461847f8eSopenharmony_ci/**
66561847f8eSopenharmony_ci * Provides the method of keeping TextInput editable state when submitted.
66661847f8eSopenharmony_ci *
66761847f8eSopenharmony_ci * @interface SubmitEvent
66861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
66961847f8eSopenharmony_ci * @crossplatform
67061847f8eSopenharmony_ci * @atomicservice
67161847f8eSopenharmony_ci * @since 11
67261847f8eSopenharmony_ci */
67361847f8eSopenharmony_cideclare interface SubmitEvent {
67461847f8eSopenharmony_ci  /**
67561847f8eSopenharmony_ci   * Keeps TextInput editable state when submitted
67661847f8eSopenharmony_ci   *
67761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
67861847f8eSopenharmony_ci   * @crossplatform
67961847f8eSopenharmony_ci   * @atomicservice
68061847f8eSopenharmony_ci   * @since 11
68161847f8eSopenharmony_ci   */
68261847f8eSopenharmony_ci  keepEditableState(): void;
68361847f8eSopenharmony_ci
68461847f8eSopenharmony_ci  /**
68561847f8eSopenharmony_ci   * Sets the current value of TextInput.
68661847f8eSopenharmony_ci   *
68761847f8eSopenharmony_ci   * @type { string }
68861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
68961847f8eSopenharmony_ci   * @crossplatform
69061847f8eSopenharmony_ci   * @atomicservice
69161847f8eSopenharmony_ci   * @since 11
69261847f8eSopenharmony_ci   */
69361847f8eSopenharmony_ci  text: string;
69461847f8eSopenharmony_ci}
69561847f8eSopenharmony_ci
69661847f8eSopenharmony_ci/**
69761847f8eSopenharmony_ci * Provides the method of switching the cursor position.
69861847f8eSopenharmony_ci *
69961847f8eSopenharmony_ci * @extends TextContentControllerBase
70061847f8eSopenharmony_ci * @since 8
70161847f8eSopenharmony_ci */
70261847f8eSopenharmony_ci/**
70361847f8eSopenharmony_ci * Provides the method of switching the cursor position.
70461847f8eSopenharmony_ci *
70561847f8eSopenharmony_ci * @extends TextContentControllerBase
70661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
70761847f8eSopenharmony_ci * @crossplatform
70861847f8eSopenharmony_ci * @since 10
70961847f8eSopenharmony_ci */
71061847f8eSopenharmony_ci/**
71161847f8eSopenharmony_ci * Provides the method of switching the cursor position.
71261847f8eSopenharmony_ci *
71361847f8eSopenharmony_ci * @extends TextContentControllerBase
71461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
71561847f8eSopenharmony_ci * @crossplatform
71661847f8eSopenharmony_ci * @atomicservice
71761847f8eSopenharmony_ci * @since 11
71861847f8eSopenharmony_ci */
71961847f8eSopenharmony_cideclare class TextInputController extends TextContentControllerBase {
72061847f8eSopenharmony_ci  /**
72161847f8eSopenharmony_ci   * constructor.
72261847f8eSopenharmony_ci   *
72361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
72461847f8eSopenharmony_ci   * @since 8
72561847f8eSopenharmony_ci   */
72661847f8eSopenharmony_ci  /**
72761847f8eSopenharmony_ci   * constructor.
72861847f8eSopenharmony_ci   *
72961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
73061847f8eSopenharmony_ci   * @crossplatform
73161847f8eSopenharmony_ci   * @since 10
73261847f8eSopenharmony_ci   */
73361847f8eSopenharmony_ci  /**
73461847f8eSopenharmony_ci   * constructor.
73561847f8eSopenharmony_ci   *
73661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
73761847f8eSopenharmony_ci   * @crossplatform
73861847f8eSopenharmony_ci   * @atomicservice
73961847f8eSopenharmony_ci   * @since 11
74061847f8eSopenharmony_ci   */
74161847f8eSopenharmony_ci  constructor();
74261847f8eSopenharmony_ci
74361847f8eSopenharmony_ci  /**
74461847f8eSopenharmony_ci   * Called when the position of the insertion cursor is set.
74561847f8eSopenharmony_ci   *
74661847f8eSopenharmony_ci   * @param { number } value
74761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
74861847f8eSopenharmony_ci   * @since 8
74961847f8eSopenharmony_ci   */
75061847f8eSopenharmony_ci  /**
75161847f8eSopenharmony_ci   * Called when the position of the insertion cursor is set.
75261847f8eSopenharmony_ci   *
75361847f8eSopenharmony_ci   * @param { number } value
75461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
75561847f8eSopenharmony_ci   * @crossplatform
75661847f8eSopenharmony_ci   * @since 10
75761847f8eSopenharmony_ci   */
75861847f8eSopenharmony_ci  /**
75961847f8eSopenharmony_ci   * Called when the position of the insertion cursor is set.
76061847f8eSopenharmony_ci   *
76161847f8eSopenharmony_ci   * @param { number } value
76261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
76361847f8eSopenharmony_ci   * @crossplatform
76461847f8eSopenharmony_ci   * @atomicservice
76561847f8eSopenharmony_ci   * @since 11
76661847f8eSopenharmony_ci   */
76761847f8eSopenharmony_ci  caretPosition(value: number): void;
76861847f8eSopenharmony_ci
76961847f8eSopenharmony_ci  /**
77061847f8eSopenharmony_ci   * Text selection is achieved by specifying the start and end positions of the text.
77161847f8eSopenharmony_ci   *
77261847f8eSopenharmony_ci   * @param { number } selectionStart - The start position of the selected text.
77361847f8eSopenharmony_ci   * @param { number } selectionEnd - The end position of the selected text.
77461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
77561847f8eSopenharmony_ci   * @crossplatform
77661847f8eSopenharmony_ci   * @since 10
77761847f8eSopenharmony_ci   */
77861847f8eSopenharmony_ci  /**
77961847f8eSopenharmony_ci   * Text selection is achieved by specifying the start and end positions of the text.
78061847f8eSopenharmony_ci   *
78161847f8eSopenharmony_ci   * @param { number } selectionStart - The start position of the selected text.
78261847f8eSopenharmony_ci   * @param { number } selectionEnd - The end position of the selected text.
78361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
78461847f8eSopenharmony_ci   * @crossplatform
78561847f8eSopenharmony_ci   * @atomicservice
78661847f8eSopenharmony_ci   * @since 11
78761847f8eSopenharmony_ci   */
78861847f8eSopenharmony_ci  /**
78961847f8eSopenharmony_ci   * Text selection is achieved by specifying the start and end positions of the text.
79061847f8eSopenharmony_ci   *
79161847f8eSopenharmony_ci   * @param { number } selectionStart - The start position of the selected text.
79261847f8eSopenharmony_ci   * @param { number } selectionEnd - The end position of the selected text.
79361847f8eSopenharmony_ci   * @param { SelectionOptions } [options] - Indicates the options of the text selection.
79461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
79561847f8eSopenharmony_ci   * @crossplatform
79661847f8eSopenharmony_ci   * @atomicservice
79761847f8eSopenharmony_ci   * @since 12
79861847f8eSopenharmony_ci   */
79961847f8eSopenharmony_ci  setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void;
80061847f8eSopenharmony_ci
80161847f8eSopenharmony_ci  /**
80261847f8eSopenharmony_ci   * Exit edit state.
80361847f8eSopenharmony_ci   *
80461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
80561847f8eSopenharmony_ci   * @crossplatform
80661847f8eSopenharmony_ci   * @since 10
80761847f8eSopenharmony_ci   */
80861847f8eSopenharmony_ci  /**
80961847f8eSopenharmony_ci   * Exit edit state.
81061847f8eSopenharmony_ci   *
81161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
81261847f8eSopenharmony_ci   * @crossplatform
81361847f8eSopenharmony_ci   * @atomicservice
81461847f8eSopenharmony_ci   * @since 11
81561847f8eSopenharmony_ci   */
81661847f8eSopenharmony_ci  stopEditing(): void;
81761847f8eSopenharmony_ci}
81861847f8eSopenharmony_ci
81961847f8eSopenharmony_ci/**
82061847f8eSopenharmony_ci * Defines the options of TextInput.
82161847f8eSopenharmony_ci *
82261847f8eSopenharmony_ci * @interface TextInputOptions
82361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
82461847f8eSopenharmony_ci * @since 7
82561847f8eSopenharmony_ci */
82661847f8eSopenharmony_ci/**
82761847f8eSopenharmony_ci * Defines the options of TextInput.
82861847f8eSopenharmony_ci *
82961847f8eSopenharmony_ci * @interface TextInputOptions
83061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
83161847f8eSopenharmony_ci * @crossplatform
83261847f8eSopenharmony_ci * @since 10
83361847f8eSopenharmony_ci */
83461847f8eSopenharmony_ci/**
83561847f8eSopenharmony_ci * Defines the options of TextInput.
83661847f8eSopenharmony_ci *
83761847f8eSopenharmony_ci * @interface TextInputOptions
83861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
83961847f8eSopenharmony_ci * @crossplatform
84061847f8eSopenharmony_ci * @atomicservice
84161847f8eSopenharmony_ci * @since 11
84261847f8eSopenharmony_ci */
84361847f8eSopenharmony_cideclare interface TextInputOptions {
84461847f8eSopenharmony_ci  /**
84561847f8eSopenharmony_ci   * The place holder text string.
84661847f8eSopenharmony_ci   *
84761847f8eSopenharmony_ci   * @type { ?ResourceStr }
84861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
84961847f8eSopenharmony_ci   * @since 7
85061847f8eSopenharmony_ci   */
85161847f8eSopenharmony_ci  /**
85261847f8eSopenharmony_ci   * The place holder text string.
85361847f8eSopenharmony_ci   *
85461847f8eSopenharmony_ci   * @type { ?ResourceStr }
85561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
85661847f8eSopenharmony_ci   * @crossplatform
85761847f8eSopenharmony_ci   * @since 10
85861847f8eSopenharmony_ci   */
85961847f8eSopenharmony_ci  /**
86061847f8eSopenharmony_ci   * The place holder text string.
86161847f8eSopenharmony_ci   *
86261847f8eSopenharmony_ci   * @type { ?ResourceStr }
86361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
86461847f8eSopenharmony_ci   * @crossplatform
86561847f8eSopenharmony_ci   * @atomicservice
86661847f8eSopenharmony_ci   * @since 11
86761847f8eSopenharmony_ci   */
86861847f8eSopenharmony_ci  placeholder?: ResourceStr;
86961847f8eSopenharmony_ci
87061847f8eSopenharmony_ci  /**
87161847f8eSopenharmony_ci   * Sets the current value of TextInput.
87261847f8eSopenharmony_ci   *
87361847f8eSopenharmony_ci   * @type { ?ResourceStr }
87461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
87561847f8eSopenharmony_ci   * @since 7
87661847f8eSopenharmony_ci   */
87761847f8eSopenharmony_ci  /**
87861847f8eSopenharmony_ci   * Sets the current value of TextInput.
87961847f8eSopenharmony_ci   *
88061847f8eSopenharmony_ci   * @type { ?ResourceStr }
88161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
88261847f8eSopenharmony_ci   * @crossplatform
88361847f8eSopenharmony_ci   * @since 10
88461847f8eSopenharmony_ci   */
88561847f8eSopenharmony_ci  /**
88661847f8eSopenharmony_ci   * Sets the current value of TextInput.
88761847f8eSopenharmony_ci   *
88861847f8eSopenharmony_ci   * @type { ?ResourceStr }
88961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
89061847f8eSopenharmony_ci   * @crossplatform
89161847f8eSopenharmony_ci   * @atomicservice
89261847f8eSopenharmony_ci   * @since 11
89361847f8eSopenharmony_ci   */
89461847f8eSopenharmony_ci  text?: ResourceStr;
89561847f8eSopenharmony_ci
89661847f8eSopenharmony_ci  /**
89761847f8eSopenharmony_ci   * Called when the position of the insertion cursor is set.
89861847f8eSopenharmony_ci   *
89961847f8eSopenharmony_ci   * @type { ?TextInputController }
90061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
90161847f8eSopenharmony_ci   * @since 8
90261847f8eSopenharmony_ci   */
90361847f8eSopenharmony_ci  /**
90461847f8eSopenharmony_ci   * Called when the position of the insertion cursor is set.
90561847f8eSopenharmony_ci   *
90661847f8eSopenharmony_ci   * @type { ?TextInputController }
90761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
90861847f8eSopenharmony_ci   * @crossplatform
90961847f8eSopenharmony_ci   * @since 10
91061847f8eSopenharmony_ci   */
91161847f8eSopenharmony_ci  /**
91261847f8eSopenharmony_ci   * Called when the position of the insertion cursor is set.
91361847f8eSopenharmony_ci   *
91461847f8eSopenharmony_ci   * @type { ?TextInputController }
91561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
91661847f8eSopenharmony_ci   * @crossplatform
91761847f8eSopenharmony_ci   * @atomicservice
91861847f8eSopenharmony_ci   * @since 11
91961847f8eSopenharmony_ci   */
92061847f8eSopenharmony_ci  controller?: TextInputController;
92161847f8eSopenharmony_ci}
92261847f8eSopenharmony_ci
92361847f8eSopenharmony_ci/**
92461847f8eSopenharmony_ci * Text input style.
92561847f8eSopenharmony_ci *
92661847f8eSopenharmony_ci * @enum { number }
92761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
92861847f8eSopenharmony_ci * @since 9
92961847f8eSopenharmony_ci */
93061847f8eSopenharmony_ci/**
93161847f8eSopenharmony_ci * Text input style.
93261847f8eSopenharmony_ci *
93361847f8eSopenharmony_ci * @enum { number }
93461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
93561847f8eSopenharmony_ci * @crossplatform
93661847f8eSopenharmony_ci * @since 10
93761847f8eSopenharmony_ci */
93861847f8eSopenharmony_ci/**
93961847f8eSopenharmony_ci * Text input style.
94061847f8eSopenharmony_ci *
94161847f8eSopenharmony_ci * @enum { number }
94261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
94361847f8eSopenharmony_ci * @crossplatform
94461847f8eSopenharmony_ci * @atomicservice
94561847f8eSopenharmony_ci * @since 11
94661847f8eSopenharmony_ci */
94761847f8eSopenharmony_cideclare enum TextInputStyle {
94861847f8eSopenharmony_ci  /**
94961847f8eSopenharmony_ci   * Text input default style.
95061847f8eSopenharmony_ci   *
95161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
95261847f8eSopenharmony_ci   * @since 9
95361847f8eSopenharmony_ci   */
95461847f8eSopenharmony_ci  /**
95561847f8eSopenharmony_ci   * Text input default style.
95661847f8eSopenharmony_ci   *
95761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
95861847f8eSopenharmony_ci   * @crossplatform
95961847f8eSopenharmony_ci   * @since 10
96061847f8eSopenharmony_ci   */
96161847f8eSopenharmony_ci  /**
96261847f8eSopenharmony_ci   * Text input default style.
96361847f8eSopenharmony_ci   *
96461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
96561847f8eSopenharmony_ci   * @crossplatform
96661847f8eSopenharmony_ci   * @atomicservice
96761847f8eSopenharmony_ci   * @since 11
96861847f8eSopenharmony_ci   */
96961847f8eSopenharmony_ci  Default,
97061847f8eSopenharmony_ci
97161847f8eSopenharmony_ci  /**
97261847f8eSopenharmony_ci   * Text input inline style.
97361847f8eSopenharmony_ci   *
97461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
97561847f8eSopenharmony_ci   * @since 9
97661847f8eSopenharmony_ci   */
97761847f8eSopenharmony_ci  /**
97861847f8eSopenharmony_ci   * Text input inline style.
97961847f8eSopenharmony_ci   *
98061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
98161847f8eSopenharmony_ci   * @crossplatform
98261847f8eSopenharmony_ci   * @since 10
98361847f8eSopenharmony_ci   */
98461847f8eSopenharmony_ci  /**
98561847f8eSopenharmony_ci   * Text input inline style.
98661847f8eSopenharmony_ci   *
98761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
98861847f8eSopenharmony_ci   * @crossplatform
98961847f8eSopenharmony_ci   * @atomicservice
99061847f8eSopenharmony_ci   * @since 11
99161847f8eSopenharmony_ci   */
99261847f8eSopenharmony_ci  Inline
99361847f8eSopenharmony_ci}
99461847f8eSopenharmony_ci
99561847f8eSopenharmony_ci/**
99661847f8eSopenharmony_ci * Provides a single-line text input component interface.
99761847f8eSopenharmony_ci *
99861847f8eSopenharmony_ci * @interface TextInputInterface
99961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
100061847f8eSopenharmony_ci * @since 7
100161847f8eSopenharmony_ci */
100261847f8eSopenharmony_ci/**
100361847f8eSopenharmony_ci * Provides a single-line text input component interface.
100461847f8eSopenharmony_ci *
100561847f8eSopenharmony_ci * @interface TextInputInterface
100661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
100761847f8eSopenharmony_ci * @crossplatform
100861847f8eSopenharmony_ci * @since 10
100961847f8eSopenharmony_ci */
101061847f8eSopenharmony_ci/**
101161847f8eSopenharmony_ci * Provides a single-line text input component interface.
101261847f8eSopenharmony_ci *
101361847f8eSopenharmony_ci * @interface TextInputInterface
101461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
101561847f8eSopenharmony_ci * @crossplatform
101661847f8eSopenharmony_ci * @atomicservice
101761847f8eSopenharmony_ci * @since 11
101861847f8eSopenharmony_ci */
101961847f8eSopenharmony_ciinterface TextInputInterface {
102061847f8eSopenharmony_ci  /**
102161847f8eSopenharmony_ci   * Called when writing a single line of text.
102261847f8eSopenharmony_ci   *
102361847f8eSopenharmony_ci   * @param { TextInputOptions } value
102461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
102561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
102661847f8eSopenharmony_ci   * @since 7
102761847f8eSopenharmony_ci   */
102861847f8eSopenharmony_ci  /**
102961847f8eSopenharmony_ci   * Called when writing a single line of text.
103061847f8eSopenharmony_ci   *
103161847f8eSopenharmony_ci   * @param { TextInputOptions } value
103261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
103361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
103461847f8eSopenharmony_ci   * @crossplatform
103561847f8eSopenharmony_ci   * @since 10
103661847f8eSopenharmony_ci   */
103761847f8eSopenharmony_ci  /**
103861847f8eSopenharmony_ci   * Called when writing a single line of text.
103961847f8eSopenharmony_ci   *
104061847f8eSopenharmony_ci   * @param { TextInputOptions } value
104161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
104261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
104361847f8eSopenharmony_ci   * @crossplatform
104461847f8eSopenharmony_ci   * @atomicservice
104561847f8eSopenharmony_ci   * @since 11
104661847f8eSopenharmony_ci   */
104761847f8eSopenharmony_ci  (value?: TextInputOptions): TextInputAttribute;
104861847f8eSopenharmony_ci}
104961847f8eSopenharmony_ci
105061847f8eSopenharmony_ci/**
105161847f8eSopenharmony_ci * PasswordIcon object.
105261847f8eSopenharmony_ci *
105361847f8eSopenharmony_ci * @interface PasswordIcon
105461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
105561847f8eSopenharmony_ci * @since 10
105661847f8eSopenharmony_ci */
105761847f8eSopenharmony_ci/**
105861847f8eSopenharmony_ci * PasswordIcon object.
105961847f8eSopenharmony_ci *
106061847f8eSopenharmony_ci * @interface PasswordIcon
106161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
106261847f8eSopenharmony_ci * @crossplatform
106361847f8eSopenharmony_ci * @atomicservice
106461847f8eSopenharmony_ci * @since 11
106561847f8eSopenharmony_ci */
106661847f8eSopenharmony_ciinterface PasswordIcon {
106761847f8eSopenharmony_ci  /**
106861847f8eSopenharmony_ci   * Define the on icon source of PasswordIcon.
106961847f8eSopenharmony_ci   *
107061847f8eSopenharmony_ci   * @type { ?(string | Resource) }
107161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
107261847f8eSopenharmony_ci   * @since 10
107361847f8eSopenharmony_ci   */
107461847f8eSopenharmony_ci  /**
107561847f8eSopenharmony_ci   * Define the on icon source of PasswordIcon.
107661847f8eSopenharmony_ci   *
107761847f8eSopenharmony_ci   * @type { ?(string | Resource) }
107861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
107961847f8eSopenharmony_ci   * @crossplatform
108061847f8eSopenharmony_ci   * @atomicservice
108161847f8eSopenharmony_ci   * @since 11
108261847f8eSopenharmony_ci   */
108361847f8eSopenharmony_ci  onIconSrc?: string | Resource;
108461847f8eSopenharmony_ci
108561847f8eSopenharmony_ci  /**
108661847f8eSopenharmony_ci   * Define the off icon source of PasswordIcon.
108761847f8eSopenharmony_ci   *
108861847f8eSopenharmony_ci   * @type { ?(string | Resource) }
108961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
109061847f8eSopenharmony_ci   * @since 10
109161847f8eSopenharmony_ci   */
109261847f8eSopenharmony_ci  /**
109361847f8eSopenharmony_ci   * Define the off icon source of PasswordIcon.
109461847f8eSopenharmony_ci   *
109561847f8eSopenharmony_ci   * @type { ?(string | Resource) }
109661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
109761847f8eSopenharmony_ci   * @crossplatform
109861847f8eSopenharmony_ci   * @atomicservice
109961847f8eSopenharmony_ci   * @since 11
110061847f8eSopenharmony_ci   */
110161847f8eSopenharmony_ci  offIconSrc?: string | Resource;
110261847f8eSopenharmony_ci}
110361847f8eSopenharmony_ci
110461847f8eSopenharmony_ci/**
110561847f8eSopenharmony_ci * Defines a TextInput callback when onSubmit.
110661847f8eSopenharmony_ci *
110761847f8eSopenharmony_ci * @typedef { function } OnSubmitCallback
110861847f8eSopenharmony_ci * @param { EnterKeyType } enterKey - Input method Enter key type.
110961847f8eSopenharmony_ci * @param { SubmitEvent } event - The event submitted.
111061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
111161847f8eSopenharmony_ci * @crossplatform
111261847f8eSopenharmony_ci * @atomicservice
111361847f8eSopenharmony_ci * @since 14
111461847f8eSopenharmony_ci */
111561847f8eSopenharmony_cideclare type OnSubmitCallback = (enterKey: EnterKeyType, event: SubmitEvent) => void;
111661847f8eSopenharmony_ci
111761847f8eSopenharmony_ci/**
111861847f8eSopenharmony_ci * Defines a TextInput callback when onTextSelectionChange.
111961847f8eSopenharmony_ci *
112061847f8eSopenharmony_ci * @typedef { function } OnTextSelectionChangeCallback
112161847f8eSopenharmony_ci * @param { number } selectionStart - The starting position of the selected text, the starting position of the text is 0.
112261847f8eSopenharmony_ci * @param { number } selectionEnd - The end location of the selected text.
112361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
112461847f8eSopenharmony_ci * @crossplatform
112561847f8eSopenharmony_ci * @atomicservice
112661847f8eSopenharmony_ci * @since 14
112761847f8eSopenharmony_ci */
112861847f8eSopenharmony_cideclare type OnTextSelectionChangeCallback = (selectionStart: number, selectionEnd: number) => void;
112961847f8eSopenharmony_ci
113061847f8eSopenharmony_ci/**
113161847f8eSopenharmony_ci * Defines a TextInput callback when onContentScroll.
113261847f8eSopenharmony_ci *
113361847f8eSopenharmony_ci * @typedef { function } OnContentScrollCallback
113461847f8eSopenharmony_ci * @param { number } totalOffsetX - The text is offset in px on the horizontal axis of the content area.
113561847f8eSopenharmony_ci * @param { number } totalOffsetY - The text is offset in px on the vertical axis of the content area.
113661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
113761847f8eSopenharmony_ci * @crossplatform
113861847f8eSopenharmony_ci * @atomicservice
113961847f8eSopenharmony_ci * @since 14
114061847f8eSopenharmony_ci */
114161847f8eSopenharmony_cideclare type OnContentScrollCallback = (totalOffsetX: number, totalOffsetY: number) => void;
114261847f8eSopenharmony_ci
114361847f8eSopenharmony_ci
114461847f8eSopenharmony_ci/**
114561847f8eSopenharmony_ci * Defines a TextInput callback when onPaste.
114661847f8eSopenharmony_ci *
114761847f8eSopenharmony_ci * @typedef { function } OnPasteCallback
114861847f8eSopenharmony_ci * @param { string } content - The text content of the paste.
114961847f8eSopenharmony_ci * @param { PasteEvent } event - User-defined paste event.
115061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
115161847f8eSopenharmony_ci * @crossplatform
115261847f8eSopenharmony_ci * @atomicservice
115361847f8eSopenharmony_ci * @since 14
115461847f8eSopenharmony_ci */
115561847f8eSopenharmony_cideclare type OnPasteCallback = (content: string, event: PasteEvent) => void;
115661847f8eSopenharmony_ci
115761847f8eSopenharmony_ci/**
115861847f8eSopenharmony_ci * Defines the TextInput attribute functions.
115961847f8eSopenharmony_ci *
116061847f8eSopenharmony_ci * @extends CommonMethod<TextInputAttribute>
116161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
116261847f8eSopenharmony_ci * @since 7
116361847f8eSopenharmony_ci */
116461847f8eSopenharmony_ci/**
116561847f8eSopenharmony_ci * Defines the TextInput attribute functions.
116661847f8eSopenharmony_ci *
116761847f8eSopenharmony_ci * @extends CommonMethod<TextInputAttribute>
116861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
116961847f8eSopenharmony_ci * @crossplatform
117061847f8eSopenharmony_ci * @since 10
117161847f8eSopenharmony_ci */
117261847f8eSopenharmony_ci/**
117361847f8eSopenharmony_ci * Defines the TextInput attribute functions.
117461847f8eSopenharmony_ci *
117561847f8eSopenharmony_ci * @extends CommonMethod<TextInputAttribute>
117661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
117761847f8eSopenharmony_ci * @crossplatform
117861847f8eSopenharmony_ci * @atomicservice
117961847f8eSopenharmony_ci * @since 11
118061847f8eSopenharmony_ci */
118161847f8eSopenharmony_cideclare class TextInputAttribute extends CommonMethod<TextInputAttribute> {
118261847f8eSopenharmony_ci  /**
118361847f8eSopenharmony_ci   * Called when the input type is set.
118461847f8eSopenharmony_ci   *
118561847f8eSopenharmony_ci   * @param { InputType } value
118661847f8eSopenharmony_ci   * @returns { TextInputAttribute }
118761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
118861847f8eSopenharmony_ci   * @since 7
118961847f8eSopenharmony_ci   */
119061847f8eSopenharmony_ci  /**
119161847f8eSopenharmony_ci   * Called when the input type is set.
119261847f8eSopenharmony_ci   *
119361847f8eSopenharmony_ci   * @param { InputType } value
119461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
119561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
119661847f8eSopenharmony_ci   * @crossplatform
119761847f8eSopenharmony_ci   * @since 10
119861847f8eSopenharmony_ci   */
119961847f8eSopenharmony_ci  /**
120061847f8eSopenharmony_ci   * Called when the input type is set.
120161847f8eSopenharmony_ci   *
120261847f8eSopenharmony_ci   * @param { InputType } value
120361847f8eSopenharmony_ci   * @returns { TextInputAttribute }
120461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
120561847f8eSopenharmony_ci   * @crossplatform
120661847f8eSopenharmony_ci   * @atomicservice
120761847f8eSopenharmony_ci   * @since 11
120861847f8eSopenharmony_ci   */
120961847f8eSopenharmony_ci  type(value: InputType): TextInputAttribute;
121061847f8eSopenharmony_ci
121161847f8eSopenharmony_ci  /**
121261847f8eSopenharmony_ci   * Called when the content type is set.
121361847f8eSopenharmony_ci   *
121461847f8eSopenharmony_ci   * @param { ContentType } value
121561847f8eSopenharmony_ci   * @returns { TextInputAttribute }
121661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
121761847f8eSopenharmony_ci   * @atomicservice
121861847f8eSopenharmony_ci   * @since 12
121961847f8eSopenharmony_ci   */
122061847f8eSopenharmony_ci  contentType(value: ContentType): TextInputAttribute;
122161847f8eSopenharmony_ci
122261847f8eSopenharmony_ci  /**
122361847f8eSopenharmony_ci   * Called when the color of the placeholder is set.
122461847f8eSopenharmony_ci   *
122561847f8eSopenharmony_ci   * @param { ResourceColor } value
122661847f8eSopenharmony_ci   * @returns { TextInputAttribute }
122761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
122861847f8eSopenharmony_ci   * @since 7
122961847f8eSopenharmony_ci   */
123061847f8eSopenharmony_ci  /**
123161847f8eSopenharmony_ci   * Called when the color of the placeholder is set.
123261847f8eSopenharmony_ci   *
123361847f8eSopenharmony_ci   * @param { ResourceColor } value
123461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
123561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
123661847f8eSopenharmony_ci   * @crossplatform
123761847f8eSopenharmony_ci   * @since 10
123861847f8eSopenharmony_ci   */
123961847f8eSopenharmony_ci  /**
124061847f8eSopenharmony_ci   * Called when the color of the placeholder is set.
124161847f8eSopenharmony_ci   *
124261847f8eSopenharmony_ci   * @param { ResourceColor } value
124361847f8eSopenharmony_ci   * @returns { TextInputAttribute }
124461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
124561847f8eSopenharmony_ci   * @crossplatform
124661847f8eSopenharmony_ci   * @atomicservice
124761847f8eSopenharmony_ci   * @since 11
124861847f8eSopenharmony_ci   */
124961847f8eSopenharmony_ci  placeholderColor(value: ResourceColor): TextInputAttribute;
125061847f8eSopenharmony_ci
125161847f8eSopenharmony_ci  /**
125261847f8eSopenharmony_ci   * Called when the overflow mode of the font is set.
125361847f8eSopenharmony_ci   *
125461847f8eSopenharmony_ci   * @param { TextOverflow } value
125561847f8eSopenharmony_ci   * @returns { TextInputAttribute }
125661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
125761847f8eSopenharmony_ci   * @crossplatform
125861847f8eSopenharmony_ci   * @atomicservice
125961847f8eSopenharmony_ci   * @since 12
126061847f8eSopenharmony_ci   */
126161847f8eSopenharmony_ci  textOverflow(value: TextOverflow): TextInputAttribute;
126261847f8eSopenharmony_ci
126361847f8eSopenharmony_ci  /**
126461847f8eSopenharmony_ci   * Specify the indentation of the first line in a text-block.
126561847f8eSopenharmony_ci   *
126661847f8eSopenharmony_ci   * @param { Dimension } value - The length of text indent.
126761847f8eSopenharmony_ci   * @returns { TextInputAttribute } The attribute of the text.
126861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
126961847f8eSopenharmony_ci   * @crossplatform
127061847f8eSopenharmony_ci   * @atomicservice
127161847f8eSopenharmony_ci   * @since 12
127261847f8eSopenharmony_ci   */
127361847f8eSopenharmony_ci  textIndent(value: Dimension): TextInputAttribute;
127461847f8eSopenharmony_ci
127561847f8eSopenharmony_ci  /**
127661847f8eSopenharmony_ci   * Called when the font property of the placeholder is set.
127761847f8eSopenharmony_ci   *
127861847f8eSopenharmony_ci   * @param { Font } value
127961847f8eSopenharmony_ci   * @returns { TextInputAttribute }
128061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
128161847f8eSopenharmony_ci   * @since 7
128261847f8eSopenharmony_ci   */
128361847f8eSopenharmony_ci  /**
128461847f8eSopenharmony_ci   * Called when the font property of the placeholder is set.
128561847f8eSopenharmony_ci   *
128661847f8eSopenharmony_ci   * @param { Font } value
128761847f8eSopenharmony_ci   * @returns { TextInputAttribute }
128861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
128961847f8eSopenharmony_ci   * @crossplatform
129061847f8eSopenharmony_ci   * @since 10
129161847f8eSopenharmony_ci   */
129261847f8eSopenharmony_ci  /**
129361847f8eSopenharmony_ci   * Called when the font property of the placeholder is set.
129461847f8eSopenharmony_ci   *
129561847f8eSopenharmony_ci   * @param { Font } value
129661847f8eSopenharmony_ci   * @returns { TextInputAttribute }
129761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
129861847f8eSopenharmony_ci   * @crossplatform
129961847f8eSopenharmony_ci   * @atomicservice
130061847f8eSopenharmony_ci   * @since 11
130161847f8eSopenharmony_ci   */
130261847f8eSopenharmony_ci  placeholderFont(value?: Font): TextInputAttribute;
130361847f8eSopenharmony_ci
130461847f8eSopenharmony_ci  /**
130561847f8eSopenharmony_ci   * Called when the type of soft keyboard input button is set.
130661847f8eSopenharmony_ci   *
130761847f8eSopenharmony_ci   * @param { EnterKeyType } value
130861847f8eSopenharmony_ci   * @returns { TextInputAttribute }
130961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
131061847f8eSopenharmony_ci   * @since 7
131161847f8eSopenharmony_ci   */
131261847f8eSopenharmony_ci  /**
131361847f8eSopenharmony_ci   * Called when the type of soft keyboard input button is set.
131461847f8eSopenharmony_ci   *
131561847f8eSopenharmony_ci   * @param { EnterKeyType } value
131661847f8eSopenharmony_ci   * @returns { TextInputAttribute }
131761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
131861847f8eSopenharmony_ci   * @crossplatform
131961847f8eSopenharmony_ci   * @since 10
132061847f8eSopenharmony_ci   */
132161847f8eSopenharmony_ci  /**
132261847f8eSopenharmony_ci   * Called when the type of soft keyboard input button is set.
132361847f8eSopenharmony_ci   *
132461847f8eSopenharmony_ci   * @param { EnterKeyType } value
132561847f8eSopenharmony_ci   * @returns { TextInputAttribute }
132661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
132761847f8eSopenharmony_ci   * @crossplatform
132861847f8eSopenharmony_ci   * @atomicservice
132961847f8eSopenharmony_ci   * @since 11
133061847f8eSopenharmony_ci   */
133161847f8eSopenharmony_ci  enterKeyType(value: EnterKeyType): TextInputAttribute;
133261847f8eSopenharmony_ci
133361847f8eSopenharmony_ci  /**
133461847f8eSopenharmony_ci   * Called when the color of the insertion cursor is set.
133561847f8eSopenharmony_ci   *
133661847f8eSopenharmony_ci   * @param { ResourceColor } value
133761847f8eSopenharmony_ci   * @returns { TextInputAttribute }
133861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
133961847f8eSopenharmony_ci   * @since 7
134061847f8eSopenharmony_ci   */
134161847f8eSopenharmony_ci  /**
134261847f8eSopenharmony_ci   * Called when the color of the insertion cursor is set.
134361847f8eSopenharmony_ci   *
134461847f8eSopenharmony_ci   * @param { ResourceColor } value
134561847f8eSopenharmony_ci   * @returns { TextInputAttribute }
134661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
134761847f8eSopenharmony_ci   * @crossplatform
134861847f8eSopenharmony_ci   * @since 10
134961847f8eSopenharmony_ci   */
135061847f8eSopenharmony_ci  /**
135161847f8eSopenharmony_ci   * Called when the color of the insertion cursor is set.
135261847f8eSopenharmony_ci   *
135361847f8eSopenharmony_ci   * @param { ResourceColor } value
135461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
135561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
135661847f8eSopenharmony_ci   * @crossplatform
135761847f8eSopenharmony_ci   * @atomicservice
135861847f8eSopenharmony_ci   * @since 11
135961847f8eSopenharmony_ci   */
136061847f8eSopenharmony_ci  caretColor(value: ResourceColor): TextInputAttribute;
136161847f8eSopenharmony_ci
136261847f8eSopenharmony_ci  /**
136361847f8eSopenharmony_ci   * Called when judging whether the text editing change finished.
136461847f8eSopenharmony_ci   *
136561847f8eSopenharmony_ci   * @param { function } callback
136661847f8eSopenharmony_ci   * @returns { TextInputAttribute }
136761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
136861847f8eSopenharmony_ci   * @since 7
136961847f8eSopenharmony_ci   * @deprecated since 8
137061847f8eSopenharmony_ci   * @useinstead onEditChange
137161847f8eSopenharmony_ci   */
137261847f8eSopenharmony_ci  onEditChanged(callback: (isEditing: boolean) => void): TextInputAttribute;
137361847f8eSopenharmony_ci
137461847f8eSopenharmony_ci  /**
137561847f8eSopenharmony_ci   * Called when judging whether the text editing change finished.
137661847f8eSopenharmony_ci   *
137761847f8eSopenharmony_ci   * @param { function } callback
137861847f8eSopenharmony_ci   * @returns { TextInputAttribute }
137961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
138061847f8eSopenharmony_ci   * @since 8
138161847f8eSopenharmony_ci   */
138261847f8eSopenharmony_ci  /**
138361847f8eSopenharmony_ci   * Called when judging whether the text editing change finished.
138461847f8eSopenharmony_ci   *
138561847f8eSopenharmony_ci   * @param { function } callback
138661847f8eSopenharmony_ci   * @returns { TextInputAttribute }
138761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
138861847f8eSopenharmony_ci   * @crossplatform
138961847f8eSopenharmony_ci   * @since 10
139061847f8eSopenharmony_ci   */
139161847f8eSopenharmony_ci  /**
139261847f8eSopenharmony_ci   * Called when judging whether the text editing change finished.
139361847f8eSopenharmony_ci   *
139461847f8eSopenharmony_ci   * @param { function } callback
139561847f8eSopenharmony_ci   * @returns { TextInputAttribute }
139661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
139761847f8eSopenharmony_ci   * @crossplatform
139861847f8eSopenharmony_ci   * @atomicservice
139961847f8eSopenharmony_ci   * @since 11
140061847f8eSopenharmony_ci   */
140161847f8eSopenharmony_ci  /**
140261847f8eSopenharmony_ci   * Called when judging whether the text editing change finished.
140361847f8eSopenharmony_ci   *
140461847f8eSopenharmony_ci   * @param { Callback<boolean> } callback
140561847f8eSopenharmony_ci   * @returns { TextInputAttribute }
140661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
140761847f8eSopenharmony_ci   * @crossplatform
140861847f8eSopenharmony_ci   * @atomicservice
140961847f8eSopenharmony_ci   * @since 14
141061847f8eSopenharmony_ci   */
141161847f8eSopenharmony_ci  onEditChange(callback: Callback<boolean>): TextInputAttribute;
141261847f8eSopenharmony_ci
141361847f8eSopenharmony_ci  /**
141461847f8eSopenharmony_ci   * Called when submitted.
141561847f8eSopenharmony_ci   *
141661847f8eSopenharmony_ci   * @param { function } callback
141761847f8eSopenharmony_ci   * @returns { TextInputAttribute }
141861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
141961847f8eSopenharmony_ci   * @since 7
142061847f8eSopenharmony_ci   */
142161847f8eSopenharmony_ci  /**
142261847f8eSopenharmony_ci   * Called when submitted.
142361847f8eSopenharmony_ci   *
142461847f8eSopenharmony_ci   * @param { function } callback
142561847f8eSopenharmony_ci   * @returns { TextInputAttribute }
142661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
142761847f8eSopenharmony_ci   * @crossplatform
142861847f8eSopenharmony_ci   * @since 10
142961847f8eSopenharmony_ci   */
143061847f8eSopenharmony_ci  /**
143161847f8eSopenharmony_ci   * Called when submitted.
143261847f8eSopenharmony_ci   *
143361847f8eSopenharmony_ci   * @param { function } callback - callback of the listened event.
143461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
143561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
143661847f8eSopenharmony_ci   * @crossplatform
143761847f8eSopenharmony_ci   * @atomicservice
143861847f8eSopenharmony_ci   * @since 11
143961847f8eSopenharmony_ci   */
144061847f8eSopenharmony_ci  /**
144161847f8eSopenharmony_ci   * Called when submitted.
144261847f8eSopenharmony_ci   *
144361847f8eSopenharmony_ci   * @param { OnSubmitCallback } callback - Callback of the listened event.
144461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
144561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
144661847f8eSopenharmony_ci   * @crossplatform
144761847f8eSopenharmony_ci   * @atomicservice
144861847f8eSopenharmony_ci   * @since 14
144961847f8eSopenharmony_ci   */
145061847f8eSopenharmony_ci  onSubmit(callback: OnSubmitCallback): TextInputAttribute;
145161847f8eSopenharmony_ci
145261847f8eSopenharmony_ci  /**
145361847f8eSopenharmony_ci   * Called when the input of the input box changes.
145461847f8eSopenharmony_ci   *
145561847f8eSopenharmony_ci   * @param { function } callback
145661847f8eSopenharmony_ci   * @returns { TextInputAttribute }
145761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
145861847f8eSopenharmony_ci   * @since 7
145961847f8eSopenharmony_ci   */
146061847f8eSopenharmony_ci  /**
146161847f8eSopenharmony_ci   * Called when the input of the input box changes.
146261847f8eSopenharmony_ci   *
146361847f8eSopenharmony_ci   * @param { function } callback
146461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
146561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
146661847f8eSopenharmony_ci   * @crossplatform
146761847f8eSopenharmony_ci   * @since 10
146861847f8eSopenharmony_ci   */
146961847f8eSopenharmony_ci  /**
147061847f8eSopenharmony_ci   * Called when the input of the input box changes.
147161847f8eSopenharmony_ci   *
147261847f8eSopenharmony_ci   * @param { function } callback
147361847f8eSopenharmony_ci   * @returns { TextInputAttribute }
147461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
147561847f8eSopenharmony_ci   * @crossplatform
147661847f8eSopenharmony_ci   * @atomicservice
147761847f8eSopenharmony_ci   * @since 11
147861847f8eSopenharmony_ci   */
147961847f8eSopenharmony_ci  /**
148061847f8eSopenharmony_ci   * Called when the input of the input box changes.
148161847f8eSopenharmony_ci   *
148261847f8eSopenharmony_ci   * @param { EditableTextOnChangeCallback } callback
148361847f8eSopenharmony_ci   * @returns { TextInputAttribute }
148461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
148561847f8eSopenharmony_ci   * @crossplatform
148661847f8eSopenharmony_ci   * @atomicservice
148761847f8eSopenharmony_ci   * @since 12
148861847f8eSopenharmony_ci   */
148961847f8eSopenharmony_ci  onChange(callback: EditableTextOnChangeCallback): TextInputAttribute;
149061847f8eSopenharmony_ci
149161847f8eSopenharmony_ci  /**
149261847f8eSopenharmony_ci   * Called when the text selection changes.
149361847f8eSopenharmony_ci   *
149461847f8eSopenharmony_ci   * @param { function } callback - callback of the listened event.
149561847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
149661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
149761847f8eSopenharmony_ci   * @crossplatform
149861847f8eSopenharmony_ci   * @since 10
149961847f8eSopenharmony_ci   */
150061847f8eSopenharmony_ci  /**
150161847f8eSopenharmony_ci   * Called when the text selection changes.
150261847f8eSopenharmony_ci   *
150361847f8eSopenharmony_ci   * @param { function } callback - callback of the listened event.
150461847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
150561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
150661847f8eSopenharmony_ci   * @crossplatform
150761847f8eSopenharmony_ci   * @atomicservice
150861847f8eSopenharmony_ci   * @since 11
150961847f8eSopenharmony_ci   */
151061847f8eSopenharmony_ci  /**
151161847f8eSopenharmony_ci   * Called when the text selection changes.
151261847f8eSopenharmony_ci   *
151361847f8eSopenharmony_ci   * @param { OnTextSelectionChangeCallback } callback - Callback of the listened event.
151461847f8eSopenharmony_ci   * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute.
151561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
151661847f8eSopenharmony_ci   * @crossplatform
151761847f8eSopenharmony_ci   * @atomicservice
151861847f8eSopenharmony_ci   * @since 14
151961847f8eSopenharmony_ci   */
152061847f8eSopenharmony_ci  onTextSelectionChange(callback: OnTextSelectionChangeCallback): TextInputAttribute;
152161847f8eSopenharmony_ci
152261847f8eSopenharmony_ci  /**
152361847f8eSopenharmony_ci   * Called when the content scrolls.
152461847f8eSopenharmony_ci   *
152561847f8eSopenharmony_ci   * @param { function } callback - callback of the listened event.
152661847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
152761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
152861847f8eSopenharmony_ci   * @crossplatform
152961847f8eSopenharmony_ci   * @since 10
153061847f8eSopenharmony_ci   */
153161847f8eSopenharmony_ci  /**
153261847f8eSopenharmony_ci   * Called when the content scrolls.
153361847f8eSopenharmony_ci   *
153461847f8eSopenharmony_ci   * @param { function } callback - callback of the listened event.
153561847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
153661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
153761847f8eSopenharmony_ci   * @crossplatform
153861847f8eSopenharmony_ci   * @atomicservice
153961847f8eSopenharmony_ci   * @since 11
154061847f8eSopenharmony_ci   */
154161847f8eSopenharmony_ci  /**
154261847f8eSopenharmony_ci   * Called when the content scrolls.
154361847f8eSopenharmony_ci   *
154461847f8eSopenharmony_ci   * @param { OnContentScrollCallback } callback - Callback of the listened event.
154561847f8eSopenharmony_ci   * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute.
154661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
154761847f8eSopenharmony_ci   * @crossplatform
154861847f8eSopenharmony_ci   * @atomicservice
154961847f8eSopenharmony_ci   * @since 14
155061847f8eSopenharmony_ci   */
155161847f8eSopenharmony_ci  onContentScroll(callback: OnContentScrollCallback): TextInputAttribute;
155261847f8eSopenharmony_ci
155361847f8eSopenharmony_ci  /**
155461847f8eSopenharmony_ci   * Called when the input of maximum text length is set.
155561847f8eSopenharmony_ci   *
155661847f8eSopenharmony_ci   * @param { number } value
155761847f8eSopenharmony_ci   * @returns { TextInputAttribute }
155861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
155961847f8eSopenharmony_ci   * @since 7
156061847f8eSopenharmony_ci   */
156161847f8eSopenharmony_ci  /**
156261847f8eSopenharmony_ci   * Called when the input of maximum text length is set.
156361847f8eSopenharmony_ci   *
156461847f8eSopenharmony_ci   * @param { number } value
156561847f8eSopenharmony_ci   * @returns { TextInputAttribute }
156661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
156761847f8eSopenharmony_ci   * @crossplatform
156861847f8eSopenharmony_ci   * @since 10
156961847f8eSopenharmony_ci   */
157061847f8eSopenharmony_ci  /**
157161847f8eSopenharmony_ci   * Called when the input of maximum text length is set.
157261847f8eSopenharmony_ci   *
157361847f8eSopenharmony_ci   * @param { number } value
157461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
157561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
157661847f8eSopenharmony_ci   * @crossplatform
157761847f8eSopenharmony_ci   * @atomicservice
157861847f8eSopenharmony_ci   * @since 11
157961847f8eSopenharmony_ci   */
158061847f8eSopenharmony_ci  maxLength(value: number): TextInputAttribute;
158161847f8eSopenharmony_ci
158261847f8eSopenharmony_ci  /**
158361847f8eSopenharmony_ci   * Called when the font color is set.
158461847f8eSopenharmony_ci   *
158561847f8eSopenharmony_ci   * @param { ResourceColor } value
158661847f8eSopenharmony_ci   * @returns { TextInputAttribute }
158761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
158861847f8eSopenharmony_ci   * @since 7
158961847f8eSopenharmony_ci   */
159061847f8eSopenharmony_ci  /**
159161847f8eSopenharmony_ci   * Called when the font color is set.
159261847f8eSopenharmony_ci   *
159361847f8eSopenharmony_ci   * @param { ResourceColor } value
159461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
159561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
159661847f8eSopenharmony_ci   * @crossplatform
159761847f8eSopenharmony_ci   * @since 10
159861847f8eSopenharmony_ci   */
159961847f8eSopenharmony_ci  /**
160061847f8eSopenharmony_ci   * Called when the font color is set.
160161847f8eSopenharmony_ci   *
160261847f8eSopenharmony_ci   * @param { ResourceColor } value
160361847f8eSopenharmony_ci   * @returns { TextInputAttribute }
160461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
160561847f8eSopenharmony_ci   * @crossplatform
160661847f8eSopenharmony_ci   * @atomicservice
160761847f8eSopenharmony_ci   * @since 11
160861847f8eSopenharmony_ci   */
160961847f8eSopenharmony_ci  fontColor(value: ResourceColor): TextInputAttribute;
161061847f8eSopenharmony_ci
161161847f8eSopenharmony_ci  /**
161261847f8eSopenharmony_ci   * Called when the font size is set.
161361847f8eSopenharmony_ci   *
161461847f8eSopenharmony_ci   * @param { Length } value
161561847f8eSopenharmony_ci   * @returns { TextInputAttribute }
161661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
161761847f8eSopenharmony_ci   * @since 7
161861847f8eSopenharmony_ci   */
161961847f8eSopenharmony_ci  /**
162061847f8eSopenharmony_ci   * Called when the font size is set.
162161847f8eSopenharmony_ci   *
162261847f8eSopenharmony_ci   * @param { Length } value
162361847f8eSopenharmony_ci   * @returns { TextInputAttribute }
162461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
162561847f8eSopenharmony_ci   * @crossplatform
162661847f8eSopenharmony_ci   * @since 10
162761847f8eSopenharmony_ci   */
162861847f8eSopenharmony_ci  /**
162961847f8eSopenharmony_ci   * Called when the font size is set.
163061847f8eSopenharmony_ci   *
163161847f8eSopenharmony_ci   * @param { Length } value
163261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
163361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
163461847f8eSopenharmony_ci   * @crossplatform
163561847f8eSopenharmony_ci   * @atomicservice
163661847f8eSopenharmony_ci   * @since 11
163761847f8eSopenharmony_ci   */
163861847f8eSopenharmony_ci  fontSize(value: Length): TextInputAttribute;
163961847f8eSopenharmony_ci
164061847f8eSopenharmony_ci  /**
164161847f8eSopenharmony_ci   * Called when the font style of a font is set.
164261847f8eSopenharmony_ci   *
164361847f8eSopenharmony_ci   * @param { FontStyle } value
164461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
164561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
164661847f8eSopenharmony_ci   * @since 7
164761847f8eSopenharmony_ci   */
164861847f8eSopenharmony_ci  /**
164961847f8eSopenharmony_ci   * Called when the font style of a font is set.
165061847f8eSopenharmony_ci   *
165161847f8eSopenharmony_ci   * @param { FontStyle } value
165261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
165361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
165461847f8eSopenharmony_ci   * @crossplatform
165561847f8eSopenharmony_ci   * @since 10
165661847f8eSopenharmony_ci   */
165761847f8eSopenharmony_ci  /**
165861847f8eSopenharmony_ci   * Called when the font style of a font is set.
165961847f8eSopenharmony_ci   *
166061847f8eSopenharmony_ci   * @param { FontStyle } value
166161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
166261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
166361847f8eSopenharmony_ci   * @crossplatform
166461847f8eSopenharmony_ci   * @atomicservice
166561847f8eSopenharmony_ci   * @since 11
166661847f8eSopenharmony_ci   */
166761847f8eSopenharmony_ci  fontStyle(value: FontStyle): TextInputAttribute;
166861847f8eSopenharmony_ci
166961847f8eSopenharmony_ci  /**
167061847f8eSopenharmony_ci   * Called when the font weight is set.
167161847f8eSopenharmony_ci   *
167261847f8eSopenharmony_ci   * @param { number | FontWeight | string } value
167361847f8eSopenharmony_ci   * @returns { TextInputAttribute }
167461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
167561847f8eSopenharmony_ci   * @since 7
167661847f8eSopenharmony_ci   */
167761847f8eSopenharmony_ci  /**
167861847f8eSopenharmony_ci   * Called when the font weight is set.
167961847f8eSopenharmony_ci   *
168061847f8eSopenharmony_ci   * @param { number | FontWeight | string } value
168161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
168261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
168361847f8eSopenharmony_ci   * @crossplatform
168461847f8eSopenharmony_ci   * @since 10
168561847f8eSopenharmony_ci   */
168661847f8eSopenharmony_ci  /**
168761847f8eSopenharmony_ci   * Called when the font weight is set.
168861847f8eSopenharmony_ci   *
168961847f8eSopenharmony_ci   * @param { number | FontWeight | string } value
169061847f8eSopenharmony_ci   * @returns { TextInputAttribute }
169161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
169261847f8eSopenharmony_ci   * @crossplatform
169361847f8eSopenharmony_ci   * @atomicservice
169461847f8eSopenharmony_ci   * @since 11
169561847f8eSopenharmony_ci   */
169661847f8eSopenharmony_ci  fontWeight(value: number | FontWeight | string): TextInputAttribute;
169761847f8eSopenharmony_ci
169861847f8eSopenharmony_ci  /**
169961847f8eSopenharmony_ci   * Called when the font list of text is set.
170061847f8eSopenharmony_ci   *
170161847f8eSopenharmony_ci   * @param { ResourceStr } value
170261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
170361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
170461847f8eSopenharmony_ci   * @since 7
170561847f8eSopenharmony_ci   */
170661847f8eSopenharmony_ci  /**
170761847f8eSopenharmony_ci   * Called when the font list of text is set.
170861847f8eSopenharmony_ci   *
170961847f8eSopenharmony_ci   * @param { ResourceStr } value
171061847f8eSopenharmony_ci   * @returns { TextInputAttribute }
171161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
171261847f8eSopenharmony_ci   * @crossplatform
171361847f8eSopenharmony_ci   * @since 10
171461847f8eSopenharmony_ci   */
171561847f8eSopenharmony_ci  /**
171661847f8eSopenharmony_ci   * Called when the font list of text is set.
171761847f8eSopenharmony_ci   *
171861847f8eSopenharmony_ci   * @param { ResourceStr } value
171961847f8eSopenharmony_ci   * @returns { TextInputAttribute }
172061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
172161847f8eSopenharmony_ci   * @crossplatform
172261847f8eSopenharmony_ci   * @atomicservice
172361847f8eSopenharmony_ci   * @since 11
172461847f8eSopenharmony_ci   */
172561847f8eSopenharmony_ci  fontFamily(value: ResourceStr): TextInputAttribute;
172661847f8eSopenharmony_ci
172761847f8eSopenharmony_ci  /**
172861847f8eSopenharmony_ci   * Called when the inputFilter of text is set.
172961847f8eSopenharmony_ci   *
173061847f8eSopenharmony_ci   * @param { ResourceStr } value
173161847f8eSopenharmony_ci   * @param { function } error
173261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
173361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
173461847f8eSopenharmony_ci   * @since 8
173561847f8eSopenharmony_ci   */
173661847f8eSopenharmony_ci  /**
173761847f8eSopenharmony_ci   * Called when the inputFilter of text is set.
173861847f8eSopenharmony_ci   *
173961847f8eSopenharmony_ci   * @param { ResourceStr } value
174061847f8eSopenharmony_ci   * @param { function } error
174161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
174261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
174361847f8eSopenharmony_ci   * @crossplatform
174461847f8eSopenharmony_ci   * @since 10
174561847f8eSopenharmony_ci   */
174661847f8eSopenharmony_ci  /**
174761847f8eSopenharmony_ci   * Called when the inputFilter of text is set.
174861847f8eSopenharmony_ci   *
174961847f8eSopenharmony_ci   * @param { ResourceStr } value
175061847f8eSopenharmony_ci   * @param { function } error
175161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
175261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
175361847f8eSopenharmony_ci   * @crossplatform
175461847f8eSopenharmony_ci   * @atomicservice
175561847f8eSopenharmony_ci   * @since 11
175661847f8eSopenharmony_ci   */
175761847f8eSopenharmony_ci  /**
175861847f8eSopenharmony_ci   * Called when the inputFilter of text is set.
175961847f8eSopenharmony_ci   *
176061847f8eSopenharmony_ci   * @param { ResourceStr } value
176161847f8eSopenharmony_ci   * @param { Callback<string> } [error]
176261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
176361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
176461847f8eSopenharmony_ci   * @crossplatform
176561847f8eSopenharmony_ci   * @atomicservice
176661847f8eSopenharmony_ci   * @since 14
176761847f8eSopenharmony_ci   */
176861847f8eSopenharmony_ci  inputFilter(value: ResourceStr, error?: Callback<string>): TextInputAttribute;
176961847f8eSopenharmony_ci
177061847f8eSopenharmony_ci  /**
177161847f8eSopenharmony_ci   * Called when using the Clipboard menu
177261847f8eSopenharmony_ci   *
177361847f8eSopenharmony_ci   * @param { function } callback
177461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
177561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
177661847f8eSopenharmony_ci   * @since 8
177761847f8eSopenharmony_ci   */
177861847f8eSopenharmony_ci  /**
177961847f8eSopenharmony_ci   * Called when using the Clipboard menu
178061847f8eSopenharmony_ci   *
178161847f8eSopenharmony_ci   * @param { function } callback
178261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
178361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
178461847f8eSopenharmony_ci   * @crossplatform
178561847f8eSopenharmony_ci   * @since 10
178661847f8eSopenharmony_ci   */
178761847f8eSopenharmony_ci  /**
178861847f8eSopenharmony_ci   * Called when using the Clipboard menu
178961847f8eSopenharmony_ci   *
179061847f8eSopenharmony_ci   * @param { function } callback
179161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
179261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
179361847f8eSopenharmony_ci   * @crossplatform
179461847f8eSopenharmony_ci   * @atomicservice
179561847f8eSopenharmony_ci   * @since 11
179661847f8eSopenharmony_ci   */
179761847f8eSopenharmony_ci  /**
179861847f8eSopenharmony_ci   * Called when using the Clipboard menu.
179961847f8eSopenharmony_ci   *
180061847f8eSopenharmony_ci   * @param { Callback<string> } callback
180161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
180261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
180361847f8eSopenharmony_ci   * @crossplatform
180461847f8eSopenharmony_ci   * @atomicservice
180561847f8eSopenharmony_ci   * @since 14
180661847f8eSopenharmony_ci   */
180761847f8eSopenharmony_ci  onCopy(callback: Callback<string>): TextInputAttribute;
180861847f8eSopenharmony_ci
180961847f8eSopenharmony_ci  /**
181061847f8eSopenharmony_ci   * Called when using the Clipboard menu
181161847f8eSopenharmony_ci   *
181261847f8eSopenharmony_ci   * @param { function } callback
181361847f8eSopenharmony_ci   * @returns { TextInputAttribute }
181461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
181561847f8eSopenharmony_ci   * @since 8
181661847f8eSopenharmony_ci   */
181761847f8eSopenharmony_ci  /**
181861847f8eSopenharmony_ci   * Called when using the Clipboard menu
181961847f8eSopenharmony_ci   *
182061847f8eSopenharmony_ci   * @param { function } callback
182161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
182261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
182361847f8eSopenharmony_ci   * @crossplatform
182461847f8eSopenharmony_ci   * @since 10
182561847f8eSopenharmony_ci   */
182661847f8eSopenharmony_ci  /**
182761847f8eSopenharmony_ci   * Called when using the Clipboard menu
182861847f8eSopenharmony_ci   *
182961847f8eSopenharmony_ci   * @param { function } callback
183061847f8eSopenharmony_ci   * @returns { TextInputAttribute }
183161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
183261847f8eSopenharmony_ci   * @crossplatform
183361847f8eSopenharmony_ci   * @atomicservice
183461847f8eSopenharmony_ci   * @since 11
183561847f8eSopenharmony_ci   */
183661847f8eSopenharmony_ci  /**
183761847f8eSopenharmony_ci   * Called when using the Clipboard menu.
183861847f8eSopenharmony_ci   *
183961847f8eSopenharmony_ci   * @param { Callback<string> } callback
184061847f8eSopenharmony_ci   * @returns { TextInputAttribute }
184161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
184261847f8eSopenharmony_ci   * @crossplatform
184361847f8eSopenharmony_ci   * @atomicservice
184461847f8eSopenharmony_ci   * @since 14
184561847f8eSopenharmony_ci   */
184661847f8eSopenharmony_ci  onCut(callback: Callback<string>): TextInputAttribute;
184761847f8eSopenharmony_ci
184861847f8eSopenharmony_ci  /**
184961847f8eSopenharmony_ci   * Called when using the Clipboard menu
185061847f8eSopenharmony_ci   *
185161847f8eSopenharmony_ci   * @param { function } callback
185261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
185361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
185461847f8eSopenharmony_ci   * @since 8
185561847f8eSopenharmony_ci   */
185661847f8eSopenharmony_ci  /**
185761847f8eSopenharmony_ci   * Called when using the Clipboard menu
185861847f8eSopenharmony_ci   *
185961847f8eSopenharmony_ci   * @param { function } callback
186061847f8eSopenharmony_ci   * @returns { TextInputAttribute }
186161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
186261847f8eSopenharmony_ci   * @crossplatform
186361847f8eSopenharmony_ci   * @since 10
186461847f8eSopenharmony_ci   */
186561847f8eSopenharmony_ci  /**
186661847f8eSopenharmony_ci   * Called when using the Clipboard menu
186761847f8eSopenharmony_ci   *
186861847f8eSopenharmony_ci   * @param { function } callback
186961847f8eSopenharmony_ci   *          Executed when a paste operation is performed.
187061847f8eSopenharmony_ci   *          { string } value - The text content to be pasted.
187161847f8eSopenharmony_ci   *          { PasteEvent } event - The user-defined paste event.
187261847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
187361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
187461847f8eSopenharmony_ci   * @crossplatform
187561847f8eSopenharmony_ci   * @atomicservice
187661847f8eSopenharmony_ci   * @since 11
187761847f8eSopenharmony_ci   */
187861847f8eSopenharmony_ci  /**
187961847f8eSopenharmony_ci   * Called when using the Clipboard menu.
188061847f8eSopenharmony_ci   *
188161847f8eSopenharmony_ci   * @param { OnPasteCallback } callback - Executed when a paste operation is performed.
188261847f8eSopenharmony_ci   * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute.
188361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
188461847f8eSopenharmony_ci   * @crossplatform
188561847f8eSopenharmony_ci   * @atomicservice
188661847f8eSopenharmony_ci   * @since 14
188761847f8eSopenharmony_ci   */
188861847f8eSopenharmony_ci  onPaste(callback: OnPasteCallback): TextInputAttribute;
188961847f8eSopenharmony_ci
189061847f8eSopenharmony_ci  /**
189161847f8eSopenharmony_ci   * Called when the copy option is set.
189261847f8eSopenharmony_ci   *
189361847f8eSopenharmony_ci   * @param { CopyOptions } value
189461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
189561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
189661847f8eSopenharmony_ci   * @since 9
189761847f8eSopenharmony_ci   */
189861847f8eSopenharmony_ci  /**
189961847f8eSopenharmony_ci   * Called when the copy option is set.
190061847f8eSopenharmony_ci   *
190161847f8eSopenharmony_ci   * @param { CopyOptions } value
190261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
190361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
190461847f8eSopenharmony_ci   * @crossplatform
190561847f8eSopenharmony_ci   * @since 10
190661847f8eSopenharmony_ci   */
190761847f8eSopenharmony_ci  /**
190861847f8eSopenharmony_ci   * Called when the copy option is set.
190961847f8eSopenharmony_ci   *
191061847f8eSopenharmony_ci   * @param { CopyOptions } value
191161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
191261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
191361847f8eSopenharmony_ci   * @crossplatform
191461847f8eSopenharmony_ci   * @atomicservice
191561847f8eSopenharmony_ci   * @since 11
191661847f8eSopenharmony_ci   */
191761847f8eSopenharmony_ci  copyOption(value: CopyOptions): TextInputAttribute;
191861847f8eSopenharmony_ci
191961847f8eSopenharmony_ci  /**
192061847f8eSopenharmony_ci   * Called when the password show/hide icon is set.
192161847f8eSopenharmony_ci   *
192261847f8eSopenharmony_ci   * @param { boolean } value
192361847f8eSopenharmony_ci   * @returns { TextInputAttribute }
192461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
192561847f8eSopenharmony_ci   * @since 9
192661847f8eSopenharmony_ci   */
192761847f8eSopenharmony_ci  /**
192861847f8eSopenharmony_ci   * Called when the password show/hide icon is set.
192961847f8eSopenharmony_ci   *
193061847f8eSopenharmony_ci   * @param { boolean } value
193161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
193261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
193361847f8eSopenharmony_ci   * @crossplatform
193461847f8eSopenharmony_ci   * @since 10
193561847f8eSopenharmony_ci   */
193661847f8eSopenharmony_ci  /**
193761847f8eSopenharmony_ci   * Called when the password show/hide icon is set.
193861847f8eSopenharmony_ci   *
193961847f8eSopenharmony_ci   * @param { boolean } value
194061847f8eSopenharmony_ci   * @returns { TextInputAttribute }
194161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
194261847f8eSopenharmony_ci   * @crossplatform
194361847f8eSopenharmony_ci   * @atomicservice
194461847f8eSopenharmony_ci   * @since 11
194561847f8eSopenharmony_ci   */
194661847f8eSopenharmony_ci  showPasswordIcon(value: boolean): TextInputAttribute;
194761847f8eSopenharmony_ci
194861847f8eSopenharmony_ci  /**
194961847f8eSopenharmony_ci   * Called when the text align is set.
195061847f8eSopenharmony_ci   *
195161847f8eSopenharmony_ci   * @param { TextAlign } value
195261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
195361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
195461847f8eSopenharmony_ci   * @since 9
195561847f8eSopenharmony_ci   */
195661847f8eSopenharmony_ci  /**
195761847f8eSopenharmony_ci   * Called when the text align is set.
195861847f8eSopenharmony_ci   *
195961847f8eSopenharmony_ci   * @param { TextAlign } value
196061847f8eSopenharmony_ci   * @returns { TextInputAttribute }
196161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
196261847f8eSopenharmony_ci   * @crossplatform
196361847f8eSopenharmony_ci   * @since 10
196461847f8eSopenharmony_ci   */
196561847f8eSopenharmony_ci  /**
196661847f8eSopenharmony_ci   * Called when the text align is set.
196761847f8eSopenharmony_ci   *
196861847f8eSopenharmony_ci   * @param { TextAlign } value
196961847f8eSopenharmony_ci   * @returns { TextInputAttribute }
197061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
197161847f8eSopenharmony_ci   * @crossplatform
197261847f8eSopenharmony_ci   * @atomicservice
197361847f8eSopenharmony_ci   * @since 11
197461847f8eSopenharmony_ci   */
197561847f8eSopenharmony_ci  textAlign(value: TextAlign): TextInputAttribute;
197661847f8eSopenharmony_ci
197761847f8eSopenharmony_ci  /**
197861847f8eSopenharmony_ci   * Text input style
197961847f8eSopenharmony_ci   *
198061847f8eSopenharmony_ci   * @param { TextInputStyle | TextContentStyle } value - Text input style
198161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
198261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
198361847f8eSopenharmony_ci   * @since 9
198461847f8eSopenharmony_ci   */
198561847f8eSopenharmony_ci  /**
198661847f8eSopenharmony_ci   * Text input style
198761847f8eSopenharmony_ci   *
198861847f8eSopenharmony_ci   * @param { TextInputStyle | TextContentStyle } value - Text input style
198961847f8eSopenharmony_ci   * @returns { TextInputAttribute }
199061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
199161847f8eSopenharmony_ci   * @crossplatform
199261847f8eSopenharmony_ci   * @since 10
199361847f8eSopenharmony_ci   */
199461847f8eSopenharmony_ci  /**
199561847f8eSopenharmony_ci   * Text input style
199661847f8eSopenharmony_ci   *
199761847f8eSopenharmony_ci   * @param { TextInputStyle | TextContentStyle } value - Text input style
199861847f8eSopenharmony_ci   * @returns { TextInputAttribute }
199961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
200061847f8eSopenharmony_ci   * @crossplatform
200161847f8eSopenharmony_ci   * @atomicservice
200261847f8eSopenharmony_ci   * @since 11
200361847f8eSopenharmony_ci   */
200461847f8eSopenharmony_ci  style(value: TextInputStyle | TextContentStyle): TextInputAttribute;
200561847f8eSopenharmony_ci
200661847f8eSopenharmony_ci  /**
200761847f8eSopenharmony_ci   * Define the caret style of the text input
200861847f8eSopenharmony_ci   *
200961847f8eSopenharmony_ci   * @param { CaretStyle } value
201061847f8eSopenharmony_ci   * @returns { TextInputAttribute }
201161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
201261847f8eSopenharmony_ci   * @crossplatform
201361847f8eSopenharmony_ci   * @since 10
201461847f8eSopenharmony_ci   */
201561847f8eSopenharmony_ci  /**
201661847f8eSopenharmony_ci   * Define the caret style of the text input
201761847f8eSopenharmony_ci   *
201861847f8eSopenharmony_ci   * @param { CaretStyle } value
201961847f8eSopenharmony_ci   * @returns { TextInputAttribute }
202061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
202161847f8eSopenharmony_ci   * @crossplatform
202261847f8eSopenharmony_ci   * @atomicservice
202361847f8eSopenharmony_ci   * @since 11
202461847f8eSopenharmony_ci   */
202561847f8eSopenharmony_ci  caretStyle(value: CaretStyle): TextInputAttribute;
202661847f8eSopenharmony_ci
202761847f8eSopenharmony_ci  /**
202861847f8eSopenharmony_ci   * Define the text selected background color of the text input.
202961847f8eSopenharmony_ci   *
203061847f8eSopenharmony_ci   * @param { ResourceColor } value
203161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
203261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
203361847f8eSopenharmony_ci   * @crossplatform
203461847f8eSopenharmony_ci   * @since 10
203561847f8eSopenharmony_ci   */
203661847f8eSopenharmony_ci  /**
203761847f8eSopenharmony_ci   * Define the text selected background color of the text input.
203861847f8eSopenharmony_ci   *
203961847f8eSopenharmony_ci   * @param { ResourceColor } value
204061847f8eSopenharmony_ci   * @returns { TextInputAttribute }
204161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
204261847f8eSopenharmony_ci   * @crossplatform
204361847f8eSopenharmony_ci   * @atomicservice
204461847f8eSopenharmony_ci   * @since 11
204561847f8eSopenharmony_ci   */
204661847f8eSopenharmony_ci  selectedBackgroundColor(value: ResourceColor): TextInputAttribute;
204761847f8eSopenharmony_ci
204861847f8eSopenharmony_ci  /**
204961847f8eSopenharmony_ci   * Define the caret position of the text input.
205061847f8eSopenharmony_ci   *
205161847f8eSopenharmony_ci   * @param { number } value
205261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
205361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
205461847f8eSopenharmony_ci   * @crossplatform
205561847f8eSopenharmony_ci   * @since 10
205661847f8eSopenharmony_ci   */
205761847f8eSopenharmony_ci  /**
205861847f8eSopenharmony_ci   * Define the caret position of the text input.
205961847f8eSopenharmony_ci   *
206061847f8eSopenharmony_ci   * @param { number } value
206161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
206261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
206361847f8eSopenharmony_ci   * @crossplatform
206461847f8eSopenharmony_ci   * @atomicservice
206561847f8eSopenharmony_ci   * @since 11
206661847f8eSopenharmony_ci   */
206761847f8eSopenharmony_ci  caretPosition(value: number): TextInputAttribute;
206861847f8eSopenharmony_ci
206961847f8eSopenharmony_ci  /**
207061847f8eSopenharmony_ci   * Sets whether request keyboard or not when on focus.
207161847f8eSopenharmony_ci   *
207261847f8eSopenharmony_ci   * @param { boolean } value
207361847f8eSopenharmony_ci   * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute.
207461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
207561847f8eSopenharmony_ci   * @crossplatform
207661847f8eSopenharmony_ci   * @since 10
207761847f8eSopenharmony_ci   */
207861847f8eSopenharmony_ci  /**
207961847f8eSopenharmony_ci   * Sets whether request keyboard or not when on focus.
208061847f8eSopenharmony_ci   *
208161847f8eSopenharmony_ci   * @param { boolean } value
208261847f8eSopenharmony_ci   * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute.
208361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
208461847f8eSopenharmony_ci   * @crossplatform
208561847f8eSopenharmony_ci   * @atomicservice
208661847f8eSopenharmony_ci   * @since 11
208761847f8eSopenharmony_ci   */
208861847f8eSopenharmony_ci  enableKeyboardOnFocus(value: boolean): TextInputAttribute;
208961847f8eSopenharmony_ci
209061847f8eSopenharmony_ci  /**
209161847f8eSopenharmony_ci   * Define the password icon of the text input.
209261847f8eSopenharmony_ci   *
209361847f8eSopenharmony_ci   * @param { PasswordIcon } value
209461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
209561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
209661847f8eSopenharmony_ci   * @since 10
209761847f8eSopenharmony_ci   */
209861847f8eSopenharmony_ci  /**
209961847f8eSopenharmony_ci   * Define the password icon of the text input.
210061847f8eSopenharmony_ci   *
210161847f8eSopenharmony_ci   * @param { PasswordIcon } value
210261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
210361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
210461847f8eSopenharmony_ci   * @crossplatform
210561847f8eSopenharmony_ci   * @atomicservice
210661847f8eSopenharmony_ci   * @since 11
210761847f8eSopenharmony_ci   */
210861847f8eSopenharmony_ci  passwordIcon(value: PasswordIcon): TextInputAttribute;
210961847f8eSopenharmony_ci
211061847f8eSopenharmony_ci  /**
211161847f8eSopenharmony_ci   * Define the show error of the text input.
211261847f8eSopenharmony_ci   *
211361847f8eSopenharmony_ci   * @param { string | undefined } value
211461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
211561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
211661847f8eSopenharmony_ci   * @since 10
211761847f8eSopenharmony_ci   */
211861847f8eSopenharmony_ci  /**
211961847f8eSopenharmony_ci   * Define the show error of the text input.
212061847f8eSopenharmony_ci   *
212161847f8eSopenharmony_ci   * @param { string | undefined } value
212261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
212361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
212461847f8eSopenharmony_ci   * @crossplatform
212561847f8eSopenharmony_ci   * @atomicservice
212661847f8eSopenharmony_ci   * @since 11
212761847f8eSopenharmony_ci   */
212861847f8eSopenharmony_ci  /**
212961847f8eSopenharmony_ci   * Define the show error of the text input.
213061847f8eSopenharmony_ci   *
213161847f8eSopenharmony_ci   * @param { ResourceStr | undefined } [value]
213261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
213361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
213461847f8eSopenharmony_ci   * @crossplatform
213561847f8eSopenharmony_ci   * @atomicservice
213661847f8eSopenharmony_ci   * @since 12
213761847f8eSopenharmony_ci   */
213861847f8eSopenharmony_ci  showError(value?: ResourceStr | undefined): TextInputAttribute;
213961847f8eSopenharmony_ci
214061847f8eSopenharmony_ci  /**
214161847f8eSopenharmony_ci   * Define the show unit of the text input.
214261847f8eSopenharmony_ci   *
214361847f8eSopenharmony_ci   * @param { CustomBuilder } value
214461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
214561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
214661847f8eSopenharmony_ci   * @since 10
214761847f8eSopenharmony_ci   */
214861847f8eSopenharmony_ci  /**
214961847f8eSopenharmony_ci   * Define the show unit of the text input.
215061847f8eSopenharmony_ci   *
215161847f8eSopenharmony_ci   * @param { CustomBuilder } value
215261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
215361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
215461847f8eSopenharmony_ci   * @crossplatform
215561847f8eSopenharmony_ci   * @atomicservice
215661847f8eSopenharmony_ci   * @since 11
215761847f8eSopenharmony_ci   */
215861847f8eSopenharmony_ci  showUnit(value: CustomBuilder): TextInputAttribute;
215961847f8eSopenharmony_ci
216061847f8eSopenharmony_ci  /**
216161847f8eSopenharmony_ci   * Define the show underline of the text input.
216261847f8eSopenharmony_ci   *
216361847f8eSopenharmony_ci   * @param { boolean } value
216461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
216561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
216661847f8eSopenharmony_ci   * @since 10
216761847f8eSopenharmony_ci   */
216861847f8eSopenharmony_ci  /**
216961847f8eSopenharmony_ci   * Define the show underline of the text input.
217061847f8eSopenharmony_ci   *
217161847f8eSopenharmony_ci   * @param { boolean } value
217261847f8eSopenharmony_ci   * @returns { TextInputAttribute }
217361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
217461847f8eSopenharmony_ci   * @crossplatform
217561847f8eSopenharmony_ci   * @atomicservice
217661847f8eSopenharmony_ci   * @since 11
217761847f8eSopenharmony_ci   */
217861847f8eSopenharmony_ci  showUnderline(value: boolean): TextInputAttribute;
217961847f8eSopenharmony_ci
218061847f8eSopenharmony_ci  /**
218161847f8eSopenharmony_ci   * Define the underline color of the text input.
218261847f8eSopenharmony_ci   *
218361847f8eSopenharmony_ci   * @param { ResourceColor | UnderlineColor | undefined } value
218461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
218561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
218661847f8eSopenharmony_ci   * @crossplatform
218761847f8eSopenharmony_ci   * @atomicservice
218861847f8eSopenharmony_ci   * @since 12
218961847f8eSopenharmony_ci   */
219061847f8eSopenharmony_ci  underlineColor(value: ResourceColor | UnderlineColor | undefined): TextInputAttribute;
219161847f8eSopenharmony_ci
219261847f8eSopenharmony_ci  /**
219361847f8eSopenharmony_ci   * Controls whether the selection menu pops up.
219461847f8eSopenharmony_ci   *
219561847f8eSopenharmony_ci   * @param { boolean } value
219661847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
219761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
219861847f8eSopenharmony_ci   * @crossplatform
219961847f8eSopenharmony_ci   * @since 10
220061847f8eSopenharmony_ci   */
220161847f8eSopenharmony_ci  /**
220261847f8eSopenharmony_ci   * Controls whether the selection menu pops up.
220361847f8eSopenharmony_ci   *
220461847f8eSopenharmony_ci   * @param { boolean } value
220561847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
220661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
220761847f8eSopenharmony_ci   * @crossplatform
220861847f8eSopenharmony_ci   * @atomicservice
220961847f8eSopenharmony_ci   * @since 11
221061847f8eSopenharmony_ci   */
221161847f8eSopenharmony_ci  selectionMenuHidden(value: boolean): TextInputAttribute;
221261847f8eSopenharmony_ci
221361847f8eSopenharmony_ci  /**
221461847f8eSopenharmony_ci   * Define bar state of the text input.
221561847f8eSopenharmony_ci   *
221661847f8eSopenharmony_ci   * @param { BarState } value
221761847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
221861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
221961847f8eSopenharmony_ci   * @since 10
222061847f8eSopenharmony_ci   */
222161847f8eSopenharmony_ci  /**
222261847f8eSopenharmony_ci   * Define bar state of the text input.
222361847f8eSopenharmony_ci   *
222461847f8eSopenharmony_ci   * @param { BarState } value
222561847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
222661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
222761847f8eSopenharmony_ci   * @atomicservice
222861847f8eSopenharmony_ci   * @since 11
222961847f8eSopenharmony_ci   */
223061847f8eSopenharmony_ci  barState(value: BarState): TextInputAttribute;
223161847f8eSopenharmony_ci
223261847f8eSopenharmony_ci  /**
223361847f8eSopenharmony_ci   * Define max lines of the text input.
223461847f8eSopenharmony_ci   *
223561847f8eSopenharmony_ci   * @param { number } value
223661847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
223761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
223861847f8eSopenharmony_ci   * @since 10
223961847f8eSopenharmony_ci   */
224061847f8eSopenharmony_ci  /**
224161847f8eSopenharmony_ci   * Define max lines of the text input.
224261847f8eSopenharmony_ci   *
224361847f8eSopenharmony_ci   * @param { number } value
224461847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
224561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
224661847f8eSopenharmony_ci   * @crossplatform
224761847f8eSopenharmony_ci   * @atomicservice
224861847f8eSopenharmony_ci   * @since 11
224961847f8eSopenharmony_ci   */
225061847f8eSopenharmony_ci  maxLines(value: number): TextInputAttribute;
225161847f8eSopenharmony_ci
225261847f8eSopenharmony_ci  /**
225361847f8eSopenharmony_ci   * Set the text inline style word break type.
225461847f8eSopenharmony_ci   *
225561847f8eSopenharmony_ci   * @param { WordBreak } value - The word break type.
225661847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
225761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
225861847f8eSopenharmony_ci   * @crossplatform
225961847f8eSopenharmony_ci   * @atomicservice
226061847f8eSopenharmony_ci   * @since 12
226161847f8eSopenharmony_ci   */
226261847f8eSopenharmony_ci  wordBreak(value: WordBreak): TextInputAttribute;
226361847f8eSopenharmony_ci
226461847f8eSopenharmony_ci  /**
226561847f8eSopenharmony_ci   * Set the text line break strategy type.
226661847f8eSopenharmony_ci   *
226761847f8eSopenharmony_ci   * @param { LineBreakStrategy } strategy - The text line break strategy type.
226861847f8eSopenharmony_ci   * @returns { TextInputAttribute } The attribute of the TextInputAttribute.
226961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
227061847f8eSopenharmony_ci   * @crossplatform
227161847f8eSopenharmony_ci   * @atomicservice
227261847f8eSopenharmony_ci   * @since 12
227361847f8eSopenharmony_ci   */
227461847f8eSopenharmony_ci  lineBreakStrategy(strategy: LineBreakStrategy): TextInputAttribute;
227561847f8eSopenharmony_ci
227661847f8eSopenharmony_ci  /**
227761847f8eSopenharmony_ci   * Define custom keyboard of the text input.
227861847f8eSopenharmony_ci   *
227961847f8eSopenharmony_ci   * @param { CustomBuilder } value
228061847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
228161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
228261847f8eSopenharmony_ci   * @since 10
228361847f8eSopenharmony_ci   */
228461847f8eSopenharmony_ci  /**
228561847f8eSopenharmony_ci   * Define custom keyboard of the text input.
228661847f8eSopenharmony_ci   *
228761847f8eSopenharmony_ci   * @param { CustomBuilder } value
228861847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
228961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
229061847f8eSopenharmony_ci   * @crossplatform
229161847f8eSopenharmony_ci   * @atomicservice
229261847f8eSopenharmony_ci   * @since 11
229361847f8eSopenharmony_ci   */
229461847f8eSopenharmony_ci
229561847f8eSopenharmony_ci  /**
229661847f8eSopenharmony_ci   * Define custom keyboard of the text input.
229761847f8eSopenharmony_ci   *
229861847f8eSopenharmony_ci   * @param { CustomBuilder } value - Set up a custom keyboard of TextInput
229961847f8eSopenharmony_ci   * @param { KeyboardOptions } [options] - Indicates the custom keyboard options of TextInput
230061847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
230161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
230261847f8eSopenharmony_ci   * @crossplatform
230361847f8eSopenharmony_ci   * @atomicservice
230461847f8eSopenharmony_ci   * @since 12
230561847f8eSopenharmony_ci   */
230661847f8eSopenharmony_ci  customKeyboard(value: CustomBuilder, options?: KeyboardOptions): TextInputAttribute;
230761847f8eSopenharmony_ci
230861847f8eSopenharmony_ci  /**
230961847f8eSopenharmony_ci   * Show the counter when the number of characters entered exceeds the threshold through InputCounterOptions.
231061847f8eSopenharmony_ci   *
231161847f8eSopenharmony_ci   * @param { boolean } value - Set showcounter of the text input.
231261847f8eSopenharmony_ci   * @param { InputCounterOptions } options - Set the percentage of counter.
231361847f8eSopenharmony_ci   * @returns { TextInputAttribute }
231461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
231561847f8eSopenharmony_ci   * @crossplatform
231661847f8eSopenharmony_ci   * @atomicservice
231761847f8eSopenharmony_ci   * @since 11
231861847f8eSopenharmony_ci   */
231961847f8eSopenharmony_ci  showCounter(value: boolean, options?: InputCounterOptions): TextInputAttribute;
232061847f8eSopenharmony_ci
232161847f8eSopenharmony_ci  /**
232261847f8eSopenharmony_ci   * Set the cancel button style
232361847f8eSopenharmony_ci   *
232461847f8eSopenharmony_ci   * @param { object } value - indicates the style of the cancel button.
232561847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
232661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
232761847f8eSopenharmony_ci   * @crossplatform
232861847f8eSopenharmony_ci   * @since 11
232961847f8eSopenharmony_ci   */
233061847f8eSopenharmony_ci  /**
233161847f8eSopenharmony_ci   * Set the cancel button style
233261847f8eSopenharmony_ci   *
233361847f8eSopenharmony_ci   * @param { object } value - indicates the style of the cancel button.
233461847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
233561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
233661847f8eSopenharmony_ci   * @crossplatform
233761847f8eSopenharmony_ci   * @atomicservice
233861847f8eSopenharmony_ci   * @since 12
233961847f8eSopenharmony_ci   */
234061847f8eSopenharmony_ci  /**
234161847f8eSopenharmony_ci   * Set the cancel button style.
234261847f8eSopenharmony_ci   *
234361847f8eSopenharmony_ci   * @param { CancelButtonOptions } options - Indicates the style of the cancel button.
234461847f8eSopenharmony_ci   * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute.
234561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
234661847f8eSopenharmony_ci   * @crossplatform
234761847f8eSopenharmony_ci   * @atomicservice
234861847f8eSopenharmony_ci   * @since 14
234961847f8eSopenharmony_ci   */
235061847f8eSopenharmony_ci  cancelButton(options: CancelButtonOptions): TextInputAttribute;
235161847f8eSopenharmony_ci
235261847f8eSopenharmony_ci  /**
235361847f8eSopenharmony_ci   * Set the cancel button style
235461847f8eSopenharmony_ci   *
235561847f8eSopenharmony_ci   * @param { CancelButtonSymbolOptions } symbolOptions - indicates the style of the cancel button.
235661847f8eSopenharmony_ci   * @returns { TextInputAttribute }
235761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
235861847f8eSopenharmony_ci   * @crossplatform
235961847f8eSopenharmony_ci   * @atomicservice
236061847f8eSopenharmony_ci   * @since 14
236161847f8eSopenharmony_ci   */
236261847f8eSopenharmony_ci  cancelButton(symbolOptions: CancelButtonSymbolOptions): TextInputAttribute;
236361847f8eSopenharmony_ci
236461847f8eSopenharmony_ci  /**
236561847f8eSopenharmony_ci   * Sets selection when on focus.
236661847f8eSopenharmony_ci   *
236761847f8eSopenharmony_ci   * @param { boolean } value - Sets selection or not.
236861847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
236961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
237061847f8eSopenharmony_ci   * @crossplatform
237161847f8eSopenharmony_ci   * @since 11
237261847f8eSopenharmony_ci   */
237361847f8eSopenharmony_ci  /**
237461847f8eSopenharmony_ci   * Sets selection when on focus.
237561847f8eSopenharmony_ci   *
237661847f8eSopenharmony_ci   * @param { boolean } value - Sets selection or not.
237761847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
237861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
237961847f8eSopenharmony_ci   * @crossplatform
238061847f8eSopenharmony_ci   * @atomicservice
238161847f8eSopenharmony_ci   * @since 12
238261847f8eSopenharmony_ci   */
238361847f8eSopenharmony_ci  selectAll(value: boolean): TextInputAttribute;
238461847f8eSopenharmony_ci
238561847f8eSopenharmony_ci  /**
238661847f8eSopenharmony_ci   * Called when the minimum font size of the font is set.
238761847f8eSopenharmony_ci   *
238861847f8eSopenharmony_ci   * @param { number | string | Resource } value
238961847f8eSopenharmony_ci   * @returns { TextInputAttribute }
239061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
239161847f8eSopenharmony_ci   * @crossplatform
239261847f8eSopenharmony_ci   * @atomicservice
239361847f8eSopenharmony_ci   * @since 12
239461847f8eSopenharmony_ci   */
239561847f8eSopenharmony_ci  minFontSize(value: number | string | Resource): TextInputAttribute;
239661847f8eSopenharmony_ci
239761847f8eSopenharmony_ci  /**
239861847f8eSopenharmony_ci   * Called when the maximum font size of the font is set.
239961847f8eSopenharmony_ci   *
240061847f8eSopenharmony_ci   * @param { number | string | Resource } value
240161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
240261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
240361847f8eSopenharmony_ci   * @crossplatform
240461847f8eSopenharmony_ci   * @atomicservice
240561847f8eSopenharmony_ci   * @since 12
240661847f8eSopenharmony_ci   */
240761847f8eSopenharmony_ci  maxFontSize(value: number | string | Resource): TextInputAttribute;
240861847f8eSopenharmony_ci
240961847f8eSopenharmony_ci  /**
241061847f8eSopenharmony_ci   * Called when the height adaptive policy is set.
241161847f8eSopenharmony_ci   *
241261847f8eSopenharmony_ci   * @param { TextHeightAdaptivePolicy } value - The height adaptive policy.
241361847f8eSopenharmony_ci   * @returns { TextInputAttribute }
241461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
241561847f8eSopenharmony_ci   * @crossplatform
241661847f8eSopenharmony_ci   * @atomicservice
241761847f8eSopenharmony_ci   * @since 12
241861847f8eSopenharmony_ci   */
241961847f8eSopenharmony_ci  heightAdaptivePolicy(value: TextHeightAdaptivePolicy): TextInputAttribute;
242061847f8eSopenharmony_ci
242161847f8eSopenharmony_ci  /**
242261847f8eSopenharmony_ci   * Sets whether enable auto fill or not.
242361847f8eSopenharmony_ci   *
242461847f8eSopenharmony_ci   * @param { boolean } value - Indicates the flag whether autofill is enabled.
242561847f8eSopenharmony_ci   * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute.
242661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
242761847f8eSopenharmony_ci   * @since 11
242861847f8eSopenharmony_ci   */
242961847f8eSopenharmony_ci  /**
243061847f8eSopenharmony_ci   * Sets whether enable auto fill or not.
243161847f8eSopenharmony_ci   *
243261847f8eSopenharmony_ci   * @param { boolean } value - Indicates the flag whether autofill is enabled.
243361847f8eSopenharmony_ci   * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute.
243461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
243561847f8eSopenharmony_ci   * @atomicservice
243661847f8eSopenharmony_ci   * @since 12
243761847f8eSopenharmony_ci   */
243861847f8eSopenharmony_ci  enableAutoFill(value: boolean): TextInputAttribute;
243961847f8eSopenharmony_ci
244061847f8eSopenharmony_ci  /**
244161847f8eSopenharmony_ci   * Called when the text decoration of the text is set.
244261847f8eSopenharmony_ci   *
244361847f8eSopenharmony_ci   * @param { TextDecorationOptions } value
244461847f8eSopenharmony_ci   * @returns { TextInputAttribute }
244561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
244661847f8eSopenharmony_ci   * @crossplatform
244761847f8eSopenharmony_ci   * @atomicservice
244861847f8eSopenharmony_ci   * @since 12
244961847f8eSopenharmony_ci   */
245061847f8eSopenharmony_ci  decoration(value: TextDecorationOptions): TextInputAttribute;
245161847f8eSopenharmony_ci
245261847f8eSopenharmony_ci  /**
245361847f8eSopenharmony_ci   * Called when the distance between text fonts is set.
245461847f8eSopenharmony_ci   *
245561847f8eSopenharmony_ci   * @param { number | string | Resource } value
245661847f8eSopenharmony_ci   * @returns { TextInputAttribute }
245761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
245861847f8eSopenharmony_ci   * @crossplatform
245961847f8eSopenharmony_ci   * @atomicservice
246061847f8eSopenharmony_ci   * @since 12
246161847f8eSopenharmony_ci   */
246261847f8eSopenharmony_ci  letterSpacing(value: number | string | Resource): TextInputAttribute;
246361847f8eSopenharmony_ci
246461847f8eSopenharmony_ci  /**
246561847f8eSopenharmony_ci   * Called when the line height of the font is set.
246661847f8eSopenharmony_ci   *
246761847f8eSopenharmony_ci   * @param { number | string | Resource } value
246861847f8eSopenharmony_ci   * @returns { TextInputAttribute }
246961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
247061847f8eSopenharmony_ci   * @crossplatform
247161847f8eSopenharmony_ci   * @atomicservice
247261847f8eSopenharmony_ci   * @since 12
247361847f8eSopenharmony_ci   */
247461847f8eSopenharmony_ci  lineHeight(value: number | string | Resource): TextInputAttribute;
247561847f8eSopenharmony_ci
247661847f8eSopenharmony_ci  /**
247761847f8eSopenharmony_ci   * Define the password rules of the text input.
247861847f8eSopenharmony_ci   *
247961847f8eSopenharmony_ci   * @param { string } value - Indicates the password rules. 
248061847f8eSopenharmony_ci   * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute.
248161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
248261847f8eSopenharmony_ci   * @since 11
248361847f8eSopenharmony_ci   */
248461847f8eSopenharmony_ci  /**
248561847f8eSopenharmony_ci   * Define the password rules of the text input.
248661847f8eSopenharmony_ci   *
248761847f8eSopenharmony_ci   * @param { string } value - Indicates the password rules. 
248861847f8eSopenharmony_ci   * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute.
248961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
249061847f8eSopenharmony_ci   * @atomicservice
249161847f8eSopenharmony_ci   * @since 12
249261847f8eSopenharmony_ci   */
249361847f8eSopenharmony_ci  passwordRules(value: string): TextInputAttribute;
249461847f8eSopenharmony_ci
249561847f8eSopenharmony_ci  /**
249661847f8eSopenharmony_ci   * Set font feature.
249761847f8eSopenharmony_ci   *
249861847f8eSopenharmony_ci   * @param { string } value - The fontFeature.
249961847f8eSopenharmony_ci   * normal | <feature-tag-value>, 
250061847f8eSopenharmony_ci   * where <feature-tag-value> = <string> [ <integer> | on | off ], like: "ss01" 0
250161847f8eSopenharmony_ci   * the values of <feature-tag-value> reference to doc of TextInput component
250261847f8eSopenharmony_ci   * number of <feature-tag-value> can be single or multiple, and separated by comma ','.
250361847f8eSopenharmony_ci   * @returns { TextInputAttribute }
250461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
250561847f8eSopenharmony_ci   * @crossplatform
250661847f8eSopenharmony_ci   * @atomicservice
250761847f8eSopenharmony_ci   * @since 12
250861847f8eSopenharmony_ci   */
250961847f8eSopenharmony_ci  fontFeature(value: string): TextInputAttribute;  
251061847f8eSopenharmony_ci
251161847f8eSopenharmony_ci  /**
251261847f8eSopenharmony_ci   * Define the password visible mode of the text input.
251361847f8eSopenharmony_ci   *
251461847f8eSopenharmony_ci   * @param { boolean } visible - Indicates the password visible mode. 
251561847f8eSopenharmony_ci   * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute.
251661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
251761847f8eSopenharmony_ci   * @crossplatform
251861847f8eSopenharmony_ci   * @atomicservice
251961847f8eSopenharmony_ci   * @since 12
252061847f8eSopenharmony_ci   */
252161847f8eSopenharmony_ci  showPassword(visible: boolean): TextInputAttribute;
252261847f8eSopenharmony_ci
252361847f8eSopenharmony_ci  /**
252461847f8eSopenharmony_ci   * Called when changing the password visible mode of the text input.
252561847f8eSopenharmony_ci   *
252661847f8eSopenharmony_ci   * @param { Callback<boolean> } callback - callback of the password visible mode change event.
252761847f8eSopenharmony_ci   * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute.
252861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
252961847f8eSopenharmony_ci   * @crossplatform
253061847f8eSopenharmony_ci   * @atomicservice
253161847f8eSopenharmony_ci   * @since 12
253261847f8eSopenharmony_ci   */
253361847f8eSopenharmony_ci  onSecurityStateChange(callback: Callback<boolean>): TextInputAttribute;
253461847f8eSopenharmony_ci
253561847f8eSopenharmony_ci  /**
253661847f8eSopenharmony_ci   * Get text value information when about to input.
253761847f8eSopenharmony_ci   *
253861847f8eSopenharmony_ci   * @param { Callback<InsertValue, boolean> } callback - The triggered function when text content is about to insert.
253961847f8eSopenharmony_ci   * @returns { TextInputAttribute }
254061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
254161847f8eSopenharmony_ci   * @crossplatform
254261847f8eSopenharmony_ci   * @atomicservice
254361847f8eSopenharmony_ci   * @since 12
254461847f8eSopenharmony_ci   */
254561847f8eSopenharmony_ci  onWillInsert(callback: Callback<InsertValue, boolean>): TextInputAttribute;
254661847f8eSopenharmony_ci
254761847f8eSopenharmony_ci  /**
254861847f8eSopenharmony_ci   * Get text value information when completed input.
254961847f8eSopenharmony_ci   *
255061847f8eSopenharmony_ci   * @param { Callback<InsertValue> } callback - The triggered function when text content has been inserted.
255161847f8eSopenharmony_ci   * @returns { TextInputAttribute }
255261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
255361847f8eSopenharmony_ci   * @crossplatform
255461847f8eSopenharmony_ci   * @atomicservice
255561847f8eSopenharmony_ci   * @since 12
255661847f8eSopenharmony_ci   */
255761847f8eSopenharmony_ci  onDidInsert(callback: Callback<InsertValue>): TextInputAttribute;
255861847f8eSopenharmony_ci
255961847f8eSopenharmony_ci  /**
256061847f8eSopenharmony_ci   * Get text value information when about to delete.
256161847f8eSopenharmony_ci   *
256261847f8eSopenharmony_ci   * @param { Callback<DeleteValue, boolean> } callback - The triggered function when text content is about to delete.
256361847f8eSopenharmony_ci   * @returns { TextInputAttribute }
256461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
256561847f8eSopenharmony_ci   * @crossplatform
256661847f8eSopenharmony_ci   * @atomicservice
256761847f8eSopenharmony_ci   * @since 12
256861847f8eSopenharmony_ci   */
256961847f8eSopenharmony_ci  onWillDelete(callback: Callback<DeleteValue, boolean>): TextInputAttribute;
257061847f8eSopenharmony_ci
257161847f8eSopenharmony_ci  /**
257261847f8eSopenharmony_ci   * Get text value information when the deletion has been completed
257361847f8eSopenharmony_ci   *
257461847f8eSopenharmony_ci   * @param { Callback<DeleteValue> } callback - The triggered function when text content has been deleted.
257561847f8eSopenharmony_ci   * @returns { TextInputAttribute }
257661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
257761847f8eSopenharmony_ci   * @crossplatform
257861847f8eSopenharmony_ci   * @atomicservice
257961847f8eSopenharmony_ci   * @since 12
258061847f8eSopenharmony_ci   */
258161847f8eSopenharmony_ci  onDidDelete(callback: Callback<DeleteValue>): TextInputAttribute;
258261847f8eSopenharmony_ci
258361847f8eSopenharmony_ci  /**
258461847f8eSopenharmony_ci   * Set the custom text menu.
258561847f8eSopenharmony_ci   *
258661847f8eSopenharmony_ci   * @param { EditMenuOptions } editMenu - Customize text menu options.
258761847f8eSopenharmony_ci   * @returns { TextInputAttribute }
258861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
258961847f8eSopenharmony_ci   * @crossplatform
259061847f8eSopenharmony_ci   * @atomicservice
259161847f8eSopenharmony_ci   * @since 12
259261847f8eSopenharmony_ci   */
259361847f8eSopenharmony_ci  editMenuOptions(editMenu: EditMenuOptions): TextInputAttribute;
259461847f8eSopenharmony_ci
259561847f8eSopenharmony_ci  /**
259661847f8eSopenharmony_ci   * Define the preview text mode of the text input.
259761847f8eSopenharmony_ci   *
259861847f8eSopenharmony_ci   * @param { boolean } enable - Indicates the preview text mode.
259961847f8eSopenharmony_ci   * @returns { TextInputAttribute }
260061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
260161847f8eSopenharmony_ci   * @crossplatform
260261847f8eSopenharmony_ci   * @atomicservice
260361847f8eSopenharmony_ci   * @since 12
260461847f8eSopenharmony_ci   */
260561847f8eSopenharmony_ci  enablePreviewText(enable: boolean): TextInputAttribute;
260661847f8eSopenharmony_ci
260761847f8eSopenharmony_ci  /**
260861847f8eSopenharmony_ci   * Enable or disable haptic feedback.
260961847f8eSopenharmony_ci   *
261061847f8eSopenharmony_ci   * @param { boolean } isEnabled - Default value is true, set false to disable haptic feedback.
261161847f8eSopenharmony_ci   * @returns { TextInputAttribute } returns the instance of the TextInputAttribute.
261261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
261361847f8eSopenharmony_ci   * @crossplatform
261461847f8eSopenharmony_ci   * @atomicservice
261561847f8eSopenharmony_ci   * @since 13
261661847f8eSopenharmony_ci   */
261761847f8eSopenharmony_ci  enableHapticFeedback(isEnabled: boolean): TextInputAttribute;
261861847f8eSopenharmony_ci}
261961847f8eSopenharmony_ci
262061847f8eSopenharmony_ci/**
262161847f8eSopenharmony_ci * Defines TextInput Component.
262261847f8eSopenharmony_ci *
262361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
262461847f8eSopenharmony_ci * @since 7
262561847f8eSopenharmony_ci */
262661847f8eSopenharmony_ci/**
262761847f8eSopenharmony_ci * Defines TextInput Component.
262861847f8eSopenharmony_ci *
262961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
263061847f8eSopenharmony_ci * @crossplatform
263161847f8eSopenharmony_ci * @since 10
263261847f8eSopenharmony_ci */
263361847f8eSopenharmony_ci/**
263461847f8eSopenharmony_ci * Defines TextInput Component.
263561847f8eSopenharmony_ci *
263661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
263761847f8eSopenharmony_ci * @crossplatform
263861847f8eSopenharmony_ci * @atomicservice
263961847f8eSopenharmony_ci * @since 11
264061847f8eSopenharmony_ci */
264161847f8eSopenharmony_cideclare const TextInput: TextInputInterface;
264261847f8eSopenharmony_ci
264361847f8eSopenharmony_ci/**
264461847f8eSopenharmony_ci * Defines TextInput Component instance.
264561847f8eSopenharmony_ci *
264661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
264761847f8eSopenharmony_ci * @since 7
264861847f8eSopenharmony_ci */
264961847f8eSopenharmony_ci/**
265061847f8eSopenharmony_ci * Defines TextInput Component instance.
265161847f8eSopenharmony_ci *
265261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
265361847f8eSopenharmony_ci * @crossplatform
265461847f8eSopenharmony_ci * @since 10
265561847f8eSopenharmony_ci */
265661847f8eSopenharmony_ci/**
265761847f8eSopenharmony_ci * Defines TextInput Component instance.
265861847f8eSopenharmony_ci *
265961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
266061847f8eSopenharmony_ci * @crossplatform
266161847f8eSopenharmony_ci * @atomicservice
266261847f8eSopenharmony_ci * @since 11
266361847f8eSopenharmony_ci */
266461847f8eSopenharmony_cideclare const TextInputInstance: TextInputAttribute;
2665