TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2016 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Paul Berry, Tom Boates, Phil Connaughton.
Depends on: | |
Alamofire | ~> 4.0.1 |
ReachabilitySwift | ~> 3 |
Brilliant is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Brilliant"
NOTE: if project is in Objective-C, make sure the line use_frameworks!
is added to your podfile.
import Brilliant
in the AppDelegateConfigure Brilliant in the didFinishLaunchingWithOptions
method of the AppDelegate:
Brilliant.createInstance("INSERT KEY HERE", appStoreId: "INSERT APP STORE ID", userEmail: "INSERT EMAIL", userType: "INSERT USER TYPE", userDate: NSDate.distantPast())
Get your private app key from the web dashboard: brilliantapp.com/settings
import Brilliant
in the view controller you’d like the show the NPS SurveyBrilliant.sharedInstance().showNpsSurvey("INSERT EVENT NAME"){ (success) -> Void in}
to pop up the modal, supply an event name for analytics (i.e. “Friend Request Accepted”)@import Brilliant;
in the AppDelegatedidFinishLaunchingWithOptions
method of the AppDelegate (MUST DO BEFORE SINGLETON INITIALIZATION):[Brilliant createInstance:@"appId" appStoreId: @"INSERT APP STORE ID" userEmail: @"INSERT EMAIL" userType: @"INSERT USER TYPE" userDate: [NSDate distantPast]];
@import Brilliant;
in the view controller you’d like the show the NPS Survey[[Brilliant sharedInstance] showNpsSurvey:@"Button Clicked" completed:^(BOOL completed) {}];
to pop up the modal, supply an event name for analytics (i.e. “Friend Request Accepted”)Brilliant is available under the MIT license. See the LICENSE file for more info.