summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Notifications/NotificationProviderProtocol.swift
blob: 0079513b42c3120215f6ecfd197d0a136da352eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
//  NotificationProviderProtocol.swift
//  MullvadVPN
//
//  Created by pronebird on 09/12/2022.
//  Copyright © 2025 Mullvad VPN AB. All rights reserved.
//

import Foundation

/// Base protocol for notification providers.
protocol NotificationProviderProtocol {
    /// Unique provider identifier used to identify notification providers and notifications
    /// produced by them.
    var identifier: NotificationProviderIdentifier { get }

    /// The priority level of the notification, used to determine the order in which notifications
    /// should be displayed. Higher priority notifications are displayed first.
    var priority: NotificationPriority { get }

    /// Tell notification manager to update the associated notification.
    func invalidate()
}