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 status of the notification flag. 18 * 19 * @since 8 20 * @systemapi Hide this for inner system use. 21 * @sysCap SystemCapability.Notification.Notification 22 */ 23 export enum NotificationFlagStatus { 24 /** 25 * notification flag default value 26 */ 27 TYPE_NONE = 0, 28 29 /** 30 * notification flag open 31 */ 32 TYPE_OPEN = 1, 33 34 /** 35 * notification flag close 36 */ 37 TYPE_CLOSE = 2, 38} 39 40/** 41 * Describes a NotificationFlags instance. 42 * 43 * @name NotificationFlags 44 * @since 8 45 * @permission N/A 46 * @syscap SystemCapability.Notification.Notification 47 */ 48 export interface NotificationFlags { 49 /** 50 * Whether to enable sound reminder. 51 */ 52 readonly soundEnabled?: NotificationFlagStatus; 53 54 /** 55 * Whether to enable vibration reminder. 56 */ 57 readonly vibrationEnabled?: NotificationFlagStatus; 58} 59