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 an active notification 18 * @kit NotificationKit 19 */ 20 21import { NotificationSlot } from './notificationSlot'; 22 23/** 24 * Provides sorting information about an active notification. 25 * 26 * @typedef NotificationSorting 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 NotificationSorting { 33 /** 34 * Notify the channel content. 35 * 36 * @type { NotificationSlot } 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 slot: NotificationSlot; 44 45 /** 46 * Notify the unique ID. 47 * 48 * @type { 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 hashCode: string; 56 57 /** 58 * Notify the sort number. 59 * 60 * @type { number } 61 * @readonly 62 * @syscap SystemCapability.Notification.Notification 63 * @systemapi 64 * @since arkts {'1.1':'7', '1.2':'20'} 65 * @arkts 1.1&1.2 66 */ 67 readonly ranking: number; 68} 69