-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathNSNotificationQueue.swift
40 lines (28 loc) · 1.11 KB
/
NSNotificationQueue.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
36
37
38
39
public enum NSPostingStyle : UInt {
case PostWhenIdle
case PostASAP
case PostNow
}
public struct NSNotificationCoalescing : OptionSetType {
public let rawValue : UInt
public init(rawValue: UInt) { self.rawValue = rawValue }
public static let CoalescingOnName = NSNotificationCoalescing(rawValue: 1 << 0)
public static let CoalescingOnSender = NSNotificationCoalescing(rawValue: 1 << 1)
}
public class NSNotificationQueue : NSObject {
public class func defaultQueue() -> NSNotificationQueue {
NSUnimplemented()
}
public init(notificationCenter: NSNotificationCenter) {
NSUnimplemented()
}
public func enqueueNotification(notification: NSNotification, postingStyle: NSPostingStyle) {
NSUnimplemented()
}
public func enqueueNotification(notification: NSNotification, postingStyle: NSPostingStyle, coalesceMask: NSNotificationCoalescing, forModes modes: [String]?) {
NSUnimplemented()
}
public func dequeueNotificationsMatching(notification: NSNotification, coalesceMask: Int) {
NSUnimplemented()
}
}