This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
web-integration:client-side [2019/08/05 12:42] tjotov [UI methods] |
web-integration:client-side [2019/08/05 12:44] tjotov [Communication] |
||
---|---|---|---|
Line 168: | Line 168: | ||
</ | </ | ||
+ | === Final action === | ||
+ | What API should do when operation finishes (not processed on iOS as we use returnUrl directly there) | ||
+ | <sxh java> | ||
+ | aducid.processResult = function(result) { | ||
+ | alert(result); | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | === Use push === | ||
+ | Tell Web API if it should use push (QR code was used previously). | ||
+ | <sxh java> | ||
+ | this.setPush = function(param) { | ||
+ | push = param == true; | ||
+ | } | ||
+ | </ | ||
==== UI methods ==== | ==== UI methods ==== | ||
=== Tell server to generate QR / or not to reduce payload === | === Tell server to generate QR / or not to reduce payload === | ||
Line 283: | Line 298: | ||
aducid.getSessionBinding = function() { | aducid.getSessionBinding = function() { | ||
return localStorage[' | return localStorage[' | ||
- | } | ||
- | </ | ||
- | |||
- | |||
- | |||
- | === The most important method === | ||
- | What API should do when operation finishes (not processed on iOS as we use returnUrl directly there) | ||
- | <sxh java> | ||
- | aducid.processResult = function(result) { | ||
- | alert(result); | ||
} | } | ||
</ | </ |