2022-10-18 11:30:11 +00:00
|
|
|
/*
|
2023-05-06 06:59:50 +00:00
|
|
|
* Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
2022-10-18 11:30:11 +00:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"),
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2023-12-11 09:08:03 +00:00
|
|
|
/**
|
|
|
|
* @file
|
2024-01-08 07:25:39 +00:00
|
|
|
* @kit AbilityKit
|
2023-12-11 09:08:03 +00:00
|
|
|
*/
|
|
|
|
|
2022-10-18 11:30:11 +00:00
|
|
|
/**
|
|
|
|
* The definition of ConfigurationConstant.
|
2023-05-06 06:59:50 +00:00
|
|
|
*
|
2022-10-18 11:30:11 +00:00
|
|
|
* @namespace ConfigurationConstant
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* The definition of ConfigurationConstant.
|
|
|
|
*
|
|
|
|
* @namespace ConfigurationConstant
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2024-04-12 06:53:53 +00:00
|
|
|
/**
|
|
|
|
* The definition of ConfigurationConstant.
|
|
|
|
*
|
|
|
|
* @namespace ConfigurationConstant
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @atomicservice
|
|
|
|
* @since 12
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
declare namespace ConfigurationConstant {
|
|
|
|
/**
|
2023-05-18 08:22:12 +00:00
|
|
|
* Color mode
|
2023-05-06 06:59:50 +00:00
|
|
|
*
|
2023-04-21 09:47:24 +00:00
|
|
|
* @enum { number }
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-05-17 11:09:22 +00:00
|
|
|
/**
|
2023-05-26 02:24:08 +00:00
|
|
|
* Color mode
|
|
|
|
*
|
2023-05-17 11:09:22 +00:00
|
|
|
* @enum { number }
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @since 10
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* Color mode
|
|
|
|
*
|
|
|
|
* @enum { number }
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
export enum ColorMode {
|
2023-05-18 01:11:57 +00:00
|
|
|
/**
|
|
|
|
* The color mode is not set.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-05-26 02:24:08 +00:00
|
|
|
/**
|
|
|
|
* The color mode is not set.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @since 10
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* The color mode is not set.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
COLOR_MODE_NOT_SET = -1,
|
2023-05-18 01:11:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Dark mode.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-05-26 02:24:08 +00:00
|
|
|
/**
|
|
|
|
* Dark mode.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @since 10
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* Dark mode.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
COLOR_MODE_DARK = 0,
|
2023-05-18 01:11:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Light mode.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-05-26 02:24:08 +00:00
|
|
|
/**
|
|
|
|
* Light mode.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @since 10
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* Light mode.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-05-06 06:59:50 +00:00
|
|
|
COLOR_MODE_LIGHT = 1
|
2023-04-21 09:47:24 +00:00
|
|
|
}
|
2022-10-18 11:30:11 +00:00
|
|
|
|
2023-04-21 09:47:24 +00:00
|
|
|
/**
|
2023-05-18 08:22:12 +00:00
|
|
|
* Screen direction.
|
2023-05-06 06:59:50 +00:00
|
|
|
*
|
2023-04-21 09:47:24 +00:00
|
|
|
* @enum { number }
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-05-17 11:09:22 +00:00
|
|
|
/**
|
2023-05-26 02:24:08 +00:00
|
|
|
* Screen direction.
|
|
|
|
*
|
2023-05-17 11:09:22 +00:00
|
|
|
* @enum { number }
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @since 10
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* Screen direction.
|
|
|
|
*
|
|
|
|
* @enum { number }
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
export enum Direction {
|
2023-05-18 01:11:57 +00:00
|
|
|
/**
|
|
|
|
* The direction is not set.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-05-26 02:24:08 +00:00
|
|
|
/**
|
|
|
|
* The direction is not set.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @since 10
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* The direction is not set.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
DIRECTION_NOT_SET = -1,
|
2023-05-18 01:11:57 +00:00
|
|
|
|
|
|
|
/**
|
2023-05-18 08:22:12 +00:00
|
|
|
* Vertical direction.
|
2023-05-18 01:11:57 +00:00
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-05-26 02:24:08 +00:00
|
|
|
/**
|
|
|
|
* Vertical direction.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @since 10
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* Vertical direction.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
DIRECTION_VERTICAL = 0,
|
2023-05-18 01:11:57 +00:00
|
|
|
|
|
|
|
/**
|
2023-05-18 08:22:12 +00:00
|
|
|
* Horizontal direction.
|
2023-05-18 01:11:57 +00:00
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-05-26 02:24:08 +00:00
|
|
|
/**
|
|
|
|
* Horizontal direction.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @since 10
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* Horizontal direction.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @crossplatform
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-05-06 06:59:50 +00:00
|
|
|
DIRECTION_HORIZONTAL = 1
|
2023-04-21 09:47:24 +00:00
|
|
|
}
|
2022-10-18 11:30:11 +00:00
|
|
|
|
2023-04-21 09:47:24 +00:00
|
|
|
/**
|
2023-05-18 08:22:12 +00:00
|
|
|
* Screen density
|
2023-05-06 06:59:50 +00:00
|
|
|
*
|
2023-04-21 09:47:24 +00:00
|
|
|
* @enum { number }
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* Screen density
|
|
|
|
*
|
|
|
|
* @enum { number }
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
export enum ScreenDensity {
|
2023-05-18 01:11:57 +00:00
|
|
|
/**
|
|
|
|
* The screen pixel density is not set.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* The screen pixel density is not set.
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
SCREEN_DENSITY_NOT_SET = 0,
|
2023-05-18 01:11:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Screen pixel density is 'SDPI'
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* Screen pixel density is 'SDPI'
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
SCREEN_DENSITY_SDPI = 120,
|
2023-05-18 01:11:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Screen pixel density is 'MDPI'
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* Screen pixel density is 'MDPI'
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
SCREEN_DENSITY_MDPI = 160,
|
2023-05-18 01:11:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Screen pixel density is 'LDPI'
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* Screen pixel density is 'LDPI'
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
SCREEN_DENSITY_LDPI = 240,
|
2023-05-18 01:11:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Screen pixel density is 'XLDPI'
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* Screen pixel density is 'XLDPI'
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
SCREEN_DENSITY_XLDPI = 320,
|
2023-05-18 01:11:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Screen pixel density is 'XXLDPI'
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* Screen pixel density is 'XXLDPI'
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-04-21 09:47:24 +00:00
|
|
|
SCREEN_DENSITY_XXLDPI = 480,
|
2023-05-18 01:11:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Screen pixel density is 'XXXLDPI'
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @since 9
|
|
|
|
*/
|
2023-11-11 10:44:20 +00:00
|
|
|
/**
|
|
|
|
* Screen pixel density is 'XXXLDPI'
|
|
|
|
*
|
|
|
|
* @syscap SystemCapability.Ability.AbilityBase
|
|
|
|
* @atomicservice
|
|
|
|
* @since 11
|
|
|
|
*/
|
2023-05-06 06:59:50 +00:00
|
|
|
SCREEN_DENSITY_XXXLDPI = 640
|
2023-04-21 09:47:24 +00:00
|
|
|
}
|
2022-10-18 11:30:11 +00:00
|
|
|
}
|
|
|
|
|
2023-05-06 06:59:50 +00:00
|
|
|
export default ConfigurationConstant;
|