161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2022 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 BasicServicesKit
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ciimport { AsyncCallback } from './@ohos.base';
2261847f8eSopenharmony_ciimport { DataAbilityHelper } from './ability/dataAbilityHelper';
2361847f8eSopenharmony_ciimport Context from './application/Context';
2461847f8eSopenharmony_ci
2561847f8eSopenharmony_ci/**
2661847f8eSopenharmony_ci * This module provides settings data access abilities.
2761847f8eSopenharmony_ci *
2861847f8eSopenharmony_ci * @namespace settings
2961847f8eSopenharmony_ci * @syscap SystemCapability.Applications.Settings.Core
3061847f8eSopenharmony_ci * @since 7
3161847f8eSopenharmony_ci */
3261847f8eSopenharmony_cideclare namespace settings {
3361847f8eSopenharmony_ci
3461847f8eSopenharmony_ci  /**
3561847f8eSopenharmony_ci   * Provide domain name for query.
3661847f8eSopenharmony_ci   *
3761847f8eSopenharmony_ci   * @namespace domainName
3861847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
3961847f8eSopenharmony_ci   * @since 11
4061847f8eSopenharmony_ci   */
4161847f8eSopenharmony_ci  namespace domainName {
4261847f8eSopenharmony_ci    /**
4361847f8eSopenharmony_ci     * Provide the domain name for device shared Key.
4461847f8eSopenharmony_ci     *
4561847f8eSopenharmony_ci     * <p>This constants is a domain name for device level shared key.
4661847f8eSopenharmony_ci     *
4761847f8eSopenharmony_ci     * @constant
4861847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
4961847f8eSopenharmony_ci     * @since 11
5061847f8eSopenharmony_ci     */
5161847f8eSopenharmony_ci    const DEVICE_SHARED: string;
5261847f8eSopenharmony_ci
5361847f8eSopenharmony_ci    /**
5461847f8eSopenharmony_ci     * Provide the domain name for user property.
5561847f8eSopenharmony_ci     *
5661847f8eSopenharmony_ci     * <p>This constants is a domain name for user level key.
5761847f8eSopenharmony_ci     *
5861847f8eSopenharmony_ci     * @constant
5961847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
6061847f8eSopenharmony_ci     * @since 11
6161847f8eSopenharmony_ci     */
6261847f8eSopenharmony_ci    const USER_PROPERTY: string;
6361847f8eSopenharmony_ci
6461847f8eSopenharmony_ci    /**
6561847f8eSopenharmony_ci     * Provide the domain name for user security property.
6661847f8eSopenharmony_ci     *
6761847f8eSopenharmony_ci     * <p>This constants is a domain name for user security level key.
6861847f8eSopenharmony_ci     *
6961847f8eSopenharmony_ci     * @constant
7061847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
7161847f8eSopenharmony_ci     * @systemapi
7261847f8eSopenharmony_ci     * @since 11
7361847f8eSopenharmony_ci     */
7461847f8eSopenharmony_ci    const USER_SECURITY: string;
7561847f8eSopenharmony_ci  }
7661847f8eSopenharmony_ci
7761847f8eSopenharmony_ci  /**
7861847f8eSopenharmony_ci   * Provides methods for setting time and date formats.
7961847f8eSopenharmony_ci   *
8061847f8eSopenharmony_ci   * @namespace date
8161847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
8261847f8eSopenharmony_ci   * @since 7
8361847f8eSopenharmony_ci   */
8461847f8eSopenharmony_ci  namespace date {
8561847f8eSopenharmony_ci
8661847f8eSopenharmony_ci    /**
8761847f8eSopenharmony_ci     * Indicates the date format.
8861847f8eSopenharmony_ci     *
8961847f8eSopenharmony_ci     * <p>The formats {@code mm/dd/yyyy}, {@code dd/mm/yyyy}, and {@code yyyy/mm/dd} are available.
9061847f8eSopenharmony_ci     *
9161847f8eSopenharmony_ci     * @constant
9261847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
9361847f8eSopenharmony_ci     * @since 7
9461847f8eSopenharmony_ci     */
9561847f8eSopenharmony_ci    const DATE_FORMAT: string
9661847f8eSopenharmony_ci
9761847f8eSopenharmony_ci    /**
9861847f8eSopenharmony_ci     * Specifies whether the time is displayed in 12-hour or 24-hour format.
9961847f8eSopenharmony_ci     *
10061847f8eSopenharmony_ci     * <p>If the value is {@code 12}, the 12-hour format is used. If the value is {@code 24}, the 24-hour format
10161847f8eSopenharmony_ci     * is used.
10261847f8eSopenharmony_ci     *
10361847f8eSopenharmony_ci     * @constant
10461847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
10561847f8eSopenharmony_ci     * @since 7
10661847f8eSopenharmony_ci     */
10761847f8eSopenharmony_ci    const TIME_FORMAT: string
10861847f8eSopenharmony_ci
10961847f8eSopenharmony_ci    /**
11061847f8eSopenharmony_ci     * Specifies whether the date, time, and time zone are automatically obtained from the Network
11161847f8eSopenharmony_ci     * Identity and Time Zone (NITZ).
11261847f8eSopenharmony_ci     *
11361847f8eSopenharmony_ci     * <p>If the value is {@code true}, the information is automatically obtained from NITZ.
11461847f8eSopenharmony_ci     * If the value is {@code false}, the information is not obtained from NITZ.
11561847f8eSopenharmony_ci     *
11661847f8eSopenharmony_ci     * @constant
11761847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
11861847f8eSopenharmony_ci     * @since 7
11961847f8eSopenharmony_ci     */
12061847f8eSopenharmony_ci    const AUTO_GAIN_TIME: string
12161847f8eSopenharmony_ci
12261847f8eSopenharmony_ci    /**
12361847f8eSopenharmony_ci     * Specifies whether the time zone is automatically obtained from NITZ.
12461847f8eSopenharmony_ci     *
12561847f8eSopenharmony_ci     * <p>If the value is {@code true}, the information is automatically obtained from NITZ. If the value
12661847f8eSopenharmony_ci     * is {@code false}, the information is not obtained from NITZ.
12761847f8eSopenharmony_ci     *
12861847f8eSopenharmony_ci     * @constant
12961847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
13061847f8eSopenharmony_ci     * @since 7
13161847f8eSopenharmony_ci     */
13261847f8eSopenharmony_ci    const AUTO_GAIN_TIME_ZONE: string
13361847f8eSopenharmony_ci  }
13461847f8eSopenharmony_ci
13561847f8eSopenharmony_ci  /**
13661847f8eSopenharmony_ci   * Provides methods for setting the display effect, including the font size, screen brightness, screen rotation,
13761847f8eSopenharmony_ci   * animation factor, and display color.
13861847f8eSopenharmony_ci   *
13961847f8eSopenharmony_ci   * @namespace display
14061847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
14161847f8eSopenharmony_ci   * @since 7
14261847f8eSopenharmony_ci   */
14361847f8eSopenharmony_ci  namespace display {
14461847f8eSopenharmony_ci    /**
14561847f8eSopenharmony_ci     * Indicates the scaling factor of fonts, which is a float number.
14661847f8eSopenharmony_ci     *
14761847f8eSopenharmony_ci     * @constant
14861847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
14961847f8eSopenharmony_ci     * @since 7
15061847f8eSopenharmony_ci     */
15161847f8eSopenharmony_ci    const FONT_SCALE: string
15261847f8eSopenharmony_ci
15361847f8eSopenharmony_ci    /**
15461847f8eSopenharmony_ci     * Indicates the screen brightness. The value ranges from 0 to 255.
15561847f8eSopenharmony_ci     *
15661847f8eSopenharmony_ci     * @constant
15761847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
15861847f8eSopenharmony_ci     * @since 7
15961847f8eSopenharmony_ci     */
16061847f8eSopenharmony_ci    const SCREEN_BRIGHTNESS_STATUS: string
16161847f8eSopenharmony_ci
16261847f8eSopenharmony_ci    /**
16361847f8eSopenharmony_ci     * Specifies whether automatic screen brightness adjustment is enabled.
16461847f8eSopenharmony_ci     *
16561847f8eSopenharmony_ci     * <p>If the value is {@code 1}, automatic adjustment is enabled. If the value is {@code 0}, automatic
16661847f8eSopenharmony_ci     * adjustment is disabled.
16761847f8eSopenharmony_ci     *
16861847f8eSopenharmony_ci     * @constant
16961847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
17061847f8eSopenharmony_ci     * @since 7
17161847f8eSopenharmony_ci     */
17261847f8eSopenharmony_ci    const AUTO_SCREEN_BRIGHTNESS: string
17361847f8eSopenharmony_ci
17461847f8eSopenharmony_ci    /**
17561847f8eSopenharmony_ci     * Indicates the value of {@code AUTO_SCREEN_BRIGHTNESS} when automatic screen brightness adjustment is used.
17661847f8eSopenharmony_ci     *
17761847f8eSopenharmony_ci     * @constant
17861847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
17961847f8eSopenharmony_ci     * @since 7
18061847f8eSopenharmony_ci     */
18161847f8eSopenharmony_ci    const AUTO_SCREEN_BRIGHTNESS_MODE: number
18261847f8eSopenharmony_ci
18361847f8eSopenharmony_ci    /**
18461847f8eSopenharmony_ci     * Indicates the value of {@code AUTO_SCREEN_BRIGHTNESS} when manual screen brightness adjustment is used.
18561847f8eSopenharmony_ci     *
18661847f8eSopenharmony_ci     * @constant
18761847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
18861847f8eSopenharmony_ci     * @since 7
18961847f8eSopenharmony_ci     */
19061847f8eSopenharmony_ci    const MANUAL_SCREEN_BRIGHTNESS_MODE: number
19161847f8eSopenharmony_ci
19261847f8eSopenharmony_ci    /**
19361847f8eSopenharmony_ci     * Indicates the duration that the device waits before going to sleep after a period of inactivity, in
19461847f8eSopenharmony_ci     * milliseconds.
19561847f8eSopenharmony_ci     *
19661847f8eSopenharmony_ci     * @constant
19761847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
19861847f8eSopenharmony_ci     * @since 7
19961847f8eSopenharmony_ci     */
20061847f8eSopenharmony_ci    const SCREEN_OFF_TIMEOUT: string
20161847f8eSopenharmony_ci
20261847f8eSopenharmony_ci    /**
20361847f8eSopenharmony_ci     * Indicates the screen rotation when no other policy is available.
20461847f8eSopenharmony_ci     *
20561847f8eSopenharmony_ci     * <p>This constant is invalid when auto-rotation is enabled. When auto-rotation is disabled, the following
20661847f8eSopenharmony_ci     * values are available:
20761847f8eSopenharmony_ci     *
20861847f8eSopenharmony_ci     * <ul>
20961847f8eSopenharmony_ci     * <li>{@code 0} - The screen rotates 0 degrees.
21061847f8eSopenharmony_ci     * <li>{@code 1} - The screen rotates 90 degrees.
21161847f8eSopenharmony_ci     * <li>{@code 2} - The screen rotates 180 degrees.
21261847f8eSopenharmony_ci     * <li>{@code 3} - The screen rotates 270 degrees.
21361847f8eSopenharmony_ci     * </ul>
21461847f8eSopenharmony_ci     *
21561847f8eSopenharmony_ci     * @constant
21661847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
21761847f8eSopenharmony_ci     * @since 7
21861847f8eSopenharmony_ci     */
21961847f8eSopenharmony_ci    const DEFAULT_SCREEN_ROTATION: string
22061847f8eSopenharmony_ci
22161847f8eSopenharmony_ci    /**
22261847f8eSopenharmony_ci     * Indicates the scaling factor for the animation duration.
22361847f8eSopenharmony_ci     *
22461847f8eSopenharmony_ci     * <p>This affects the start delay and duration of all such animations. If the value is {@code 0},
22561847f8eSopenharmony_ci     * the animation ends immediately. The default value is {@code 1}.
22661847f8eSopenharmony_ci     *
22761847f8eSopenharmony_ci     * @constant
22861847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
22961847f8eSopenharmony_ci     * @since 7
23061847f8eSopenharmony_ci     */
23161847f8eSopenharmony_ci    const ANIMATOR_DURATION_SCALE: string
23261847f8eSopenharmony_ci
23361847f8eSopenharmony_ci    /**
23461847f8eSopenharmony_ci     * Indicates the scaling factor for transition animations.
23561847f8eSopenharmony_ci     * If the value is {@code 0}, transition animations are disabled.
23661847f8eSopenharmony_ci     *
23761847f8eSopenharmony_ci     * @constant
23861847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
23961847f8eSopenharmony_ci     * @since 7
24061847f8eSopenharmony_ci     */
24161847f8eSopenharmony_ci    const TRANSITION_ANIMATION_SCALE: string
24261847f8eSopenharmony_ci
24361847f8eSopenharmony_ci    /**
24461847f8eSopenharmony_ci     * Indicates the scaling factor for normal window animations.
24561847f8eSopenharmony_ci     * If the value is {@code 0}, window animations are disabled.
24661847f8eSopenharmony_ci     *
24761847f8eSopenharmony_ci     * @constant
24861847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
24961847f8eSopenharmony_ci     * @since 7
25061847f8eSopenharmony_ci     */
25161847f8eSopenharmony_ci    const WINDOW_ANIMATION_SCALE: string
25261847f8eSopenharmony_ci
25361847f8eSopenharmony_ci    /**
25461847f8eSopenharmony_ci     * Specifies whether display color inversion is enabled.
25561847f8eSopenharmony_ci     *
25661847f8eSopenharmony_ci     * <p>If the value is {@code 1}, display color inversion is enabled. If the value is {@code 0}, display color
25761847f8eSopenharmony_ci     * inversion is disabled.
25861847f8eSopenharmony_ci     *
25961847f8eSopenharmony_ci     * @constant
26061847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
26161847f8eSopenharmony_ci     * @since 7
26261847f8eSopenharmony_ci     */
26361847f8eSopenharmony_ci    const DISPLAY_INVERSION_STATUS: string
26461847f8eSopenharmony_ci  }
26561847f8eSopenharmony_ci
26661847f8eSopenharmony_ci  /**
26761847f8eSopenharmony_ci   * Provides methods for setting general information about devices, including the device name, startup wizard,
26861847f8eSopenharmony_ci   * airplane mode, debugging information, accessibility feature switch, and touch exploration status.
26961847f8eSopenharmony_ci   *
27061847f8eSopenharmony_ci   * @namespace general
27161847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
27261847f8eSopenharmony_ci   * @since 7
27361847f8eSopenharmony_ci   */
27461847f8eSopenharmony_ci  namespace general {
27561847f8eSopenharmony_ci    /**
27661847f8eSopenharmony_ci     * Specifies whether the startup wizard has been run.
27761847f8eSopenharmony_ci     *
27861847f8eSopenharmony_ci     * <p>If the value is {@code 0}, the startup wizard has not been run. If the value is not {@code 0}, the startup
27961847f8eSopenharmony_ci     * wizard has been run.
28061847f8eSopenharmony_ci     *
28161847f8eSopenharmony_ci     * @constant
28261847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
28361847f8eSopenharmony_ci     * @since 7
28461847f8eSopenharmony_ci     */
28561847f8eSopenharmony_ci    const SETUP_WIZARD_FINISHED: string
28661847f8eSopenharmony_ci
28761847f8eSopenharmony_ci    /**
28861847f8eSopenharmony_ci     * Specifies what happens after the user presses the call end button if the user is not in a call.
28961847f8eSopenharmony_ci     *
29061847f8eSopenharmony_ci     * <ul>
29161847f8eSopenharmony_ci     * <li>{@code 0} - Nothing happens.
29261847f8eSopenharmony_ci     * <li>{@code 1} - The home screen is displayed.
29361847f8eSopenharmony_ci     * <li>{@code 2} - The device enters the sleep state and the screen is locked.
29461847f8eSopenharmony_ci     * <li>{@code 3} - The home screen is displayed. If the user is already on the home screen, the device enters
29561847f8eSopenharmony_ci     * the sleep state.
29661847f8eSopenharmony_ci     * </ul>
29761847f8eSopenharmony_ci     *
29861847f8eSopenharmony_ci     * @constant
29961847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
30061847f8eSopenharmony_ci     * @since 7
30161847f8eSopenharmony_ci     */
30261847f8eSopenharmony_ci    const END_BUTTON_ACTION: string
30361847f8eSopenharmony_ci
30461847f8eSopenharmony_ci    /**
30561847f8eSopenharmony_ci     * Specifies whether the accelerometer is used to change screen orientation, that is, whether auto-rotation is
30661847f8eSopenharmony_ci     * enabled.
30761847f8eSopenharmony_ci     *
30861847f8eSopenharmony_ci     * <p>The value {@code 1} indicates that the accelerometer is enabled by default, and {@code 0} indicates that
30961847f8eSopenharmony_ci     * the accelerometer is disabled by default.
31061847f8eSopenharmony_ci     *
31161847f8eSopenharmony_ci     * @constant
31261847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
31361847f8eSopenharmony_ci     * @since 7
31461847f8eSopenharmony_ci     */
31561847f8eSopenharmony_ci    const ACCELEROMETER_ROTATION_STATUS: string
31661847f8eSopenharmony_ci
31761847f8eSopenharmony_ci    /**
31861847f8eSopenharmony_ci     * Specifies whether airplane mode is enabled.
31961847f8eSopenharmony_ci     *
32061847f8eSopenharmony_ci     * <p>If the value is {@code 1}, airplane mode is enabled. If the value is {@code 0}, airplane mode is disabled.
32161847f8eSopenharmony_ci     *
32261847f8eSopenharmony_ci     * @constant
32361847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
32461847f8eSopenharmony_ci     * @since 7
32561847f8eSopenharmony_ci     */
32661847f8eSopenharmony_ci    const AIRPLANE_MODE_STATUS: string
32761847f8eSopenharmony_ci
32861847f8eSopenharmony_ci    /**
32961847f8eSopenharmony_ci     * Specifies whether the device is provisioned.
33061847f8eSopenharmony_ci     *
33161847f8eSopenharmony_ci     * <p>On a multi-user device with a single system user, the screen may be locked when the value is {@code true}.
33261847f8eSopenharmony_ci     * In addition, other abilities cannot be started on the system user unless they are marked to display over
33361847f8eSopenharmony_ci     * the screen lock.
33461847f8eSopenharmony_ci     * @constant
33561847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
33661847f8eSopenharmony_ci     * @since 7
33761847f8eSopenharmony_ci     */
33861847f8eSopenharmony_ci    const DEVICE_PROVISION_STATUS: string
33961847f8eSopenharmony_ci
34061847f8eSopenharmony_ci    /**
34161847f8eSopenharmony_ci     * Specifies whether the hard disk controller (HDC) on USB devices is enabled.
34261847f8eSopenharmony_ci     *
34361847f8eSopenharmony_ci     * <p>If the value is {@code true}, the HDC is enabled. If the value is {@code false}, the HDC is disabled.
34461847f8eSopenharmony_ci     *
34561847f8eSopenharmony_ci     * @constant
34661847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
34761847f8eSopenharmony_ci     * @since 7
34861847f8eSopenharmony_ci     */
34961847f8eSopenharmony_ci    const HDC_STATUS: string
35061847f8eSopenharmony_ci
35161847f8eSopenharmony_ci    /**
35261847f8eSopenharmony_ci     * Indicates the number of boot operations after the device is powered on.
35361847f8eSopenharmony_ci     *
35461847f8eSopenharmony_ci     * @constant
35561847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
35661847f8eSopenharmony_ci     * @since 7
35761847f8eSopenharmony_ci     */
35861847f8eSopenharmony_ci    const BOOT_COUNTING: string
35961847f8eSopenharmony_ci
36061847f8eSopenharmony_ci    /**
36161847f8eSopenharmony_ci     * Specifies whether contact metadata synchronization is enabled.
36261847f8eSopenharmony_ci     *
36361847f8eSopenharmony_ci     * <p>If the value is {@code true}, synchronization is enabled. If the value is {@code false},
36461847f8eSopenharmony_ci     * synchronization is disabled.
36561847f8eSopenharmony_ci     *
36661847f8eSopenharmony_ci     * @constant
36761847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
36861847f8eSopenharmony_ci     * @since 7
36961847f8eSopenharmony_ci     */
37061847f8eSopenharmony_ci    const CONTACT_METADATA_SYNC_STATUS: string
37161847f8eSopenharmony_ci
37261847f8eSopenharmony_ci    /**
37361847f8eSopenharmony_ci     * Specifies whether developer options are enabled.
37461847f8eSopenharmony_ci     *
37561847f8eSopenharmony_ci     * <p>If the value is {@code true}, developer options are enabled.
37661847f8eSopenharmony_ci     * If the value is {@code false}, developer options are disabled.
37761847f8eSopenharmony_ci     *
37861847f8eSopenharmony_ci     * @constant
37961847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
38061847f8eSopenharmony_ci     * @since 7
38161847f8eSopenharmony_ci     */
38261847f8eSopenharmony_ci    const DEVELOPMENT_SETTINGS_STATUS: string
38361847f8eSopenharmony_ci
38461847f8eSopenharmony_ci    /**
38561847f8eSopenharmony_ci     * Indicates the device name.
38661847f8eSopenharmony_ci     *
38761847f8eSopenharmony_ci     * @constant
38861847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
38961847f8eSopenharmony_ci     * @since 7
39061847f8eSopenharmony_ci     */
39161847f8eSopenharmony_ci    const DEVICE_NAME: string
39261847f8eSopenharmony_ci
39361847f8eSopenharmony_ci    /**
39461847f8eSopenharmony_ci     * Specifies whether USB mass storage is enabled.
39561847f8eSopenharmony_ci     *
39661847f8eSopenharmony_ci     * <p>If the value is {@code true}, USB mass storage is enabled.
39761847f8eSopenharmony_ci     * If the value is {@code false}, USB mass storage is disabled.
39861847f8eSopenharmony_ci     *
39961847f8eSopenharmony_ci     * @constant
40061847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
40161847f8eSopenharmony_ci     * @since 7
40261847f8eSopenharmony_ci     */
40361847f8eSopenharmony_ci    const USB_STORAGE_STATUS: string
40461847f8eSopenharmony_ci
40561847f8eSopenharmony_ci    /**
40661847f8eSopenharmony_ci     * Specifies whether the device waits for the debugger when starting an application to debug.
40761847f8eSopenharmony_ci     *
40861847f8eSopenharmony_ci     * <p>If the value is {@code 1}, the device waits for the debugger.
40961847f8eSopenharmony_ci     * If the value is {@code 0}, the system does not wait for the debugger, and so the application runs normally.
41061847f8eSopenharmony_ci     *
41161847f8eSopenharmony_ci     * @constant
41261847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
41361847f8eSopenharmony_ci     * @since 7
41461847f8eSopenharmony_ci     */
41561847f8eSopenharmony_ci    const DEBUGGER_WAITING: string
41661847f8eSopenharmony_ci
41761847f8eSopenharmony_ci    /**
41861847f8eSopenharmony_ci     * Indicates the bundle name of the application to debug.
41961847f8eSopenharmony_ci     *
42061847f8eSopenharmony_ci     * @constant
42161847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
42261847f8eSopenharmony_ci     * @since 7
42361847f8eSopenharmony_ci     */
42461847f8eSopenharmony_ci    const DEBUG_APP_PACKAGE: string
42561847f8eSopenharmony_ci
42661847f8eSopenharmony_ci    /**
42761847f8eSopenharmony_ci     * Specifies whether any accessibility feature is enabled.
42861847f8eSopenharmony_ci     *
42961847f8eSopenharmony_ci     * <p>If the value is {@code 1}, the accessibility feature is enabled. If the value is {@code 0}, the
43061847f8eSopenharmony_ci     * accessibility feature is disabled.
43161847f8eSopenharmony_ci     *
43261847f8eSopenharmony_ci     * @constant
43361847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
43461847f8eSopenharmony_ci     * @since 7
43561847f8eSopenharmony_ci     */
43661847f8eSopenharmony_ci    const ACCESSIBILITY_STATUS: string
43761847f8eSopenharmony_ci
43861847f8eSopenharmony_ci    /**
43961847f8eSopenharmony_ci     * Indicates the list of accessibility features that have been activated.
44061847f8eSopenharmony_ci     *
44161847f8eSopenharmony_ci     * @constant
44261847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
44361847f8eSopenharmony_ci     * @since 7
44461847f8eSopenharmony_ci     */
44561847f8eSopenharmony_ci    const ACTIVATED_ACCESSIBILITY_SERVICES: string
44661847f8eSopenharmony_ci
44761847f8eSopenharmony_ci    /**
44861847f8eSopenharmony_ci     * Indicates the default geographical location that can be used by the browser. Multiple geographical locations
44961847f8eSopenharmony_ci     * are separated by spaces.
45061847f8eSopenharmony_ci     *
45161847f8eSopenharmony_ci     * @constant
45261847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
45361847f8eSopenharmony_ci     * @since 7
45461847f8eSopenharmony_ci     */
45561847f8eSopenharmony_ci    const GEOLOCATION_ORIGINS_ALLOWED: string
45661847f8eSopenharmony_ci
45761847f8eSopenharmony_ci    /**
45861847f8eSopenharmony_ci     * Specifies whether an application should attempt to skip all introductory hints at the first startup. This is
45961847f8eSopenharmony_ci     * intended for temporary users or users who are familiar with the environment.
46061847f8eSopenharmony_ci     *
46161847f8eSopenharmony_ci     * <p>If the value is {@code 1}, the application attempts to skip all introductory hints at the first startup.
46261847f8eSopenharmony_ci     * If the value is {@code 0}, the application does not skip introductory hints at the first startup.
46361847f8eSopenharmony_ci     *
46461847f8eSopenharmony_ci     * @constant
46561847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
46661847f8eSopenharmony_ci     * @since 7
46761847f8eSopenharmony_ci     */
46861847f8eSopenharmony_ci    const SKIP_USE_HINTS: string
46961847f8eSopenharmony_ci
47061847f8eSopenharmony_ci    /**
47161847f8eSopenharmony_ci     * Indicates whether touch exploration is enabled.
47261847f8eSopenharmony_ci     *
47361847f8eSopenharmony_ci     * <p>If the value is {@code 1}, touch exploration is enabled. If the value is {@code 0}, touch exploration is
47461847f8eSopenharmony_ci     * disabled.
47561847f8eSopenharmony_ci     *
47661847f8eSopenharmony_ci     * @constant
47761847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
47861847f8eSopenharmony_ci     * @since 7
47961847f8eSopenharmony_ci     */
48061847f8eSopenharmony_ci    const TOUCH_EXPLORATION_STATUS: string
48161847f8eSopenharmony_ci  }
48261847f8eSopenharmony_ci
48361847f8eSopenharmony_ci  /**
48461847f8eSopenharmony_ci   * Provides methods for setting information about input methods, including automatic capitalization, automatic
48561847f8eSopenharmony_ci   * punctuation, autocorrect, password presentation, input method engine, and input method subtypes.
48661847f8eSopenharmony_ci   *
48761847f8eSopenharmony_ci   * @namespace input
48861847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
48961847f8eSopenharmony_ci   * @since 7
49061847f8eSopenharmony_ci   */
49161847f8eSopenharmony_ci  namespace input {
49261847f8eSopenharmony_ci    /**
49361847f8eSopenharmony_ci     * Indicates the default input method and its ID.
49461847f8eSopenharmony_ci     *
49561847f8eSopenharmony_ci     * @constant
49661847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
49761847f8eSopenharmony_ci     * @since 7
49861847f8eSopenharmony_ci     */
49961847f8eSopenharmony_ci    const DEFAULT_INPUT_METHOD: string
50061847f8eSopenharmony_ci
50161847f8eSopenharmony_ci    /**
50261847f8eSopenharmony_ci     * Indicates the default input method keyboard type and its ID.
50361847f8eSopenharmony_ci     *
50461847f8eSopenharmony_ci     * @constant
50561847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
50661847f8eSopenharmony_ci     * @since 7
50761847f8eSopenharmony_ci     */
50861847f8eSopenharmony_ci    const ACTIVATED_INPUT_METHOD_SUB_MODE: string
50961847f8eSopenharmony_ci
51061847f8eSopenharmony_ci    /**
51161847f8eSopenharmony_ci     * Indicates the list of input methods that have been activated.
51261847f8eSopenharmony_ci     *
51361847f8eSopenharmony_ci     * <p>The list is a string that contains the IDs of activated input methods. The IDs are separated by colons
51461847f8eSopenharmony_ci     * (:), and keyboardTypes of an input method are separated by semicolons (;). An example format is
51561847f8eSopenharmony_ci     * {@code ima0:keyboardType0;keyboardType1;ima1:ima2:keyboardTypes0}. The type of <b>imaID</b> is ElementName,
51661847f8eSopenharmony_ci     * and the type of <b>keyboard</b> is int.
51761847f8eSopenharmony_ci     *
51861847f8eSopenharmony_ci     * @constant
51961847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
52061847f8eSopenharmony_ci     * @since 7
52161847f8eSopenharmony_ci     */
52261847f8eSopenharmony_ci    const ACTIVATED_INPUT_METHODS: string
52361847f8eSopenharmony_ci
52461847f8eSopenharmony_ci    /**
52561847f8eSopenharmony_ci     * Specifies whether the input method selector is visible.
52661847f8eSopenharmony_ci     *
52761847f8eSopenharmony_ci     * <p>If the value is {@code 1}, the input method selector is visible. If the value is {@code 0}, the input
52861847f8eSopenharmony_ci     * method selector is invisible.
52961847f8eSopenharmony_ci     *
53061847f8eSopenharmony_ci     * @constant
53161847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
53261847f8eSopenharmony_ci     * @since 7
53361847f8eSopenharmony_ci     */
53461847f8eSopenharmony_ci    const SELECTOR_VISIBILITY_FOR_INPUT_METHOD: string
53561847f8eSopenharmony_ci
53661847f8eSopenharmony_ci    /**
53761847f8eSopenharmony_ci     * Specifies whether automatic capitalization is enabled for the text editor.
53861847f8eSopenharmony_ci     *
53961847f8eSopenharmony_ci     * <p>If the value is {@code 0}, automatic capitalization is disabled. If the value {@code 1}, automatic
54061847f8eSopenharmony_ci     * capitalization is enabled.
54161847f8eSopenharmony_ci     *
54261847f8eSopenharmony_ci     * @constant
54361847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
54461847f8eSopenharmony_ci     * @since 7
54561847f8eSopenharmony_ci     */
54661847f8eSopenharmony_ci    const AUTO_CAPS_TEXT_INPUT: string
54761847f8eSopenharmony_ci
54861847f8eSopenharmony_ci    /**
54961847f8eSopenharmony_ci     * Specifies whether automatic punctuation is enabled for the text editor. Automatic punctuation enables the
55061847f8eSopenharmony_ci     * text editor to convert two spaces into a period (.) and a space.
55161847f8eSopenharmony_ci     *
55261847f8eSopenharmony_ci     * <p>If the value is {@code 0}, automatic punctuation is disabled. If the value {@code 1}, automatic
55361847f8eSopenharmony_ci     * punctuation is enabled.
55461847f8eSopenharmony_ci     *
55561847f8eSopenharmony_ci     * @constant
55661847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
55761847f8eSopenharmony_ci     * @since 7
55861847f8eSopenharmony_ci     */
55961847f8eSopenharmony_ci    const AUTO_PUNCTUATE_TEXT_INPUT: string
56061847f8eSopenharmony_ci
56161847f8eSopenharmony_ci    /**
56261847f8eSopenharmony_ci     * Specifies whether autocorrect is enabled for the text editor. Autocorrect enables the text editor to correct
56361847f8eSopenharmony_ci     * typos.
56461847f8eSopenharmony_ci     *
56561847f8eSopenharmony_ci     * <p>If the value is {@code 0}, autocorrect is disabled. If the value {@code 1}, autocorrect is enabled.
56661847f8eSopenharmony_ci     *
56761847f8eSopenharmony_ci     * @constant
56861847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
56961847f8eSopenharmony_ci     * @since 7
57061847f8eSopenharmony_ci     */
57161847f8eSopenharmony_ci    const AUTO_REPLACE_TEXT_INPUT: string
57261847f8eSopenharmony_ci
57361847f8eSopenharmony_ci    /**
57461847f8eSopenharmony_ci     * Specifies whether password presentation is enabled in the text editor. Password presentation enables the
57561847f8eSopenharmony_ci     * text editor to show password characters when the user types them.
57661847f8eSopenharmony_ci     *
57761847f8eSopenharmony_ci     * <p>If the value is {@code 0}, password presentation is disabled. If the value {@code 1}, password
57861847f8eSopenharmony_ci     * presentation is enabled.
57961847f8eSopenharmony_ci     *
58061847f8eSopenharmony_ci     * @constant
58161847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
58261847f8eSopenharmony_ci     * @since 7
58361847f8eSopenharmony_ci     */
58461847f8eSopenharmony_ci    const SHOW_PASSWORD_TEXT_INPUT: string
58561847f8eSopenharmony_ci  }
58661847f8eSopenharmony_ci
58761847f8eSopenharmony_ci  /**
58861847f8eSopenharmony_ci   * Provides methods for setting network information, including the data roaming status, HTTP proxy configurations,
58961847f8eSopenharmony_ci   * and preferred networks.
59061847f8eSopenharmony_ci   *
59161847f8eSopenharmony_ci   * @namespace network
59261847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
59361847f8eSopenharmony_ci   * @since 7
59461847f8eSopenharmony_ci   */
59561847f8eSopenharmony_ci  namespace network {
59661847f8eSopenharmony_ci    /**
59761847f8eSopenharmony_ci     * Specifies whether data roaming is enabled.
59861847f8eSopenharmony_ci     *
59961847f8eSopenharmony_ci     * <p>If the value is {@code true}, data roaming is enabled. If the value is {@code false},
60061847f8eSopenharmony_ci     * data roaming is disabled.
60161847f8eSopenharmony_ci     *
60261847f8eSopenharmony_ci     * @constant
60361847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
60461847f8eSopenharmony_ci     * @since 7
60561847f8eSopenharmony_ci     */
60661847f8eSopenharmony_ci    const DATA_ROAMING_STATUS: string
60761847f8eSopenharmony_ci
60861847f8eSopenharmony_ci    /**
60961847f8eSopenharmony_ci     * Indicates the host name and port number of the global HTTP proxy.
61061847f8eSopenharmony_ci     * The host name and port number are separated by a colon (:).
61161847f8eSopenharmony_ci     *
61261847f8eSopenharmony_ci     * @constant
61361847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
61461847f8eSopenharmony_ci     * @since 7
61561847f8eSopenharmony_ci     */
61661847f8eSopenharmony_ci    const HTTP_PROXY_CFG: string
61761847f8eSopenharmony_ci
61861847f8eSopenharmony_ci    /**
61961847f8eSopenharmony_ci     * Indicates the user preferences of the network to use.
62061847f8eSopenharmony_ci     *
62161847f8eSopenharmony_ci     * @constant
62261847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
62361847f8eSopenharmony_ci     * @since 7
62461847f8eSopenharmony_ci     */
62561847f8eSopenharmony_ci    const NETWORK_PREFERENCE_USAGE: string
62661847f8eSopenharmony_ci  }
62761847f8eSopenharmony_ci
62861847f8eSopenharmony_ci  /**
62961847f8eSopenharmony_ci   * Provides methods for setting the answering mode of incoming and outgoing calls.
63061847f8eSopenharmony_ci   *
63161847f8eSopenharmony_ci   * @namespace phone
63261847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
63361847f8eSopenharmony_ci   * @since 7
63461847f8eSopenharmony_ci   */
63561847f8eSopenharmony_ci  namespace phone {
63661847f8eSopenharmony_ci    /**
63761847f8eSopenharmony_ci     * Specifies whether real-time text (RTT) calling is enabled. If enabled, incoming and outgoing calls are
63861847f8eSopenharmony_ci     * answered as RTT calls when supported by the device and carrier. If the value is {@code 1}, RTT calling is
63961847f8eSopenharmony_ci     * enabled. If the value is {@code 0}, RTT calling is disabled.
64061847f8eSopenharmony_ci     *
64161847f8eSopenharmony_ci     * @constant
64261847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
64361847f8eSopenharmony_ci     * @since 7
64461847f8eSopenharmony_ci     */
64561847f8eSopenharmony_ci    const RTT_CALLING_STATUS: string
64661847f8eSopenharmony_ci  }
64761847f8eSopenharmony_ci
64861847f8eSopenharmony_ci  /**
64961847f8eSopenharmony_ci   * Provides methods for setting the sound effect, including the ringtone, dial tone, alarm sound, notification tone,
65061847f8eSopenharmony_ci   * and haptic feedback.
65161847f8eSopenharmony_ci   *
65261847f8eSopenharmony_ci   * @namespace sound
65361847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
65461847f8eSopenharmony_ci   * @since 7
65561847f8eSopenharmony_ci   */
65661847f8eSopenharmony_ci  namespace sound {
65761847f8eSopenharmony_ci    /**
65861847f8eSopenharmony_ci     * Indicates whether the device vibrates when it is ringing for an incoming call.
65961847f8eSopenharmony_ci     *
66061847f8eSopenharmony_ci     * <p>This constant will be used by Phone and Settings applications. The value is of the boolean type.
66161847f8eSopenharmony_ci     * This constant affects only the scenario where the device rings for an incoming call. It does not affect
66261847f8eSopenharmony_ci     * any other application or scenario.
66361847f8eSopenharmony_ci     *
66461847f8eSopenharmony_ci     * @constant
66561847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
66661847f8eSopenharmony_ci     * @since 7
66761847f8eSopenharmony_ci     */
66861847f8eSopenharmony_ci    const VIBRATE_WHILE_RINGING: string
66961847f8eSopenharmony_ci
67061847f8eSopenharmony_ci    /**
67161847f8eSopenharmony_ci     * Indicates the storage area of the system default alarm.
67261847f8eSopenharmony_ci     *
67361847f8eSopenharmony_ci     * <p>You can obtain the URI of the system default alarm.
67461847f8eSopenharmony_ci     *
67561847f8eSopenharmony_ci     * @constant
67661847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
67761847f8eSopenharmony_ci     * @since 7
67861847f8eSopenharmony_ci     */
67961847f8eSopenharmony_ci    const DEFAULT_ALARM_ALERT: string
68061847f8eSopenharmony_ci
68161847f8eSopenharmony_ci    /**
68261847f8eSopenharmony_ci     * Indicates the type of the dual-tone multifrequency (DTMF) tone played when dialing.
68361847f8eSopenharmony_ci     *
68461847f8eSopenharmony_ci     * <p>The value {@code 0} indicates the normal short sound effect, and {@code 1} indicates the long sound
68561847f8eSopenharmony_ci     * effect.
68661847f8eSopenharmony_ci     *
68761847f8eSopenharmony_ci     * @constant
68861847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
68961847f8eSopenharmony_ci     * @since 7
69061847f8eSopenharmony_ci     */
69161847f8eSopenharmony_ci    const DTMF_TONE_TYPE_WHILE_DIALING: string
69261847f8eSopenharmony_ci
69361847f8eSopenharmony_ci    /**
69461847f8eSopenharmony_ci     * Specifies whether the DTMF tone is played when dialing.
69561847f8eSopenharmony_ci     *
69661847f8eSopenharmony_ci     * <p>If the value is {@code 1}, the DTMF tone is played. If the value is {@code 0}, the DTMF tone is not
69761847f8eSopenharmony_ci     * played.
69861847f8eSopenharmony_ci     *
69961847f8eSopenharmony_ci     * @constant
70061847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
70161847f8eSopenharmony_ci     * @since 7
70261847f8eSopenharmony_ci     */
70361847f8eSopenharmony_ci    const DTMF_TONE_WHILE_DIALING: string
70461847f8eSopenharmony_ci
70561847f8eSopenharmony_ci    /**
70661847f8eSopenharmony_ci     * Specifies which audio streams are affected by changes on the ringing mode and Do Not Disturb (DND) mode.
70761847f8eSopenharmony_ci     *
70861847f8eSopenharmony_ci     * <p>If you want a specific audio stream to be affected by changes of the ringing mode and DDN mode, set the
70961847f8eSopenharmony_ci     * corresponding bit to {@code 1}.
71061847f8eSopenharmony_ci     *
71161847f8eSopenharmony_ci     * @constant
71261847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
71361847f8eSopenharmony_ci     * @since 7
71461847f8eSopenharmony_ci     */
71561847f8eSopenharmony_ci    const AFFECTED_MODE_RINGER_STREAMS: string
71661847f8eSopenharmony_ci
71761847f8eSopenharmony_ci    /**
71861847f8eSopenharmony_ci     * Specifies which audio streams are affected by the mute mode.
71961847f8eSopenharmony_ci     *
72061847f8eSopenharmony_ci     * <p>If you want a specific audio stream to remain muted in mute mode, set the corresponding bit to {@code 1}.
72161847f8eSopenharmony_ci     *
72261847f8eSopenharmony_ci     * @constant
72361847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
72461847f8eSopenharmony_ci     * @since 7
72561847f8eSopenharmony_ci     */
72661847f8eSopenharmony_ci    const AFFECTED_MUTE_STREAMS: string
72761847f8eSopenharmony_ci
72861847f8eSopenharmony_ci    /**
72961847f8eSopenharmony_ci     * Indicates the storage area of the system default notification tone.
73061847f8eSopenharmony_ci     *
73161847f8eSopenharmony_ci     * <p>You can obtain the URI of the system default notification tone.
73261847f8eSopenharmony_ci     *
73361847f8eSopenharmony_ci     * @constant
73461847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
73561847f8eSopenharmony_ci     * @since 7
73661847f8eSopenharmony_ci     */
73761847f8eSopenharmony_ci    const DEFAULT_NOTIFICATION_SOUND: string
73861847f8eSopenharmony_ci
73961847f8eSopenharmony_ci    /**
74061847f8eSopenharmony_ci     * Indicates the storage area of the system default ringtone.
74161847f8eSopenharmony_ci     *
74261847f8eSopenharmony_ci     * <p>You can obtain the URI of the system default ringtone.
74361847f8eSopenharmony_ci     *
74461847f8eSopenharmony_ci     * @constant
74561847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
74661847f8eSopenharmony_ci     * @since 7
74761847f8eSopenharmony_ci     */
74861847f8eSopenharmony_ci    const DEFAULT_RINGTONE: string
74961847f8eSopenharmony_ci
75061847f8eSopenharmony_ci    /**
75161847f8eSopenharmony_ci     * Specifies whether the sound effects are enabled.
75261847f8eSopenharmony_ci     *
75361847f8eSopenharmony_ci     * <p>If the value is {@code 0}, the sound effects are disabled. If the value is {@code 1}, the sound effects
75461847f8eSopenharmony_ci     * are enabled.
75561847f8eSopenharmony_ci     *
75661847f8eSopenharmony_ci     * @constant
75761847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
75861847f8eSopenharmony_ci     * @since 7
75961847f8eSopenharmony_ci     */
76061847f8eSopenharmony_ci    const SOUND_EFFECTS_STATUS: string
76161847f8eSopenharmony_ci
76261847f8eSopenharmony_ci    /**
76361847f8eSopenharmony_ci     * Specifies whether the device vibrates for an event. This parameter is used inside the system.
76461847f8eSopenharmony_ci     *
76561847f8eSopenharmony_ci     * <p>If the value is {@code 1}, the device vibrates for an event. If the value is {@code 0}, the device does
76661847f8eSopenharmony_ci     * not vibrate for an event.
76761847f8eSopenharmony_ci     *
76861847f8eSopenharmony_ci     * @constant
76961847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
77061847f8eSopenharmony_ci     * @since 7
77161847f8eSopenharmony_ci     */
77261847f8eSopenharmony_ci    const VIBRATE_STATUS: string
77361847f8eSopenharmony_ci
77461847f8eSopenharmony_ci    /**
77561847f8eSopenharmony_ci     * Indicates whether the device enables haptic feedback.
77661847f8eSopenharmony_ci     *
77761847f8eSopenharmony_ci     * <p>The value is of the boolean type.
77861847f8eSopenharmony_ci     *
77961847f8eSopenharmony_ci     * @constant
78061847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
78161847f8eSopenharmony_ci     * @since 7
78261847f8eSopenharmony_ci     */
78361847f8eSopenharmony_ci    const HAPTIC_FEEDBACK_STATUS: string
78461847f8eSopenharmony_ci  }
78561847f8eSopenharmony_ci
78661847f8eSopenharmony_ci  /**
78761847f8eSopenharmony_ci   * Provides methods for setting information about text-to-speech (TTS) conversion, including the pitch, speech rate,
78861847f8eSopenharmony_ci   * engine, and plug-ins.
78961847f8eSopenharmony_ci   *
79061847f8eSopenharmony_ci   * @namespace TTS
79161847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
79261847f8eSopenharmony_ci   * @since 7
79361847f8eSopenharmony_ci   */
79461847f8eSopenharmony_ci  namespace TTS {
79561847f8eSopenharmony_ci    /**
79661847f8eSopenharmony_ci     * Indicates the default pitch of the text-to-speech (TTS) engine.
79761847f8eSopenharmony_ci     *
79861847f8eSopenharmony_ci     * <p>100 = 1x. If the value is set to {@code 200}, the frequency is twice the normal sound frequency.
79961847f8eSopenharmony_ci     *
80061847f8eSopenharmony_ci     * @constant
80161847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
80261847f8eSopenharmony_ci     * @since 7
80361847f8eSopenharmony_ci     */
80461847f8eSopenharmony_ci    const DEFAULT_TTS_PITCH: string
80561847f8eSopenharmony_ci
80661847f8eSopenharmony_ci    /**
80761847f8eSopenharmony_ci     * Indicates the default speech rate of the TTS engine. 100 = 1x.
80861847f8eSopenharmony_ci     *
80961847f8eSopenharmony_ci     * @constant
81061847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
81161847f8eSopenharmony_ci     * @since 7
81261847f8eSopenharmony_ci     */
81361847f8eSopenharmony_ci    const DEFAULT_TTS_RATE: string
81461847f8eSopenharmony_ci
81561847f8eSopenharmony_ci    /**
81661847f8eSopenharmony_ci     * Indicates the default TTS engine.
81761847f8eSopenharmony_ci     *
81861847f8eSopenharmony_ci     * @constant
81961847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
82061847f8eSopenharmony_ci     * @since 7
82161847f8eSopenharmony_ci     */
82261847f8eSopenharmony_ci    const DEFAULT_TTS_SYNTH: string
82361847f8eSopenharmony_ci
82461847f8eSopenharmony_ci    /**
82561847f8eSopenharmony_ci     * Indicates the list of activated plug-in packages used for TTS. Multiple plug-in packages are separated by
82661847f8eSopenharmony_ci     * spaces.
82761847f8eSopenharmony_ci     *
82861847f8eSopenharmony_ci     * @constant
82961847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
83061847f8eSopenharmony_ci     * @since 7
83161847f8eSopenharmony_ci     */
83261847f8eSopenharmony_ci    const ENABLED_TTS_PLUGINS: string
83361847f8eSopenharmony_ci  }
83461847f8eSopenharmony_ci
83561847f8eSopenharmony_ci  /**
83661847f8eSopenharmony_ci   * Provides methods for setting radio network information, including information about Bluetooth, Wi-Fi, Near Field
83761847f8eSopenharmony_ci   * Communication (NFC), and the airplane mode.
83861847f8eSopenharmony_ci   *
83961847f8eSopenharmony_ci   * @namespace wireless
84061847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
84161847f8eSopenharmony_ci   * @since 7
84261847f8eSopenharmony_ci   */
84361847f8eSopenharmony_ci  namespace wireless {
84461847f8eSopenharmony_ci    /**
84561847f8eSopenharmony_ci     * Specifies whether the device can be discovered or connected by other devices through Bluetooth.
84661847f8eSopenharmony_ci     *
84761847f8eSopenharmony_ci     * If the value is {@code 0}, the device cannot be connected or discovered. If the value is {@code 1}, the
84861847f8eSopenharmony_ci     * device can be connected but cannot be discovered. If the value is {@code 2}, the device can be connected
84961847f8eSopenharmony_ci     * and discovered.
85061847f8eSopenharmony_ci     *
85161847f8eSopenharmony_ci     * @constant
85261847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
85361847f8eSopenharmony_ci     * @since 7
85461847f8eSopenharmony_ci     */
85561847f8eSopenharmony_ci    const BLUETOOTH_DISCOVER_ABILITY_STATUS: string
85661847f8eSopenharmony_ci
85761847f8eSopenharmony_ci    /**
85861847f8eSopenharmony_ci     * Indicates the duration (in seconds) that the device can be discovered through Bluetooth.
85961847f8eSopenharmony_ci     *
86061847f8eSopenharmony_ci     * <p>After the duration expires, the device cannot be discovered through Bluetooth.
86161847f8eSopenharmony_ci     *
86261847f8eSopenharmony_ci     * @constant
86361847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
86461847f8eSopenharmony_ci     * @since 7
86561847f8eSopenharmony_ci     */
86661847f8eSopenharmony_ci    const BLUETOOTH_DISCOVER_TIMEOUT: string
86761847f8eSopenharmony_ci
86861847f8eSopenharmony_ci    /**
86961847f8eSopenharmony_ci     * Indicates the list of radio signals to be disabled when airplane mode is enabled. Multiple radio
87061847f8eSopenharmony_ci     * signals are separated by commas (,).
87161847f8eSopenharmony_ci     *
87261847f8eSopenharmony_ci     * <ul>
87361847f8eSopenharmony_ci     * <li>{@code BLUETOOTH_RADIO} - Bluetooth is disabled in airplane mode.
87461847f8eSopenharmony_ci     * <li>{@code CELL_RADIO} - Cellular radio is disabled in airplane mode.
87561847f8eSopenharmony_ci     * <li>{@code NFC_RADIO} - NFC is disabled in airplane mode.
87661847f8eSopenharmony_ci     * <li>{@code WIFI_RADIO} - Wi-Fi is disabled in airplane mode.
87761847f8eSopenharmony_ci     * </ul>
87861847f8eSopenharmony_ci     *
87961847f8eSopenharmony_ci     * @constant
88061847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
88161847f8eSopenharmony_ci     * @since 7
88261847f8eSopenharmony_ci     */
88361847f8eSopenharmony_ci    const AIRPLANE_MODE_RADIOS: string
88461847f8eSopenharmony_ci
88561847f8eSopenharmony_ci    /**
88661847f8eSopenharmony_ci     * Specifies whether Bluetooth is enabled.
88761847f8eSopenharmony_ci     *
88861847f8eSopenharmony_ci     * <p>If the value is {@code true}, Bluetooth is enabled. If the value is {@code false}, Bluetooth is disabled.
88961847f8eSopenharmony_ci     *
89061847f8eSopenharmony_ci     * @constant
89161847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
89261847f8eSopenharmony_ci     * @since 7
89361847f8eSopenharmony_ci     */
89461847f8eSopenharmony_ci    const BLUETOOTH_STATUS: string
89561847f8eSopenharmony_ci
89661847f8eSopenharmony_ci    /**
89761847f8eSopenharmony_ci     * A constant of {@code AIRPLANE_MODE_RADIOS} to indicate that Bluetooth is disabled in airplane mode.
89861847f8eSopenharmony_ci     *
89961847f8eSopenharmony_ci     * @constant
90061847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
90161847f8eSopenharmony_ci     * @since 7
90261847f8eSopenharmony_ci     */
90361847f8eSopenharmony_ci    const BLUETOOTH_RADIO: string
90461847f8eSopenharmony_ci
90561847f8eSopenharmony_ci    /**
90661847f8eSopenharmony_ci     * A constant of {@code AIRPLANE_MODE_RADIOS} to indicate that cellular radio is disabled in airplane mode.
90761847f8eSopenharmony_ci     *
90861847f8eSopenharmony_ci     * @constant
90961847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
91061847f8eSopenharmony_ci     * @since 7
91161847f8eSopenharmony_ci     */
91261847f8eSopenharmony_ci    const CELL_RADIO: string
91361847f8eSopenharmony_ci
91461847f8eSopenharmony_ci    /**
91561847f8eSopenharmony_ci     * A constant of {@code AIRPLANE_MODE_RADIOS} to indicate that NFC is disabled in airplane mode.
91661847f8eSopenharmony_ci     *
91761847f8eSopenharmony_ci     * @constant
91861847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
91961847f8eSopenharmony_ci     * @since 7
92061847f8eSopenharmony_ci     */
92161847f8eSopenharmony_ci    const NFC_RADIO: string
92261847f8eSopenharmony_ci
92361847f8eSopenharmony_ci    /**
92461847f8eSopenharmony_ci     * A constant of {@code AIRPLANE_MODE_RADIOS} to indicate that Wi-Fi is disabled in airplane mode.
92561847f8eSopenharmony_ci     *
92661847f8eSopenharmony_ci     * @constant
92761847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
92861847f8eSopenharmony_ci     * @since 7
92961847f8eSopenharmony_ci     */
93061847f8eSopenharmony_ci    const WIFI_RADIO: string
93161847f8eSopenharmony_ci
93261847f8eSopenharmony_ci    /**
93361847f8eSopenharmony_ci     * Specifies whether the Wi-Fi configuration created by the application of the device owner should be
93461847f8eSopenharmony_ci     * locked down.
93561847f8eSopenharmony_ci     *
93661847f8eSopenharmony_ci     * <p>If the value is {@code true}, the Wi-Fi configuration should be locked down.
93761847f8eSopenharmony_ci     * If the value is {@code false}, the Wi-Fi configuration should not be locked down.
93861847f8eSopenharmony_ci     *
93961847f8eSopenharmony_ci     * @constant
94061847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
94161847f8eSopenharmony_ci     * @since 7
94261847f8eSopenharmony_ci     */
94361847f8eSopenharmony_ci    const OWNER_LOCKDOWN_WIFI_CFG: string
94461847f8eSopenharmony_ci
94561847f8eSopenharmony_ci    /**
94661847f8eSopenharmony_ci     * Indicates the maximum number of attempts to obtain an IP address from the DHCP server.
94761847f8eSopenharmony_ci     *
94861847f8eSopenharmony_ci     * @constant
94961847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
95061847f8eSopenharmony_ci     * @since 7
95161847f8eSopenharmony_ci     */
95261847f8eSopenharmony_ci    const WIFI_DHCP_MAX_RETRY_COUNT: string
95361847f8eSopenharmony_ci
95461847f8eSopenharmony_ci    /**
95561847f8eSopenharmony_ci     * Indicates the maximum duration to hold a wake lock when waiting for the mobile data connection to
95661847f8eSopenharmony_ci     * establish after the Wi-Fi connection is disconnected.
95761847f8eSopenharmony_ci     *
95861847f8eSopenharmony_ci     * @constant
95961847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
96061847f8eSopenharmony_ci     * @since 7
96161847f8eSopenharmony_ci     */
96261847f8eSopenharmony_ci    const WIFI_TO_MOBILE_DATA_AWAKE_TIMEOUT: string
96361847f8eSopenharmony_ci
96461847f8eSopenharmony_ci    /**
96561847f8eSopenharmony_ci     * Specifies whether Wi-Fi is enabled.
96661847f8eSopenharmony_ci     *
96761847f8eSopenharmony_ci     * <p>If the value is {@code true}, Wi-Fi is enabled. If the value is {@code false}, Wi-Fi is disabled.
96861847f8eSopenharmony_ci     *
96961847f8eSopenharmony_ci     * @constant
97061847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
97161847f8eSopenharmony_ci     * @since 7
97261847f8eSopenharmony_ci     */
97361847f8eSopenharmony_ci    const WIFI_STATUS: string
97461847f8eSopenharmony_ci
97561847f8eSopenharmony_ci    /**
97661847f8eSopenharmony_ci     * Specifies whether Wi-Fi watchdog is enabled.
97761847f8eSopenharmony_ci     *
97861847f8eSopenharmony_ci     * <p>If the value is {@code true}, Wi-Fi watchdog is enabled.
97961847f8eSopenharmony_ci     * If the value is {@code false}, Wi-Fi watchdog is disabled.
98061847f8eSopenharmony_ci     *
98161847f8eSopenharmony_ci     * @constant
98261847f8eSopenharmony_ci     * @syscap SystemCapability.Applications.Settings.Core
98361847f8eSopenharmony_ci     * @since 7
98461847f8eSopenharmony_ci     */
98561847f8eSopenharmony_ci    const WIFI_WATCHDOG_STATUS: string
98661847f8eSopenharmony_ci  }
98761847f8eSopenharmony_ci
98861847f8eSopenharmony_ci  /**
98961847f8eSopenharmony_ci   * Constructs a URI for a specific name-value pair for monitoring data of the ability that uses the Data
99061847f8eSopenharmony_ci   * template.
99161847f8eSopenharmony_ci   *
99261847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the setting to set.
99361847f8eSopenharmony_ci   * @param { AsyncCallback<object> } [callback] - The callback of getURI result.
99461847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
99561847f8eSopenharmony_ci   * @since 7
99661847f8eSopenharmony_ci   * @deprecated since 9
99761847f8eSopenharmony_ci   */
99861847f8eSopenharmony_ci  function getURI(name: string, callback: AsyncCallback<object>): void;
99961847f8eSopenharmony_ci
100061847f8eSopenharmony_ci  /**
100161847f8eSopenharmony_ci   * Constructs a URI for a specific name-value pair for monitoring data of the ability that uses the Data
100261847f8eSopenharmony_ci   * template.
100361847f8eSopenharmony_ci   *
100461847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the setting to set.
100561847f8eSopenharmony_ci   * @returns { Promise<object> } Returns the corresponding URI; returns {@code null} if the URI does not exist.
100661847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
100761847f8eSopenharmony_ci   * @since 7
100861847f8eSopenharmony_ci   * @deprecated since 9
100961847f8eSopenharmony_ci   */
101061847f8eSopenharmony_ci  function getURI(name: string): Promise<object>;
101161847f8eSopenharmony_ci
101261847f8eSopenharmony_ci  /**
101361847f8eSopenharmony_ci   * Obtains the value of a specified character string in the database.
101461847f8eSopenharmony_ci   *
101561847f8eSopenharmony_ci   * @param { DataAbilityHelper } dataAbilityHelper - Indicates the {@link ohos.aafwk.ability.DataAbilityHelper} used
101661847f8eSopenharmony_ci   * to access the database.
101761847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
101861847f8eSopenharmony_ci   * @param { AsyncCallback<object> } [callback] - The callback of getValue result.
101961847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
102061847f8eSopenharmony_ci   * @famodelonly
102161847f8eSopenharmony_ci   * @since 7
102261847f8eSopenharmony_ci   * @deprecated since 9
102361847f8eSopenharmony_ci   * @useinstead ohos.settings#getValue
102461847f8eSopenharmony_ci   */
102561847f8eSopenharmony_ci  function getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback<object>): void;
102661847f8eSopenharmony_ci
102761847f8eSopenharmony_ci  /**
102861847f8eSopenharmony_ci   * Obtains the value of a specified character string in the database.
102961847f8eSopenharmony_ci   *
103061847f8eSopenharmony_ci   * @param { DataAbilityHelper } dataAbilityHelper - Indicates the {@link ohos.aafwk.ability.DataAbilityHelper} used
103161847f8eSopenharmony_ci   * to access the database.
103261847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
103361847f8eSopenharmony_ci   * @returns { Promise<object> } Returns the value of the character string in the domain if any is found; returns {@code
103461847f8eSopenharmony_ci   * null} otherwise.
103561847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
103661847f8eSopenharmony_ci   * @famodelonly
103761847f8eSopenharmony_ci   * @since 7
103861847f8eSopenharmony_ci   * @deprecated since 9
103961847f8eSopenharmony_ci   * @useinstead ohos.settings#getValue
104061847f8eSopenharmony_ci   */
104161847f8eSopenharmony_ci  function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise<object>;
104261847f8eSopenharmony_ci
104361847f8eSopenharmony_ci  /**
104461847f8eSopenharmony_ci   * Get value from settingsdata
104561847f8eSopenharmony_ci   *
104661847f8eSopenharmony_ci   * @param { Context } context - Indicates the Context or dataAbilityHelper used to access
104761847f8eSopenharmony_ci   * the database.
104861847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
104961847f8eSopenharmony_ci   * @param { AsyncCallback<string> } [callback] - The callback of getValue result.
105061847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
105161847f8eSopenharmony_ci   * @StageModelOnly
105261847f8eSopenharmony_ci   * @since 10
105361847f8eSopenharmony_ci   */
105461847f8eSopenharmony_ci  function getValue(context: Context, name: string, callback: AsyncCallback<string>): void;
105561847f8eSopenharmony_ci
105661847f8eSopenharmony_ci  /**
105761847f8eSopenharmony_ci   * Get value from settingsdata
105861847f8eSopenharmony_ci   * @param { Context } context - Indicates the Context or dataAbilityHelper used to access
105961847f8eSopenharmony_ci   * the database.
106061847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
106161847f8eSopenharmony_ci   * @returns { Promise<string> } Returns the value of the character string in the domain if any is found; returns {@code
106261847f8eSopenharmony_ci   * null} otherwise.
106361847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
106461847f8eSopenharmony_ci   * @StageModelOnly
106561847f8eSopenharmony_ci   * @since 10
106661847f8eSopenharmony_ci   */
106761847f8eSopenharmony_ci  function getValue(context: Context, name: string): Promise<string>;
106861847f8eSopenharmony_ci
106961847f8eSopenharmony_ci  /**
107061847f8eSopenharmony_ci   * Get value from settingsdata
107161847f8eSopenharmony_ci   *
107261847f8eSopenharmony_ci   * @param { Context } context - Indicates the Context used to access the database.
107361847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
107461847f8eSopenharmony_ci   * @param { string } domainName - Indicates the name of the domain name to set.
107561847f8eSopenharmony_ci   * @returns { Promise<string> } Returns the value of the character string in the domain if any is found; returns {@code
107661847f8eSopenharmony_ci   * null} otherwise.
107761847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
107861847f8eSopenharmony_ci   * @StageModelOnly
107961847f8eSopenharmony_ci   * @since 11
108061847f8eSopenharmony_ci   */
108161847f8eSopenharmony_ci  function getValue(context: Context, name: string, domainName: string): Promise<string>;
108261847f8eSopenharmony_ci
108361847f8eSopenharmony_ci  /**
108461847f8eSopenharmony_ci   * Saves a character string name and its value to the database.
108561847f8eSopenharmony_ci   *
108661847f8eSopenharmony_ci   * @param { DataAbilityHelper } dataAbilityHelper - Indicates the {@link ohos.aafwk.ability.DataAbilityHelper} used
108761847f8eSopenharmony_ci   * to access the database.
108861847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
108961847f8eSopenharmony_ci   * @param { object } value - Indicates the value of the character string.
109061847f8eSopenharmony_ci   * @param { AsyncCallback<boolean> } [callback] - The callback of setValue result.
109161847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
109261847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
109361847f8eSopenharmony_ci   * @famodelonly
109461847f8eSopenharmony_ci   * @since 7
109561847f8eSopenharmony_ci   * @deprecated since 9
109661847f8eSopenharmony_ci   * @useinstead ohos.settings#setValue
109761847f8eSopenharmony_ci   */
109861847f8eSopenharmony_ci  function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object, callback: AsyncCallback<boolean>): void;
109961847f8eSopenharmony_ci
110061847f8eSopenharmony_ci  /**
110161847f8eSopenharmony_ci   * Saves a character string name and its value to the database.
110261847f8eSopenharmony_ci   *
110361847f8eSopenharmony_ci   * @param { DataAbilityHelper } dataAbilityHelper - Indicates the {@link ohos.aafwk.ability.DataAbilityHelper} used
110461847f8eSopenharmony_ci   * to access the database.
110561847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
110661847f8eSopenharmony_ci   * @param { object } value - Indicates the value of the character string.
110761847f8eSopenharmony_ci   * @returns { Promise<boolean> } Returns {@code true} if the operation is successful; returns {@code false} otherwise.
110861847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
110961847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
111061847f8eSopenharmony_ci   * @famodelonly
111161847f8eSopenharmony_ci   * @since 7
111261847f8eSopenharmony_ci   * @deprecated since 9
111361847f8eSopenharmony_ci   * @useinstead ohos.settings#setValue
111461847f8eSopenharmony_ci   */
111561847f8eSopenharmony_ci  function setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: object): Promise<boolean>;
111661847f8eSopenharmony_ci
111761847f8eSopenharmony_ci  /**
111861847f8eSopenharmony_ci   * Set settingsdata value.
111961847f8eSopenharmony_ci   *
112061847f8eSopenharmony_ci   * @permission ohos.permission.MANAGE_SECURE_SETTINGS
112161847f8eSopenharmony_ci   * @param { Context } context - Indicates Context or dataAbilityHelper instance.
112261847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
112361847f8eSopenharmony_ci   * @param { string } value - Indicates the value of the character string.
112461847f8eSopenharmony_ci   * @param { AsyncCallback<boolean> } [callback] - The callback of setValue result.
112561847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
112661847f8eSopenharmony_ci   * @StageModelOnly
112761847f8eSopenharmony_ci   * @since 10
112861847f8eSopenharmony_ci   */
112961847f8eSopenharmony_ci  function setValue(context: Context, name: string, value: string, callback: AsyncCallback<boolean>): void;
113061847f8eSopenharmony_ci
113161847f8eSopenharmony_ci  /**
113261847f8eSopenharmony_ci   * Set settingsdata value.
113361847f8eSopenharmony_ci   *
113461847f8eSopenharmony_ci   * @permission ohos.permission.MANAGE_SECURE_SETTINGS
113561847f8eSopenharmony_ci   * @param { Context } context - Indicates Context or dataAbilityHelper instance.
113661847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
113761847f8eSopenharmony_ci   * @param { string } value - Indicates the value of the character string.
113861847f8eSopenharmony_ci   * @returns { Promise<boolean> } Returns {@code true} if the operation is successful; returns {@code false} otherwise.
113961847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
114061847f8eSopenharmony_ci   * @StageModelOnly
114161847f8eSopenharmony_ci   * @since 10
114261847f8eSopenharmony_ci   */
114361847f8eSopenharmony_ci  function setValue(context: Context, name: string, value: string): Promise<boolean>;
114461847f8eSopenharmony_ci
114561847f8eSopenharmony_ci  /**
114661847f8eSopenharmony_ci   * Set settingsdata value.
114761847f8eSopenharmony_ci   *
114861847f8eSopenharmony_ci   * @permission ohos.permission.MANAGE_SECURE_SETTINGS
114961847f8eSopenharmony_ci   * @param { Context } context - Indicates Context instance.
115061847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
115161847f8eSopenharmony_ci   * @param { string } value - Indicates the value of the character string.
115261847f8eSopenharmony_ci   * @param { string } domainName - Indicates the name of the domain name to set.
115361847f8eSopenharmony_ci   * @returns { Promise<boolean> } Returns {@code true} if the operation is successful; returns {@code false} otherwise.
115461847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
115561847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
115661847f8eSopenharmony_ci   * @StageModelOnly
115761847f8eSopenharmony_ci   * @since 11
115861847f8eSopenharmony_ci   */
115961847f8eSopenharmony_ci  function setValue(context: Context, name: string, value: string, domainName: string): Promise<boolean>;
116061847f8eSopenharmony_ci
116161847f8eSopenharmony_ci  /**
116261847f8eSopenharmony_ci   * Enables or disables airplane mode.
116361847f8eSopenharmony_ci   *
116461847f8eSopenharmony_ci   * @param { boolean } enable - Specifies whether to enable airplane mode. The value {@code true} means to enable
116561847f8eSopenharmony_ci   * airplane mode, and {@code false} means to disable airplane mode.
116661847f8eSopenharmony_ci   * @param { AsyncCallback<void> } [callback] - The callback of enableAirplaneMode result.
116761847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
116861847f8eSopenharmony_ci   * @since 7
116961847f8eSopenharmony_ci   */
117061847f8eSopenharmony_ci  function enableAirplaneMode(enable: boolean, callback: AsyncCallback<void>): void;
117161847f8eSopenharmony_ci
117261847f8eSopenharmony_ci  /**
117361847f8eSopenharmony_ci   * Enables or disables airplane mode.
117461847f8eSopenharmony_ci   *
117561847f8eSopenharmony_ci   * @param { boolean } enable - Specifies whether to enable airplane mode. The value {@code true} means to enable
117661847f8eSopenharmony_ci   * airplane mode, and {@code false} means to disable airplane mode.
117761847f8eSopenharmony_ci   * @returns { Promise<void> } - Return Promise.
117861847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
117961847f8eSopenharmony_ci   * @since 7
118061847f8eSopenharmony_ci   */
118161847f8eSopenharmony_ci  function enableAirplaneMode(enable: boolean): Promise<void>;
118261847f8eSopenharmony_ci
118361847f8eSopenharmony_ci  /**
118461847f8eSopenharmony_ci   * Checks whether a specified application can show as a floating window.
118561847f8eSopenharmony_ci   *
118661847f8eSopenharmony_ci   * @param { AsyncCallback<boolean> } [callback] - The callback of canShowFloating result.
118761847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
118861847f8eSopenharmony_ci   * @since 7
118961847f8eSopenharmony_ci   */
119061847f8eSopenharmony_ci  function canShowFloating(callback: AsyncCallback<boolean>): void;
119161847f8eSopenharmony_ci
119261847f8eSopenharmony_ci  /**
119361847f8eSopenharmony_ci   * Checks whether a specified application can show as a floating window.
119461847f8eSopenharmony_ci   *
119561847f8eSopenharmony_ci   * @returns { Promise<boolean> } Returns {@code true} if the application can draw over other applications; returns
119661847f8eSopenharmony_ci   * {@code false} otherwise.
119761847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
119861847f8eSopenharmony_ci   * @since 7
119961847f8eSopenharmony_ci   */
120061847f8eSopenharmony_ci  function canShowFloating(): Promise<boolean>;
120161847f8eSopenharmony_ci
120261847f8eSopenharmony_ci  /**
120361847f8eSopenharmony_ci   * Get settingsdata uri (synchronous method)
120461847f8eSopenharmony_ci   *
120561847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the setting to set.
120661847f8eSopenharmony_ci   * @returns { string } Returns settingsdata uri.
120761847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
120861847f8eSopenharmony_ci   * @since 8
120961847f8eSopenharmony_ci   */
121061847f8eSopenharmony_ci  function getUriSync(name: string): string;
121161847f8eSopenharmony_ci
121261847f8eSopenharmony_ci  /**
121361847f8eSopenharmony_ci   * Get value from settingsdata(synchronous method)
121461847f8eSopenharmony_ci   *
121561847f8eSopenharmony_ci   * @param { DataAbilityHelper } dataAbilityHelper - Indicates dataAbilityHelper instance.
121661847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
121761847f8eSopenharmony_ci   * @param { string } defValue - Indicates the default value of the character string.
121861847f8eSopenharmony_ci   * @returns { string } Returns settingsdata value.
121961847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
122061847f8eSopenharmony_ci   * @famodelonly
122161847f8eSopenharmony_ci   * @since 8
122261847f8eSopenharmony_ci   * @deprecated since 9
122361847f8eSopenharmony_ci   * @useinstead ohos.settings#getValueSync
122461847f8eSopenharmony_ci   */
122561847f8eSopenharmony_ci  function getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string;
122661847f8eSopenharmony_ci
122761847f8eSopenharmony_ci  /**
122861847f8eSopenharmony_ci   * Get value from settingsdata(synchronous method)
122961847f8eSopenharmony_ci   *
123061847f8eSopenharmony_ci   * @param { Context } context - Indicates Context or dataAbilityHelper instance
123161847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
123261847f8eSopenharmony_ci   * @param { string } defValue - Indicates the default value of the character string.
123361847f8eSopenharmony_ci   * @returns { string } Returns settingsdata value.
123461847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
123561847f8eSopenharmony_ci   * @StageModelOnly
123661847f8eSopenharmony_ci   * @since 10
123761847f8eSopenharmony_ci   */
123861847f8eSopenharmony_ci  function getValueSync(context: Context, name: string, defValue: string): string;
123961847f8eSopenharmony_ci
124061847f8eSopenharmony_ci  /**
124161847f8eSopenharmony_ci   * Get value from settingsdata(synchronous method)
124261847f8eSopenharmony_ci   *
124361847f8eSopenharmony_ci   * @param { Context } context - Indicates Context instance
124461847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
124561847f8eSopenharmony_ci   * @param { string } defValue - Indicates the default value of the character string.
124661847f8eSopenharmony_ci   * @param { string } domainName - Indicates the name of the domain name to set.
124761847f8eSopenharmony_ci   * @returns { string } Returns settingsdata value.
124861847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
124961847f8eSopenharmony_ci   * @StageModelOnly
125061847f8eSopenharmony_ci   * @since 11
125161847f8eSopenharmony_ci   */
125261847f8eSopenharmony_ci  function getValueSync(context: Context, name: string, defValue: string, domainName: string): string;
125361847f8eSopenharmony_ci
125461847f8eSopenharmony_ci  /**
125561847f8eSopenharmony_ci   * Set settingsdata value(synchronous method)
125661847f8eSopenharmony_ci   *
125761847f8eSopenharmony_ci   * @permission ohos.permission.MANAGE_SECURE_SETTINGS
125861847f8eSopenharmony_ci   * @param { DataAbilityHelper } dataAbilityHelper Indicates dataAbilityHelper instance.
125961847f8eSopenharmony_ci   * @param { string } name Indicates the name of the character string.
126061847f8eSopenharmony_ci   * @param { string } value Indicates the value of the character string.
126161847f8eSopenharmony_ci   * @returns { boolean } Returns {@code true} if the operation is successful; returns {@code false} otherwise.
126261847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
126361847f8eSopenharmony_ci   * @famodelonly
126461847f8eSopenharmony_ci   * @since 8
126561847f8eSopenharmony_ci   * @deprecated since 9
126661847f8eSopenharmony_ci   * @useinstead ohos.settings#setValueSync
126761847f8eSopenharmony_ci   */
126861847f8eSopenharmony_ci  function setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean;
126961847f8eSopenharmony_ci
127061847f8eSopenharmony_ci  /**
127161847f8eSopenharmony_ci   * Set settingsdata value(synchronous method)
127261847f8eSopenharmony_ci   *
127361847f8eSopenharmony_ci   * @permission ohos.permission.MANAGE_SECURE_SETTINGS
127461847f8eSopenharmony_ci   * @param { Context } context - Indicates Context or dataAbilityHelper instance.
127561847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
127661847f8eSopenharmony_ci   * @param { string } value - Indicates the value of the character string.
127761847f8eSopenharmony_ci   * @returns { boolean } Returns {@code true} if the operation is successful; returns {@code false} otherwise.
127861847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
127961847f8eSopenharmony_ci   * @StageModelOnly
128061847f8eSopenharmony_ci   * @since 10
128161847f8eSopenharmony_ci   */
128261847f8eSopenharmony_ci  function setValueSync(context: Context, name: string, value: string): boolean;
128361847f8eSopenharmony_ci
128461847f8eSopenharmony_ci  /**
128561847f8eSopenharmony_ci   * Set settingsdata value(synchronous method)
128661847f8eSopenharmony_ci   *
128761847f8eSopenharmony_ci   * @permission ohos.permission.MANAGE_SECURE_SETTINGS
128861847f8eSopenharmony_ci   * @param { Context } context - Indicates Context instance.
128961847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
129061847f8eSopenharmony_ci   * @param { string } value - Indicates the value of the character string.
129161847f8eSopenharmony_ci   * @param { string } domainName - Indicates the name of the domain name to set.
129261847f8eSopenharmony_ci   * @returns { boolean } Returns {@code true} if the operation is successful; returns {@code false} otherwise.
129361847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission denied.
129461847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
129561847f8eSopenharmony_ci   * @StageModelOnly
129661847f8eSopenharmony_ci   * @since 11
129761847f8eSopenharmony_ci   */
129861847f8eSopenharmony_ci  function setValueSync(context: Context, name: string, value: string, domainName: string): boolean;
129961847f8eSopenharmony_ci
130061847f8eSopenharmony_ci  /**
130161847f8eSopenharmony_ci   * Monitor registration key(synchronous method)
130261847f8eSopenharmony_ci   *
130361847f8eSopenharmony_ci   * @param { Context } context - Indicates Context instance.
130461847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
130561847f8eSopenharmony_ci   * @param { string } domainName - Indicates the name of the domain name to set.
130661847f8eSopenharmony_ci   * @param { AsyncCallback<void> } observer - callback when monitored key value is changed.
130761847f8eSopenharmony_ci   * @returns { boolean } Returns {@code true} if the operation is successful; returns {@code false} otherwise.
130861847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
130961847f8eSopenharmony_ci   * @StageModelOnly
131061847f8eSopenharmony_ci   * @since 11
131161847f8eSopenharmony_ci   */
131261847f8eSopenharmony_ci  function registerKeyObserver(context: Context, name: string, domainName: string, observer: AsyncCallback<void>): boolean;
131361847f8eSopenharmony_ci
131461847f8eSopenharmony_ci  /**
131561847f8eSopenharmony_ci   * Monitor unregister key(synchronous method)
131661847f8eSopenharmony_ci   *
131761847f8eSopenharmony_ci   * @param { Context } context - Indicates Context instance.
131861847f8eSopenharmony_ci   * @param { string } name - Indicates the name of the character string.
131961847f8eSopenharmony_ci   * @param { string } domainName - Indicates the name of the domain name to set.
132061847f8eSopenharmony_ci   * @returns { boolean } Returns {@code true} if the operation is successful; returns {@code false} otherwise.
132161847f8eSopenharmony_ci   * @syscap SystemCapability.Applications.Settings.Core
132261847f8eSopenharmony_ci   * @StageModelOnly
132361847f8eSopenharmony_ci   * @since 11
132461847f8eSopenharmony_ci   */
132561847f8eSopenharmony_ci  function unregisterKeyObserver(context: Context, name: string, domainName: string): boolean;
132661847f8eSopenharmony_ci}
132761847f8eSopenharmony_ci
132861847f8eSopenharmony_ciexport default settings;