Name
typealias Notification.Name = NSNotification.Name
Extend Notification.Name to have class properties corresponding to each type of event. This allows creating notifications and observers using these names.
-
The name corresponding to a
CommandStartedEvent
.Declaration
Swift
public static let commandStarted: Notification.Name
-
The name corresponding to a
CommandSucceededEvent
.Declaration
Swift
public static let commandSucceeded: Notification.Name
-
The name corresponding to a
CommandFailedEvent
.Declaration
Swift
public static let commandFailed: Notification.Name
-
The name corresponding to a
ServerDescriptionChangedEvent
.Declaration
Swift
public static let serverDescriptionChanged: Notification.Name
-
The name corresponding to a
ServerOpeningEvent
.Declaration
Swift
public static let serverOpening: Notification.Name
-
The name corresponding to a
ServerClosedEvent
.Declaration
Swift
public static let serverClosed: Notification.Name
-
The name corresponding to a
TopologyDescriptionChangedEvent
.Declaration
Swift
public static let topologyDescriptionChanged: Notification.Name
-
The name corresponding to a
TopologyOpeningEvent
.Declaration
Swift
public static let topologyOpening: Notification.Name
-
The name corresponding to a
TopologyClosedEvent
.Declaration
Swift
public static let topologyClosed: Notification.Name
-
The name corresponding to a
ServerHeartbeatStartedEvent
.Declaration
Swift
public static let serverHeartbeatStarted: Notification.Name
-
The name corresponding to a
ServerHeartbeatSucceededEvent
.Declaration
Swift
public static let serverHeartbeatSucceeded: Notification.Name
-
The name corresponding to a
ServerHeartbeatFailedEvent
.Declaration
Swift
public static let serverHeartbeatFailed: Notification.Name