Skip to content

Commit

Permalink
Added method to show the enjoyment dialog if requirements are met. Wi…
Browse files Browse the repository at this point in the history
…thout having to increment the significant event count.
  • Loading branch information
Dominic Tham committed Apr 10, 2013
1 parent d5e1d23 commit c7340e1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ApptentiveConnect/source/Rating Flow/ATAppRatingFlow.h
Expand Up @@ -94,6 +94,12 @@
*/
- (void)showEnjoymentDialog:(UIViewController *)vc;

/*!
Call if you want to show the enjoyment dialog if requirments are met. This
enters the flow for either bringing up the feedback view or the rating dialog.
*/
- (void)showEnjoymentDialogIfRequirementsMet:(UIViewController *)vc;

/*!
Call if you want to show the rating dialog directly.
*/
Expand Down
10 changes: 10 additions & 0 deletions ApptentiveConnect/source/Rating Flow/ATAppRatingFlow.m
Expand Up @@ -219,6 +219,16 @@ - (IBAction)showEnjoymentDialog:(id)sender
#endif
}

#if TARGET_OS_IPHONE
- (void)showEnjoymentDialogIfRequirementsMet:(UIViewController *)vc{
self.viewController = vc;
BOOL showedDialog = [self showDialogIfNecessary];
if (!showedDialog) {
self.viewController = nil;
}
}

#endif
#if TARGET_OS_IPHONE
- (void)showRatingDialog:(UIViewController *)vc
#elif TARGET_OS_MAC
Expand Down

0 comments on commit c7340e1

Please sign in to comment.