MNMapNotificationManager
open class MNMapNotificationManager
-
Singleton pattern to get the core notification itself.
Declaration
Swift
public static let main: MNMapNotificationManager -
Notification types.
See moreDeclaration
Swift
public enum type : String
-
This function adds a specific type observer to a set of observers. Then post notification of the type immediately.
See also
addObserveronly adds an observer, not post.Declaration
Swift
public func addObserverAndPost(type: type, observer: AnyObject, selector: Selector)Parameters
typeThe notification type.
observerThe object that is watching for notifications.
selectorThe selector.
-
This function adds a specific type observer to a set of observers.
See also
addObserverAndPostnot only adds an observer, also post immediately.Declaration
Swift
public func addObserver(type: type, observer: AnyObject, selector: Selector)Parameters
typeThe notification type.
observerThe object that is watching for notifications.
selectorThe selector.
-
This function removes all observers.
See also
UseremoveObserverif you want to remove only one type of observer.Declaration
Swift
public func removeAllObservers(observer: AnyObject)Parameters
observerThe objects that are not watching notifications.
MNMapNotificationManager Class Reference