forked from confirmedcode/Confirmed-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NotificationCenter+Additions.swift
35 lines (29 loc) · 1.39 KB
/
NotificationCenter+Additions.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// NotificationCenter+Additions.swift
//
//
//
import Foundation
extension Notification.Name {
static let setupVPN = Notification.Name("Setup VPN")
static let showContentBlocker = Notification.Name("Show Content Blocker")
static let internetDownNotification = Notification.Name("ConfirmGlobal.internetDownNotification")
static let dismissOnboarding = Notification.Name("Dismiss Onboarding")
static let userSignedIn = Notification.Name("User Signed In")
static let changeCountry = Notification.Name("Change Country")
static let showAccount = Notification.Name("Show Account")
static let askForHelp = Notification.Name("Ask For Help")
static let showPrivacyPolicy = Notification.Name("Show Privacy Policy")
static let showTutorial = Notification.Name("Show Tutorial")
static let runSpeedTest = Notification.Name("Run Speed Test")
static let showWhitelistDomains = Notification.Name("Show White Listing Domain")
static let eulaPolicyAgreed = Notification.Name("EULA Policy Agreed")
static let eulaPolicyDisagreed = Notification.Name("EULA Policy Disagreed")
static let removeEULA = Notification.Name("Remove EULA")
static let vpnStatusChanged = Notification.Name("ConfirmedVPNStatusChanged")
}
extension NotificationCenter {
static func post(name : NSNotification.Name) {
NotificationCenter.default.post(name: name, object: nil)
}
}