1/* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"), 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * The definition of ConfigurationConstant. 18 * @namespace ConfigurationConstant 19 * @syscap SystemCapability.Ability.AbilityBase 20 * @since 9 21 */ 22 declare namespace ConfigurationConstant { 23 /** 24 * ColorMode 25 * @enum { number } 26 * @syscap SystemCapability.Ability.AbilityBase 27 * @since 9 28 */ 29 export enum ColorMode { 30 COLOR_MODE_NOT_SET = -1, 31 COLOR_MODE_DARK = 0, 32 COLOR_MODE_LIGHT = 1, 33 } 34 35 /** 36 * Direction 37 * @enum { number } 38 * @syscap SystemCapability.Ability.AbilityBase 39 * @since 9 40 */ 41 export enum Direction { 42 DIRECTION_NOT_SET = -1, 43 DIRECTION_VERTICAL = 0, 44 DIRECTION_HORIZONTAL = 1, 45 } 46 47 /** 48 * ScreenDensity 49 * @name ScreenDensity 50 * @enum { number } 51 * @syscap SystemCapability.Ability.AbilityBase 52 * @since 9 53 */ 54 export enum ScreenDensity { 55 SCREEN_DENSITY_NOT_SET = 0, 56 SCREEN_DENSITY_SDPI = 120, 57 SCREEN_DENSITY_MDPI = 160, 58 SCREEN_DENSITY_LDPI = 240, 59 SCREEN_DENSITY_XLDPI = 320, 60 SCREEN_DENSITY_XXLDPI = 480, 61 SCREEN_DENSITY_XXXLDPI = 640, 62 } 63} 64 65export default ConfigurationConstant 66