Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.06 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.06 KB

FlurryEventLogger

Event logging wrapper for Flurry iOS SDK.

Example

enum FlurryEvent: String {
    case Theatres
    case Theatre
    case Plays
    case Play
}

// MARK: - FlurryEventType

extension FlurryEvent: FlurryEventType {
    var eventName: String { return rawValue }
    
    var parameterKeys: [String]? {
        switch self {
        case .Play: return ["PlayID"]
        case .Theatre: return ["TheatreID"]
        default: return nil
        }
    }
}
Flurry.log(event: FlurryEvent.Theatre, parameterValues: [theatre.theatreID])
// is equivalent to this:
Flurry.logEvent("Theatre", parameters: ["TheatreID": theatre.theatreID])

Installation

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

pod 'FlurryEventLogger', :git => 'https://github.com/anilgoktas/FlurryEventLogger.git'

Author

Anıl Göktaş, [email protected]

License

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