Structure

NotificationCenter.Publisher

A publisher that emits elements when broadcasting notifications.

Declaration

struct Publisher

Topics

Declaring Publisher Topography

typealias NotificationCenter.Publisher.Output

The kind of values published by this publisher.

typealias NotificationCenter.Publisher.Failure

The kind of errors this publisher might publish.

Creating a Notification Publisher

init(center: NotificationCenter, name: Notification.Name, object: AnyObject?)

Creates a publisher that emits events when broadcasting notifications.

Inspecting Notification Center Properties

let center: NotificationCenter

The notification center this publisher uses as a source.

let name: Notification.Name

The name of notifications published by this publisher.

let object: AnyObject?

The object posting the named notfication.

Instance Methods

Relationships

Conforms To

See Also

Publishing Notifications to Combine

func publisher(for: Notification.Name, object: AnyObject?) -> NotificationCenter.Publisher

Returns a publisher that emits events when broadcasting notifications.