1/* 2 * Copyright (c) 2022-2023 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 * @file 18 */ 19 20/** 21 * The definition of ConfigurationConstant. 22 * 23 * @namespace ConfigurationConstant 24 * @syscap SystemCapability.Ability.AbilityBase 25 * @since 8 26 * @deprecated since 9 27 * @useinstead ohos.app.ability.ConfigurationConstant/ConfigurationConstant 28 */ 29declare namespace ConfigurationConstant { 30 /** 31 * Color mode. 32 * 33 * @enum { number } 34 * @syscap SystemCapability.Ability.AbilityBase 35 * @since 8 36 * @deprecated since 9 37 * @useinstead ohos.app.ability.ConfigurationConstant/ConfigurationConstant#ColorMode 38 */ 39 export enum ColorMode { 40 /** 41 * No color mode set. 42 * 43 * @syscap SystemCapability.Ability.AbilityBase 44 * @since 8 45 * @deprecated since 9 46 * @useinstead ohos.app.ability.ConfigurationConstant/ConfigurationConstant.ColorMode#COLOR_MODE_NOT_SET 47 */ 48 COLOR_MODE_NOT_SET = -1, 49 50 /** 51 * Dark mode. 52 * 53 * @syscap SystemCapability.Ability.AbilityBase 54 * @since 8 55 * @deprecated since 9 56 * @useinstead ohos.app.ability.ConfigurationConstant/ConfigurationConstant.ColorMode#COLOR_MODE_DARK 57 */ 58 COLOR_MODE_DARK = 0, 59 60 /** 61 * Light mode. 62 * 63 * @syscap SystemCapability.Ability.AbilityBase 64 * @since 8 65 * @deprecated since 9 66 * @useinstead ohos.app.ability.ConfigurationConstant/ConfigurationConstant.ColorMode#COLOR_MODE_LIGHT 67 */ 68 COLOR_MODE_LIGHT = 1 69 } 70} 71 72export default ConfigurationConstant; 73