MNMapNotificationManager

open class MNMapNotificationManager
  • Singleton pattern to get the core notification itself.

    Declaration

    Swift

    public static let main: MNMapNotificationManager
  • Notification types.

    See more

    Declaration

    Swift

    public enum type : String

Notification Related Function

  • This function adds a specific type observer to a set of observers. Then post notification of the type immediately.

    See also

    addObserver only adds an observer, not post.

    Declaration

    Swift

    public func addObserverAndPost(type: type, observer: AnyObject, selector: Selector)

    Parameters

    type

    The notification type.

    observer

    The object that is watching for notifications.

    selector

    The selector.

  • This function adds a specific type observer to a set of observers.

    See also

    addObserverAndPost not only adds an observer, also post immediately.

    Declaration

    Swift

    public func addObserver(type: type, observer: AnyObject, selector: Selector)

    Parameters

    type

    The notification type.

    observer

    The object that is watching for notifications.

    selector

    The selector.

  • This function removes all observers.

    See also

    Use removeObserver if you want to remove only one type of observer.

    Declaration

    Swift

    public func removeAllObservers(observer: AnyObject)

    Parameters

    observer

    The objects that are not watching notifications.