-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
681 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,30 @@ | ||
// CountlyFeedbacksInternal.h | ||
// CountlyFeedbacks.h | ||
// | ||
// This code is provided under the MIT License. | ||
// | ||
// Please visit www.count.ly for more information. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "CountlyConfig.h" | ||
#import "CountlyFeedbackWidget.h" | ||
|
||
@class CountlyFeedbackWidget; | ||
|
||
extern NSString* const kCountlyFBKeyPlatform; | ||
extern NSString* const kCountlyFBKeyAppVersion; | ||
extern NSString* const kCountlyFBKeyWidgetID; | ||
extern NSString* const kCountlyFBKeyID; | ||
|
||
extern NSString* const kCountlyReservedEventStarRating; | ||
|
||
@interface CountlyFeedbacks : NSObject | ||
@interface CountlyFeedbacks: NSObject | ||
#if (TARGET_OS_IOS) | ||
+ (instancetype)sharedInstance; | ||
|
||
- (void)showDialog:(void(^)(NSInteger rating))completion; | ||
- (void)presentRatingWidgetWithID:(NSString *)widgetID closeButtonText:(NSString *)closeButtonText completionHandler:(void (^)(NSError * error))completionHandler; | ||
- (void)recordRatingWidgetWithID:(NSString *)widgetID rating:(NSInteger)rating email:(NSString *)email comment:(NSString *)comment userCanBeContacted:(BOOL)userCanBeContacted; | ||
- (void)checkForStarRatingAutoAsk; | ||
|
||
- (void)getFeedbackWidgets:(void (^)(NSArray <CountlyFeedbackWidget *> *feedbackWidgets, NSError *error))completionHandler; | ||
|
||
- (void) presentNPS; | ||
- (void) presentNPS:(NSString *)nameIDorTag; | ||
- (void) presentNPS:(NSString *)nameIDorTag widgetCallback:(WidgetCallback) widgetCallback; | ||
|
||
- (void) presentSurvey; | ||
- (void) presentSurvey:(NSString *)nameIDorTag; | ||
- (void) presentSurvey:(NSString *)nameIDorTag widgetCallback:(WidgetCallback) widgetCallback; | ||
|
||
- (void) presentRating; | ||
- (void) presentRating:(NSString *)nameIDorTag; | ||
- (void) presentRating:(NSString *)nameIDorTag widgetCallback:(WidgetCallback) widgetCallback; | ||
|
||
@property (nonatomic) NSString* message; | ||
@property (nonatomic) NSString* dismissButtonTitle; | ||
@property (nonatomic) NSUInteger sessionCount; | ||
@property (nonatomic) BOOL disableAskingForEachAppVersion; | ||
@property (nonatomic, copy) void (^ratingCompletionForAutoAsk)(NSInteger); | ||
- (void)getAvailableFeedbackWidgets:(void (^)(NSArray <CountlyFeedbackWidget *> *feedbackWidgets, NSError * error))completionHandler; | ||
#endif | ||
@end |
Oops, something went wrong.