fortify-enterprise / EventManager

Event Manager for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Event Manager for iOS

License:MIT License


Languages

Language:Swift 58.0%Language:Objective-C 30.5%Language:C 6.5%Language:Shell 4.5%Language:Ruby 0.5%