You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merged PR 2190: Added a internal handling of a *close* link
The SDK now handles special **close** links in the layouts.
When a user clicks on `queueit://close` the webview would be closed.
A method named close was added to both the WebView controller and the QueueITEngine.
This method just dismisses the WebView screen.
Related work items: #6789
[self.engine setViewDelay:5]; // Optional delay parameter you can specify (in case you want to inject some animation before Queue-It UIWebView or WKWebView will appear
76
76
self.engine.queuePassedDelegate = self; // Invoked once the user is passed the queue
77
77
self.engine.queueViewWillOpenDelegate = self; // Invoked to notify that Queue-It UIWebView or WKWebview will open
78
78
self.engine.queueDisabledDelegate = self; // Invoked to notify that queue is disabled
79
79
self.engine.queueITUnavailableDelegate = self; // Invoked in case QueueIT is unavailable (500 errors)
80
80
self.engine.queueUserExitedDelegate = self; // Invoked when user chooses to leave the queue
81
+
self.engine.queueViewClosedDelegate = self; // Invoked after the WebView is closed
81
82
82
83
NSError* error = nil;
83
84
BOOL success = [self.engine run:&error];
84
-
if (!success) { if ([error code] == NetworkUnavailable) {
85
+
if (!success) {
86
+
if ([error code] == NetworkUnavailable) {
85
87
// Thrown when Queue-It detects no internet connectivity
86
88
NSLog(@"%ld", (long)[error code]);
87
89
NSLog(@"Network unavailable was caught in DetailsViewController");
@@ -97,40 +99,38 @@ The implementation of the example controller looks like follows:
97
99
}
98
100
99
101
// This callback will be triggered when the user has been through the queue.
100
-
// Here you should store session information, so user will only be sent to queue again if the session has timed out.
0 commit comments