name
TypeScriptget name(): NSNotification_NameSwift declarationlet name: Notification.NameThe name of notifications published by this publisher.
struct · iOS 13.0+ · SDK 27.1
struct PublisherA publisher that emits elements when broadcasting notifications.
get name(): NSNotification_NameSwift declarationlet name: Notification.NameThe name of notifications published by this publisher.
static init(center: NotificationCenter, name: NSNotification_Name, object?: (unknown) | null): NotificationCenter_PublisherSwift declarationinit(center: NotificationCenter, name: Notification.Name, object: AnyObject? = nil)Creates a publisher that emits events when broadcasting notifications. - Parameters: - center: The notification center to publish notifications for. - name: The name of the notification to publish. - object: The object posting the named notfication. If `nil`, the publisher emits elements for any object producing a notification with the given name.
get center(): NotificationCenterSwift declarationlet center: NotificationCenterThe notification center this publisher uses as a source.
get object(): (unknown) | nullSwift declarationlet object: AnyObject?The object posting the named notfication.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NotificationCenter.Publisher.receive(subscriber:)
This declaration needs Swift generic type arguments. (no canonical witness for S)