-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHKMInviteView.h
executable file
·37 lines (31 loc) · 1.31 KB
/
HKMInviteView.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
35
36
37
#define POPLISTVIEW_SCREENINSET 40.
#define POPLISTVIEW_BUTTONINSET 10.
#define POPLISTVIEW_HEADER_HEIGHT 50.
#define POPLISTVIEW_FOOTER_HEIGHT 50.
#define RADIUS 5.
#define FIRST_USE_WAIT_TIME 6.
#define ADDRESSBOOK_DENIED_ACCESS_ALERT_TITLE @"Whoops!"
#define ADDRESSBOOK_DENIED_ACCESS_ALERT_MSG @"To share this app with your friends, we need access to your address book. Please go to Settings / Privacy / Contacts and enable access for this app."
#define INVITE_SELECT_SOME_FRIENDS_MSG @"Please select a few friends first"
#define NO_NETWORK_COVERAGE_ERROR_ALERT_TITLE @"Sorry!"
#define NO_NETWORK_COVERAGE_ERROR_ALERT_MSG @"No data coverage. Please check your settings"
@protocol HKMInviteDelegate;
@interface HKMInviteView : UIView <UITableViewDataSource, UITableViewDelegate>
{
UITableView *_tableView;
UIButton *_sendButton;
NSString *_title;
NSTimer *_aTimer;
BOOL _firstUse;
int _lastInviteCount;
}
@property (nonatomic, assign) id<HKMInviteDelegate> delegate;
- (id)initWithKey: (NSString *)apiKey title:(NSString *)aTitle sendBtnLabel:(NSString *)sendBtnLabel;
- (void) launchWithPermissionCheck;
- (void)showInView:(UIView *)aView animated:(BOOL)animated;
- (void)registerNotification;
@end
@protocol HKMInviteDelegate <NSObject>
- (void)invitedCount:(NSInteger)count;
- (void)inviteCancelled;
@end