Skip to content

Commit

Permalink
Present onboarding UI (if available) in sample apps
Browse files Browse the repository at this point in the history
  • Loading branch information
rsattar committed Mar 2, 2016
1 parent 381ed83 commit c630c48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Dev/LaunchKitSample/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
[[NSUserDefaults standardUserDefaults] registerDefaults:@{@"launchKitToken" : LAUNCHKIT_TOKEN}];
[self.window makeKeyAndVisible];
[self startLaunchKitIfPossible];

LaunchKit *lk = [LaunchKit sharedInstance];
[lk presentOnboardingUIOnWindow:self.window completionHandler:^(LKViewControllerFlowResult flowResult) {
NSLog(@"Showed onboarding!");
}];
return YES;
}

Expand Down
2 changes: 1 addition & 1 deletion DevSwift/LaunchKitSampleSwift/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class AppDelegate: UIResponder, UIAlertViewDelegate, UIApplicationDelegate {
// In case, you the developer, has directly modified the launchkit token here

self.startLaunchKitIfPossible()

LaunchKit.sharedInstance().presentOnboardingUIOnWindow(self.window!, completionHandler: nil)
return true
}

Expand Down

0 comments on commit c630c48

Please sign in to comment.