161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci  * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci  * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci  * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci  * You may obtain a copy of the License at
661847f8eSopenharmony_ci  *
761847f8eSopenharmony_ci  *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci  *
961847f8eSopenharmony_ci  * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci  * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci  * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci  * limitations under the License.
1461847f8eSopenharmony_ci  */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit ArkUI
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ci/**
2261847f8eSopenharmony_ci * The challenge result based on input pattern for control pattern lock component.
2361847f8eSopenharmony_ci * @enum { number }
2461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
2561847f8eSopenharmony_ci * @crossplatform
2661847f8eSopenharmony_ci * @since 11
2761847f8eSopenharmony_ci */
2861847f8eSopenharmony_ci/**
2961847f8eSopenharmony_ci * The challenge result based on input pattern for control pattern lock component.
3061847f8eSopenharmony_ci * @enum { number }
3161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
3261847f8eSopenharmony_ci * @crossplatform
3361847f8eSopenharmony_ci * @atomicservice
3461847f8eSopenharmony_ci * @since 12
3561847f8eSopenharmony_ci */
3661847f8eSopenharmony_cideclare enum PatternLockChallengeResult {
3761847f8eSopenharmony_ci  /**
3861847f8eSopenharmony_ci   * The challenge result is correct.
3961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
4061847f8eSopenharmony_ci   * @crossplatform
4161847f8eSopenharmony_ci   * @since 11
4261847f8eSopenharmony_ci   */
4361847f8eSopenharmony_ci  /**
4461847f8eSopenharmony_ci   * The challenge result is correct.
4561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
4661847f8eSopenharmony_ci   * @crossplatform
4761847f8eSopenharmony_ci   * @atomicservice
4861847f8eSopenharmony_ci   * @since 12
4961847f8eSopenharmony_ci   */
5061847f8eSopenharmony_ci  CORRECT = 1,
5161847f8eSopenharmony_ci  /**
5261847f8eSopenharmony_ci   * The challenge result is wrong.
5361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
5461847f8eSopenharmony_ci   * @crossplatform
5561847f8eSopenharmony_ci   * @since 11
5661847f8eSopenharmony_ci   */
5761847f8eSopenharmony_ci  /**
5861847f8eSopenharmony_ci   * The challenge result is wrong.
5961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6061847f8eSopenharmony_ci   * @crossplatform
6161847f8eSopenharmony_ci   * @atomicservice
6261847f8eSopenharmony_ci   * @since 12
6361847f8eSopenharmony_ci   */
6461847f8eSopenharmony_ci  WRONG = 2
6561847f8eSopenharmony_ci}
6661847f8eSopenharmony_ci
6761847f8eSopenharmony_ci/**
6861847f8eSopenharmony_ci * Defines the options of active circle style.
6961847f8eSopenharmony_ci *
7061847f8eSopenharmony_ci * @interface CircleStyleOptions
7161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
7261847f8eSopenharmony_ci * @crossplatform
7361847f8eSopenharmony_ci * @atomicservice
7461847f8eSopenharmony_ci * @since 12
7561847f8eSopenharmony_ci */
7661847f8eSopenharmony_cideclare interface CircleStyleOptions {
7761847f8eSopenharmony_ci  /**
7861847f8eSopenharmony_ci   * The circle color when cell is active state.
7961847f8eSopenharmony_ci   *
8061847f8eSopenharmony_ci   * @type { ?ResourceColor }
8161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
8261847f8eSopenharmony_ci   * @crossplatform
8361847f8eSopenharmony_ci   * @atomicservice
8461847f8eSopenharmony_ci   * @since 12
8561847f8eSopenharmony_ci   */
8661847f8eSopenharmony_ci  color?: ResourceColor;
8761847f8eSopenharmony_ci
8861847f8eSopenharmony_ci  /**
8961847f8eSopenharmony_ci   * The circle radius when cell is active state.
9061847f8eSopenharmony_ci   *
9161847f8eSopenharmony_ci   * @type { ?LengthMetrics }
9261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
9361847f8eSopenharmony_ci   * @crossplatform
9461847f8eSopenharmony_ci   * @atomicservice
9561847f8eSopenharmony_ci   * @since 12
9661847f8eSopenharmony_ci   */
9761847f8eSopenharmony_ci  radius?: LengthMetrics;
9861847f8eSopenharmony_ci
9961847f8eSopenharmony_ci  /**
10061847f8eSopenharmony_ci   * Enable the wave effect when cell is active.
10161847f8eSopenharmony_ci   *
10261847f8eSopenharmony_ci   * @type { ?boolean }
10361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10461847f8eSopenharmony_ci   * @crossplatform
10561847f8eSopenharmony_ci   * @atomicservice
10661847f8eSopenharmony_ci   * @since 12
10761847f8eSopenharmony_ci   */
10861847f8eSopenharmony_ci  enableWaveEffect?: boolean;
10961847f8eSopenharmony_ci}
11061847f8eSopenharmony_ci
11161847f8eSopenharmony_ci/**
11261847f8eSopenharmony_ci * Provides methods for control pattern lock component.
11361847f8eSopenharmony_ci *
11461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
11561847f8eSopenharmony_ci * @since 9
11661847f8eSopenharmony_ci */
11761847f8eSopenharmony_ci/**
11861847f8eSopenharmony_ci * Provides methods for control pattern lock component.
11961847f8eSopenharmony_ci *
12061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
12161847f8eSopenharmony_ci * @crossplatform
12261847f8eSopenharmony_ci * @since 10
12361847f8eSopenharmony_ci */
12461847f8eSopenharmony_ci/**
12561847f8eSopenharmony_ci * Provides methods for control pattern lock component.
12661847f8eSopenharmony_ci *
12761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
12861847f8eSopenharmony_ci * @crossplatform
12961847f8eSopenharmony_ci * @atomicservice
13061847f8eSopenharmony_ci * @since 12
13161847f8eSopenharmony_ci */
13261847f8eSopenharmony_cideclare class PatternLockController {
13361847f8eSopenharmony_ci  /**
13461847f8eSopenharmony_ci   * constructor.
13561847f8eSopenharmony_ci   *
13661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
13761847f8eSopenharmony_ci   * @since 9
13861847f8eSopenharmony_ci   */
13961847f8eSopenharmony_ci  /**
14061847f8eSopenharmony_ci   * constructor.
14161847f8eSopenharmony_ci   *
14261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
14361847f8eSopenharmony_ci   * @crossplatform
14461847f8eSopenharmony_ci   * @since 10
14561847f8eSopenharmony_ci   */
14661847f8eSopenharmony_ci  /**
14761847f8eSopenharmony_ci   * constructor.
14861847f8eSopenharmony_ci   *
14961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
15061847f8eSopenharmony_ci   * @crossplatform
15161847f8eSopenharmony_ci   * @atomicservice
15261847f8eSopenharmony_ci   * @since 12
15361847f8eSopenharmony_ci   */
15461847f8eSopenharmony_ci  constructor();
15561847f8eSopenharmony_ci
15661847f8eSopenharmony_ci  /**
15761847f8eSopenharmony_ci   * Reset pattern lock.
15861847f8eSopenharmony_ci   *
15961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
16061847f8eSopenharmony_ci   * @since 9
16161847f8eSopenharmony_ci   */
16261847f8eSopenharmony_ci  /**
16361847f8eSopenharmony_ci   * Reset pattern lock.
16461847f8eSopenharmony_ci   *
16561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
16661847f8eSopenharmony_ci   * @crossplatform
16761847f8eSopenharmony_ci   * @since 10
16861847f8eSopenharmony_ci   */
16961847f8eSopenharmony_ci  /**
17061847f8eSopenharmony_ci   * Reset pattern lock.
17161847f8eSopenharmony_ci   *
17261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
17361847f8eSopenharmony_ci   * @crossplatform
17461847f8eSopenharmony_ci   * @atomicservice
17561847f8eSopenharmony_ci   * @since 12
17661847f8eSopenharmony_ci   */
17761847f8eSopenharmony_ci  reset();
17861847f8eSopenharmony_ci
17961847f8eSopenharmony_ci  /**
18061847f8eSopenharmony_ci   * Set challenge result.
18161847f8eSopenharmony_ci   * @param { PatternLockChallengeResult } result - The challenge result based on input pattern.
18261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18361847f8eSopenharmony_ci   * @crossplatform
18461847f8eSopenharmony_ci   * @since 11
18561847f8eSopenharmony_ci   */
18661847f8eSopenharmony_ci  /**
18761847f8eSopenharmony_ci   * Set challenge result.
18861847f8eSopenharmony_ci   * @param { PatternLockChallengeResult } result - The challenge result based on input pattern.
18961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
19061847f8eSopenharmony_ci   * @crossplatform
19161847f8eSopenharmony_ci   * @atomicservice
19261847f8eSopenharmony_ci   * @since 12
19361847f8eSopenharmony_ci   */
19461847f8eSopenharmony_ci  setChallengeResult(result: PatternLockChallengeResult): void;
19561847f8eSopenharmony_ci}
19661847f8eSopenharmony_ci
19761847f8eSopenharmony_ci/**
19861847f8eSopenharmony_ci * Provides an interface for generating PatternLock.
19961847f8eSopenharmony_ci *
20061847f8eSopenharmony_ci * @interface PatternLockInterface
20161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
20261847f8eSopenharmony_ci * @since 9
20361847f8eSopenharmony_ci */
20461847f8eSopenharmony_ci/**
20561847f8eSopenharmony_ci * Provides an interface for generating PatternLock.
20661847f8eSopenharmony_ci *
20761847f8eSopenharmony_ci * @interface PatternLockInterface
20861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
20961847f8eSopenharmony_ci * @crossplatform
21061847f8eSopenharmony_ci * @since 10
21161847f8eSopenharmony_ci */
21261847f8eSopenharmony_ci/**
21361847f8eSopenharmony_ci * Provides an interface for generating PatternLock.
21461847f8eSopenharmony_ci *
21561847f8eSopenharmony_ci * @interface PatternLockInterface
21661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
21761847f8eSopenharmony_ci * @crossplatform
21861847f8eSopenharmony_ci * @atomicservice
21961847f8eSopenharmony_ci * @since 12
22061847f8eSopenharmony_ci */
22161847f8eSopenharmony_ciinterface PatternLockInterface {
22261847f8eSopenharmony_ci  /**
22361847f8eSopenharmony_ci   * Constructor.
22461847f8eSopenharmony_ci   *
22561847f8eSopenharmony_ci   * @param { PatternLockController } [controller] - controller
22661847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
22761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
22861847f8eSopenharmony_ci   * @since 9
22961847f8eSopenharmony_ci   */
23061847f8eSopenharmony_ci  /**
23161847f8eSopenharmony_ci   * Constructor.
23261847f8eSopenharmony_ci   *
23361847f8eSopenharmony_ci   * @param { PatternLockController } [controller]  controller
23461847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
23561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
23661847f8eSopenharmony_ci   * @crossplatform
23761847f8eSopenharmony_ci   * @since 10
23861847f8eSopenharmony_ci   */
23961847f8eSopenharmony_ci  /**
24061847f8eSopenharmony_ci   * Constructor.
24161847f8eSopenharmony_ci   *
24261847f8eSopenharmony_ci   * @param { PatternLockController } [controller]  controller
24361847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
24461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
24561847f8eSopenharmony_ci   * @crossplatform
24661847f8eSopenharmony_ci   * @atomicservice
24761847f8eSopenharmony_ci   * @since 12
24861847f8eSopenharmony_ci   */
24961847f8eSopenharmony_ci  (controller?: PatternLockController): PatternLockAttribute;
25061847f8eSopenharmony_ci}
25161847f8eSopenharmony_ci
25261847f8eSopenharmony_ci/**
25361847f8eSopenharmony_ci * Provides methods for attribute pattern lock component.
25461847f8eSopenharmony_ci *
25561847f8eSopenharmony_ci * @extends CommonMethod<PatternLockAttribute>
25661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
25761847f8eSopenharmony_ci * @since 9
25861847f8eSopenharmony_ci */
25961847f8eSopenharmony_ci/**
26061847f8eSopenharmony_ci * Provides methods for attribute pattern lock component.
26161847f8eSopenharmony_ci *
26261847f8eSopenharmony_ci * @extends CommonMethod<PatternLockAttribute>
26361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
26461847f8eSopenharmony_ci * @crossplatform
26561847f8eSopenharmony_ci * @since 10
26661847f8eSopenharmony_ci */
26761847f8eSopenharmony_ci/**
26861847f8eSopenharmony_ci * Provides methods for attribute pattern lock component.
26961847f8eSopenharmony_ci *
27061847f8eSopenharmony_ci * @extends CommonMethod<PatternLockAttribute>
27161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
27261847f8eSopenharmony_ci * @crossplatform
27361847f8eSopenharmony_ci * @atomicservice
27461847f8eSopenharmony_ci * @since 12
27561847f8eSopenharmony_ci */
27661847f8eSopenharmony_cideclare class PatternLockAttribute extends CommonMethod<PatternLockAttribute> {
27761847f8eSopenharmony_ci  /**
27861847f8eSopenharmony_ci   * The square side length of pattern lock component.
27961847f8eSopenharmony_ci   *
28061847f8eSopenharmony_ci   * @param { Length } value
28161847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
28261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
28361847f8eSopenharmony_ci   * @since 9
28461847f8eSopenharmony_ci   */
28561847f8eSopenharmony_ci  /**
28661847f8eSopenharmony_ci   * The square side length of pattern lock component.
28761847f8eSopenharmony_ci   *
28861847f8eSopenharmony_ci   * @param { Length } value
28961847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
29061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
29161847f8eSopenharmony_ci   * @crossplatform
29261847f8eSopenharmony_ci   * @since 10
29361847f8eSopenharmony_ci   */
29461847f8eSopenharmony_ci  /**
29561847f8eSopenharmony_ci   * The square side length of pattern lock component.
29661847f8eSopenharmony_ci   *
29761847f8eSopenharmony_ci   * @param { Length } value
29861847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
29961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
30061847f8eSopenharmony_ci   * @crossplatform
30161847f8eSopenharmony_ci   * @atomicservice
30261847f8eSopenharmony_ci   * @since 12
30361847f8eSopenharmony_ci   */
30461847f8eSopenharmony_ci  sideLength(value: Length): PatternLockAttribute;
30561847f8eSopenharmony_ci
30661847f8eSopenharmony_ci  /**
30761847f8eSopenharmony_ci   * Circle radius.
30861847f8eSopenharmony_ci   *
30961847f8eSopenharmony_ci   * @param { Length } value
31061847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
31161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
31261847f8eSopenharmony_ci   * @since 9
31361847f8eSopenharmony_ci   */
31461847f8eSopenharmony_ci  /**
31561847f8eSopenharmony_ci   * Circle radius.
31661847f8eSopenharmony_ci   *
31761847f8eSopenharmony_ci   * @param { Length } value
31861847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
31961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
32061847f8eSopenharmony_ci   * @crossplatform
32161847f8eSopenharmony_ci   * @since 10
32261847f8eSopenharmony_ci   */
32361847f8eSopenharmony_ci  /**
32461847f8eSopenharmony_ci   * Circle radius.
32561847f8eSopenharmony_ci   *
32661847f8eSopenharmony_ci   * @param { Length } value
32761847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
32861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
32961847f8eSopenharmony_ci   * @crossplatform
33061847f8eSopenharmony_ci   * @atomicservice
33161847f8eSopenharmony_ci   * @since 12
33261847f8eSopenharmony_ci   */
33361847f8eSopenharmony_ci  circleRadius(value: Length): PatternLockAttribute;
33461847f8eSopenharmony_ci
33561847f8eSopenharmony_ci  /**
33661847f8eSopenharmony_ci   * The background color.
33761847f8eSopenharmony_ci   *
33861847f8eSopenharmony_ci   * @param { ResourceColor } value
33961847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
34061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
34161847f8eSopenharmony_ci   * @since 9
34261847f8eSopenharmony_ci   */
34361847f8eSopenharmony_ci  /**
34461847f8eSopenharmony_ci   * The background color.
34561847f8eSopenharmony_ci   *
34661847f8eSopenharmony_ci   * @param { ResourceColor } value
34761847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
34861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
34961847f8eSopenharmony_ci   * @crossplatform
35061847f8eSopenharmony_ci   * @since 10
35161847f8eSopenharmony_ci   */
35261847f8eSopenharmony_ci  /**
35361847f8eSopenharmony_ci   * The background color.
35461847f8eSopenharmony_ci   *
35561847f8eSopenharmony_ci   * @param { ResourceColor } value
35661847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
35761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35861847f8eSopenharmony_ci   * @crossplatform
35961847f8eSopenharmony_ci   * @atomicservice
36061847f8eSopenharmony_ci   * @since 12
36161847f8eSopenharmony_ci   */
36261847f8eSopenharmony_ci  backgroundColor(value: ResourceColor): PatternLockAttribute;
36361847f8eSopenharmony_ci
36461847f8eSopenharmony_ci  /**
36561847f8eSopenharmony_ci   * Regular color.
36661847f8eSopenharmony_ci   *
36761847f8eSopenharmony_ci   * @param { ResourceColor } value
36861847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
36961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
37061847f8eSopenharmony_ci   * @since 9
37161847f8eSopenharmony_ci   */
37261847f8eSopenharmony_ci  /**
37361847f8eSopenharmony_ci   * Regular color.
37461847f8eSopenharmony_ci   *
37561847f8eSopenharmony_ci   * @param { ResourceColor } value
37661847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
37761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
37861847f8eSopenharmony_ci   * @crossplatform
37961847f8eSopenharmony_ci   * @since 10
38061847f8eSopenharmony_ci   */
38161847f8eSopenharmony_ci  /**
38261847f8eSopenharmony_ci   * Regular color.
38361847f8eSopenharmony_ci   *
38461847f8eSopenharmony_ci   * @param { ResourceColor } value
38561847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
38661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
38761847f8eSopenharmony_ci   * @crossplatform
38861847f8eSopenharmony_ci   * @atomicservice
38961847f8eSopenharmony_ci   * @since 12
39061847f8eSopenharmony_ci   */
39161847f8eSopenharmony_ci  regularColor(value: ResourceColor): PatternLockAttribute;
39261847f8eSopenharmony_ci
39361847f8eSopenharmony_ci  /**
39461847f8eSopenharmony_ci   * The color when cell is selected.
39561847f8eSopenharmony_ci   *
39661847f8eSopenharmony_ci   * @param { ResourceColor } value
39761847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
39861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
39961847f8eSopenharmony_ci   * @since 9
40061847f8eSopenharmony_ci   */
40161847f8eSopenharmony_ci  /**
40261847f8eSopenharmony_ci   * The color when cell is selected.
40361847f8eSopenharmony_ci   *
40461847f8eSopenharmony_ci   * @param { ResourceColor } value
40561847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
40661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
40761847f8eSopenharmony_ci   * @crossplatform
40861847f8eSopenharmony_ci   * @since 10
40961847f8eSopenharmony_ci   */
41061847f8eSopenharmony_ci  /**
41161847f8eSopenharmony_ci   * The color when cell is selected.
41261847f8eSopenharmony_ci   *
41361847f8eSopenharmony_ci   * @param { ResourceColor } value
41461847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
41561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
41661847f8eSopenharmony_ci   * @crossplatform
41761847f8eSopenharmony_ci   * @atomicservice
41861847f8eSopenharmony_ci   * @since 12
41961847f8eSopenharmony_ci   */
42061847f8eSopenharmony_ci  selectedColor(value: ResourceColor): PatternLockAttribute;
42161847f8eSopenharmony_ci
42261847f8eSopenharmony_ci  /**
42361847f8eSopenharmony_ci   * The color when cell is active state.
42461847f8eSopenharmony_ci   *
42561847f8eSopenharmony_ci   * @param { ResourceColor } value
42661847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
42761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
42861847f8eSopenharmony_ci   * @since 9
42961847f8eSopenharmony_ci   */
43061847f8eSopenharmony_ci  /**
43161847f8eSopenharmony_ci   * The color when cell is active state.
43261847f8eSopenharmony_ci   *
43361847f8eSopenharmony_ci   * @param { ResourceColor } value
43461847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
43561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
43661847f8eSopenharmony_ci   * @crossplatform
43761847f8eSopenharmony_ci   * @since 10
43861847f8eSopenharmony_ci   */
43961847f8eSopenharmony_ci  /**
44061847f8eSopenharmony_ci   * The color when cell is active state.
44161847f8eSopenharmony_ci   *
44261847f8eSopenharmony_ci   * @param { ResourceColor } value
44361847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
44461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
44561847f8eSopenharmony_ci   * @crossplatform
44661847f8eSopenharmony_ci   * @atomicservice
44761847f8eSopenharmony_ci   * @since 12
44861847f8eSopenharmony_ci   */
44961847f8eSopenharmony_ci  activeColor(value: ResourceColor): PatternLockAttribute;
45061847f8eSopenharmony_ci
45161847f8eSopenharmony_ci  /**
45261847f8eSopenharmony_ci   * The path line color.
45361847f8eSopenharmony_ci   *
45461847f8eSopenharmony_ci   * @param { ResourceColor } value
45561847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
45661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
45761847f8eSopenharmony_ci   * @since 9
45861847f8eSopenharmony_ci   */
45961847f8eSopenharmony_ci  /**
46061847f8eSopenharmony_ci   * The path line color.
46161847f8eSopenharmony_ci   *
46261847f8eSopenharmony_ci   * @param { ResourceColor } value
46361847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
46461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
46561847f8eSopenharmony_ci   * @crossplatform
46661847f8eSopenharmony_ci   * @since 10
46761847f8eSopenharmony_ci   */
46861847f8eSopenharmony_ci  /**
46961847f8eSopenharmony_ci   * The path line color.
47061847f8eSopenharmony_ci   *
47161847f8eSopenharmony_ci   * @param { ResourceColor } value
47261847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
47361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
47461847f8eSopenharmony_ci   * @crossplatform
47561847f8eSopenharmony_ci   * @atomicservice
47661847f8eSopenharmony_ci   * @since 12
47761847f8eSopenharmony_ci   */
47861847f8eSopenharmony_ci  pathColor(value: ResourceColor): PatternLockAttribute;
47961847f8eSopenharmony_ci
48061847f8eSopenharmony_ci  /**
48161847f8eSopenharmony_ci   * The path line stroke width.
48261847f8eSopenharmony_ci   *
48361847f8eSopenharmony_ci   * @param { number | string } value
48461847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
48561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
48661847f8eSopenharmony_ci   * @since 9
48761847f8eSopenharmony_ci   */
48861847f8eSopenharmony_ci  /**
48961847f8eSopenharmony_ci   * The path line stroke width.
49061847f8eSopenharmony_ci   *
49161847f8eSopenharmony_ci   * @param { number | string } value
49261847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
49361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
49461847f8eSopenharmony_ci   * @crossplatform
49561847f8eSopenharmony_ci   * @since 10
49661847f8eSopenharmony_ci   */
49761847f8eSopenharmony_ci  /**
49861847f8eSopenharmony_ci   * The path line stroke width.
49961847f8eSopenharmony_ci   *
50061847f8eSopenharmony_ci   * @param { number | string } value
50161847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
50261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
50361847f8eSopenharmony_ci   * @crossplatform
50461847f8eSopenharmony_ci   * @atomicservice
50561847f8eSopenharmony_ci   * @since 12
50661847f8eSopenharmony_ci   */
50761847f8eSopenharmony_ci  pathStrokeWidth(value: number | string): PatternLockAttribute;
50861847f8eSopenharmony_ci
50961847f8eSopenharmony_ci  /**
51061847f8eSopenharmony_ci   * Called when the pattern input completed.
51161847f8eSopenharmony_ci   *
51261847f8eSopenharmony_ci   * @param { function } callback
51361847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
51461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
51561847f8eSopenharmony_ci   * @since 9
51661847f8eSopenharmony_ci   */
51761847f8eSopenharmony_ci  /**
51861847f8eSopenharmony_ci   * Called when the pattern input completed.
51961847f8eSopenharmony_ci   *
52061847f8eSopenharmony_ci   * @param { function } callback
52161847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
52261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
52361847f8eSopenharmony_ci   * @crossplatform
52461847f8eSopenharmony_ci   * @since 10
52561847f8eSopenharmony_ci   */
52661847f8eSopenharmony_ci  /**
52761847f8eSopenharmony_ci   * Called when the pattern input completed.
52861847f8eSopenharmony_ci   *
52961847f8eSopenharmony_ci   * @param { function } callback
53061847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
53161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
53261847f8eSopenharmony_ci   * @crossplatform
53361847f8eSopenharmony_ci   * @atomicservice
53461847f8eSopenharmony_ci   * @since 12
53561847f8eSopenharmony_ci   */
53661847f8eSopenharmony_ci  onPatternComplete(callback: (input: Array<number>) => void): PatternLockAttribute;
53761847f8eSopenharmony_ci
53861847f8eSopenharmony_ci  /**
53961847f8eSopenharmony_ci   * Called when judging whether the input state can be reset by touch pattern lock.
54061847f8eSopenharmony_ci   *
54161847f8eSopenharmony_ci   * @param { boolean } value
54261847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
54361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
54461847f8eSopenharmony_ci   * @since 9
54561847f8eSopenharmony_ci   */
54661847f8eSopenharmony_ci  /**
54761847f8eSopenharmony_ci   * Called when judging whether the input state can be reset by touch pattern lock.
54861847f8eSopenharmony_ci   *
54961847f8eSopenharmony_ci   * @param { boolean } value
55061847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
55161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
55261847f8eSopenharmony_ci   * @crossplatform
55361847f8eSopenharmony_ci   * @since 10
55461847f8eSopenharmony_ci   */
55561847f8eSopenharmony_ci  /**
55661847f8eSopenharmony_ci   * Called when judging whether the input state can be reset by touch pattern lock.
55761847f8eSopenharmony_ci   *
55861847f8eSopenharmony_ci   * @param { boolean } value
55961847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
56061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
56161847f8eSopenharmony_ci   * @crossplatform
56261847f8eSopenharmony_ci   * @atomicservice
56361847f8eSopenharmony_ci   * @since 12
56461847f8eSopenharmony_ci   */
56561847f8eSopenharmony_ci  autoReset(value: boolean): PatternLockAttribute;
56661847f8eSopenharmony_ci
56761847f8eSopenharmony_ci  /**
56861847f8eSopenharmony_ci   * Called when connecting to a grid dot.
56961847f8eSopenharmony_ci   * @param { import('../api/@ohos.base').Callback<number> } callback - A callback instance used when connection to a grid dot.
57061847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
57161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
57261847f8eSopenharmony_ci   * @crossplatform
57361847f8eSopenharmony_ci   * @since 11
57461847f8eSopenharmony_ci   */
57561847f8eSopenharmony_ci  /**
57661847f8eSopenharmony_ci   * Called when connecting to a grid dot.
57761847f8eSopenharmony_ci   * @param { import('../api/@ohos.base').Callback<number> } callback - A callback instance used when connection to a grid dot.
57861847f8eSopenharmony_ci   * @returns { PatternLockAttribute }
57961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
58061847f8eSopenharmony_ci   * @crossplatform
58161847f8eSopenharmony_ci   * @atomicservice
58261847f8eSopenharmony_ci   * @since 12
58361847f8eSopenharmony_ci   */
58461847f8eSopenharmony_ci  onDotConnect(callback: import('../api/@ohos.base').Callback<number>): PatternLockAttribute;
58561847f8eSopenharmony_ci  
58661847f8eSopenharmony_ci  /**
58761847f8eSopenharmony_ci   * The activate circle style.
58861847f8eSopenharmony_ci   *
58961847f8eSopenharmony_ci   * @param { Optional<CircleStyleOptions> } options - the circle style setting options
59061847f8eSopenharmony_ci   * @returns { PatternLockAttribute } PatternLockAttribute
59161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
59261847f8eSopenharmony_ci   * @crossplatform
59361847f8eSopenharmony_ci   * @atomicservice
59461847f8eSopenharmony_ci   * @since 12
59561847f8eSopenharmony_ci   */
59661847f8eSopenharmony_ci  activateCircleStyle(options: Optional<CircleStyleOptions>): PatternLockAttribute;
59761847f8eSopenharmony_ci}
59861847f8eSopenharmony_ci
59961847f8eSopenharmony_ci/**
60061847f8eSopenharmony_ci * Defines PatternLock Component.
60161847f8eSopenharmony_ci *
60261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
60361847f8eSopenharmony_ci * @since 9
60461847f8eSopenharmony_ci */
60561847f8eSopenharmony_ci/**
60661847f8eSopenharmony_ci * Defines PatternLock Component.
60761847f8eSopenharmony_ci *
60861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
60961847f8eSopenharmony_ci * @crossplatform
61061847f8eSopenharmony_ci * @since 10
61161847f8eSopenharmony_ci */
61261847f8eSopenharmony_ci/**
61361847f8eSopenharmony_ci * Defines PatternLock Component.
61461847f8eSopenharmony_ci *
61561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
61661847f8eSopenharmony_ci * @crossplatform
61761847f8eSopenharmony_ci * @atomicservice
61861847f8eSopenharmony_ci * @since 12
61961847f8eSopenharmony_ci */
62061847f8eSopenharmony_cideclare const PatternLock: PatternLockInterface;
62161847f8eSopenharmony_ci
62261847f8eSopenharmony_ci/**
62361847f8eSopenharmony_ci * Defines PatternLock Component instance.
62461847f8eSopenharmony_ci *
62561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
62661847f8eSopenharmony_ci * @since 9
62761847f8eSopenharmony_ci */
62861847f8eSopenharmony_ci/**
62961847f8eSopenharmony_ci * Defines PatternLock Component instance.
63061847f8eSopenharmony_ci *
63161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
63261847f8eSopenharmony_ci * @crossplatform
63361847f8eSopenharmony_ci * @since 10
63461847f8eSopenharmony_ci */
63561847f8eSopenharmony_ci/**
63661847f8eSopenharmony_ci * Defines PatternLock Component instance.
63761847f8eSopenharmony_ci *
63861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
63961847f8eSopenharmony_ci * @crossplatform
64061847f8eSopenharmony_ci * @atomicservice
64161847f8eSopenharmony_ci * @since 12
64261847f8eSopenharmony_ci */
64361847f8eSopenharmony_cideclare const PatternLockInstance: PatternLockAttribute;
644