-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathQueueITWKViewController.h
30 lines (23 loc) · 1.2 KB
/
QueueITWKViewController.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
#import <WebKit/WebKit.h>
@protocol QueueITViewControllerDelegate;
@interface QueueITWKViewController : UIViewController
@property (nonatomic, weak)id<QueueITViewControllerDelegate> _Nullable delegate;
-(instancetype _Nullable )initWithHost:(nonnull UIViewController *)host
queueUrl:(nonnull NSString*)queueUrl
eventTargetUrl:(nonnull NSString*)eventTargetUrl
customerId:(nonnull NSString*)customerId
eventId:(nonnull NSString*)eventId;
- (void) close:(void (^ __nullable)(void))completion;
- (BOOL) handleSpecialUrls:(nonnull NSURL*) url
decisionHandler:(nonnull void (^)(WKNavigationActionPolicy))decisionHandler;
- (BOOL) isTargetUrl:(nonnull NSURL*) targetUrl
destinationUrl:(nonnull NSURL*) destinationUrl;
- (BOOL) isBlockedUrl:(nonnull NSURL*) destinationUrl;
@end
@protocol QueueITViewControllerDelegate <NSObject>
-(void)notifyViewControllerClosed;
-(void)notifyViewControllerUserExited;
-(void)notifyViewControllerSessionRestart;
-(void)notifyViewControllerQueuePassed:(NSString* _Nullable) queueToken;
-(void)notifyViewControllerPageUrlChanged:(NSString* _Nullable) urlString;
@end