Event Manager for iOS
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 4 commits ahead of gibraltar:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
EventManager
Example
_Pods.xcodeproj
EventManager.podspec
LICENSE
README.md

README.md

EventManager

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Inside AppDelegate.swift

let Events = EventManager()

Then add the following inside your view controllers ViewDidLoad or any other init function

Events.listenTo(eventName: "synchronizeAccountDataEvent", action: self.synchronizeAccountData)

After you can push to the controller using this:

Events.trigger(eventName: "synchronizeAccountDataEvent")

Inside the listener function then:

    /// Photo uploaded
    func synchronizeAccountData (information:Any?)
    {
        if let mongoId = information as? String
        {
            print("Uploaded account id: " + mongoId)
        }
    }

Requirements

Installation

EventManager is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "EventManager"

Author

Fortify Communications Inc, andrei@fortify.pro

License

EventManager is available under the MIT license. See the LICENSE file for more info.