1/* 2 * Copyright (c) 2021-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 Provides sorting information about the active notifications among all the notifications that have been subscribed to 18 * @kit NotificationKit 19 */ 20 21import { NotificationSorting } from './notificationSorting'; 22 23/** 24 * Provides sorting information about the active notifications among all the notifications that have been subscribed to 25 * 26 * @typedef NotificationSortingMap 27 * @syscap SystemCapability.Notification.Notification 28 * @systemapi 29 * @since arkts {'1.1':'7', '1.2':'20'} 30 * @arkts 1.1&1.2 31 */ 32export interface NotificationSortingMap { 33 /** 34 * An array of notification sort information. 35 * 36 * @type { Record<string, NotificationSorting> } 37 * @readonly 38 * @syscap SystemCapability.Notification.Notification 39 * @systemapi 40 * @since arkts {'1.1':'7', '1.2':'20'} 41 * @arkts 1.1&1.2 42 */ 43 readonly sortings: Record<string, NotificationSorting>; 44 45 /** 46 * Notification unique identification array. 47 * 48 * @type { Array<string> } 49 * @readonly 50 * @syscap SystemCapability.Notification.Notification 51 * @systemapi 52 * @since arkts {'1.1':'7', '1.2':'20'} 53 * @arkts 1.1&1.2 54 */ 55 readonly sortedHashCode: Array<string>; 56} 57