NotificationCenter
class NotificationCenter : NSObject
-
Shortcut for posting UsherSDKNotication
Declaration
Swift
open func post(name aName: UsherSDKNotification, object anObject: Any?)
-
Shortcut for posting UsherSDKNotication
Declaration
Swift
open func post(name aName: UsherSDKNotification, object anObject: Any?, userInfo aUserInfo: [AnyHashable: Any]? = nil)
-
Shortcut for adding observer for UsherSDKNotication
Declaration
Swift
open func addObserver(_ observer: Any, selector aSelector: Selector, name aName: UsherSDKNotification, object anObject: Any?)
-
Shortcut for adding observer for UsherSDKNotication
Declaration
Swift
@discardableResult open func addObserver(forName name: UsherSDKNotification, object obj: Any?, queue: OperationQueue?, using block: @escaping (Notification) -> Swift.Void) -> NSObjectProtocol
-
Shortcut removing adding observer for UsherSDKNotication
Declaration
Swift
open func removeObserver(_ observer: Any, name aName: UsherSDKNotification, object anObject: Any?)