Event logging wrapper for Flurry iOS SDK.
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])
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'
Anıl Göktaş, [email protected]
FlurryEventLogger is available under the MIT license. See the LICENSE file for more info.