Skip to content

fortify-enterprise/EventManager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages

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