forked from Countly/countly-sdk-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CountlyFeedbacks.h
34 lines (26 loc) · 1.12 KB
/
CountlyFeedbacks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// CountlyFeedbacks.h
//
// This code is provided under the MIT License.
//
// Please visit www.count.ly for more information.
#import <Foundation/Foundation.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
#if (TARGET_OS_IOS)
+ (instancetype)sharedInstance;
- (void)showDialog:(void(^)(NSInteger rating))completion;
- (void)checkFeedbackWidgetWithID:(NSString *)widgetID completionHandler:(void (^)(NSError * error))completionHandler;
- (void)checkForStarRatingAutoAsk;
- (void)getFeedbackWidgets:(void (^)(NSArray <CountlyFeedbackWidget *> *feedbackWidgets, NSError *error))completionHandler;
@property (nonatomic) NSString* message;
@property (nonatomic) NSString* dismissButtonTitle;
@property (nonatomic) NSUInteger sessionCount;
@property (nonatomic) BOOL disableAskingForEachAppVersion;
@property (nonatomic, copy) void (^ratingCompletionForAutoAsk)(NSInteger);
#endif
@end