CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

Brilliant 0.4.4

Brilliant 0.4.4

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 0.4.4

Brilliant

Installation

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.

Swift Getting Started

  1. After installing the pod in your project, import Brilliant in the AppDelegate
  2. Configure 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())

  3. Get your private app key from the web dashboard: brilliantapp.com/settings

  4. import Brilliant in the view controller you’d like the show the NPS Survey
  5. Add Brilliant.sharedInstance().showNpsSurvey("INSERT EVENT NAME"){ (success) -> Void in} to pop up the modal, supply an event name for analytics (i.e. “Friend Request Accepted”)

Objective-C Getting Started

  1. After installing the pod in your project, @import Brilliant; in the AppDelegate
  2. Set user info in the didFinishLaunchingWithOptions 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]];

  1. Get your private app key from the web dashboard: brilliantapp.com/settings
  2. @import Brilliant; in the view controller you’d like the show the NPS Survey
  3. Add [[Brilliant sharedInstance] showNpsSurvey:@"Button Clicked" completed:^(BOOL completed) {}]; to pop up the modal, supply an event name for analytics (i.e. “Friend Request Accepted”)

License

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