User Tools

Site Tools


web-integration:client-side

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
web-integration:client-side [2019/08/05 12:40]
tjotov [Page locators and rediects]
web-integration:client-side [2019/08/05 12:44]
tjotov [Communication]
Line 168: Line 168:
 </sxh> </sxh>
  
 +=== 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);
 +    }
 +</sxh>
 +
 +=== Use push ===
 +Tell Web API if it should use push (QR code was used previously).
 +<sxh java>
 +    this.setPush = function(param) {
 +        push = param == true;
 +    }
 +</sxh>
 ==== 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 189: Line 204:
     }     }
 </sxh> </sxh>
- 
- 
-==== Advance methods ==== 
-=== Init Params === 
-Method to pass more parameters like transaction amount, description, etc. 
-<sxh java> 
-    aducid.setInitParams = function(param) { 
-        initParams = param; 
-    } 
-</sxh> 
- 
-=== Debug DOM to display internal messages === 
-<sxh java> 
-    aducid.setDebug = function(param) { 
-        aducidDebug = param; 
-    } 
-</sxh> 
- 
- 
- 
  
 === Button bound operation === === Button bound operation ===
Line 220: Line 215:
     }     }
 </sxh> </sxh>
- 
- 
-=== Get last binding mode === 
-<sxh java> 
-    aducid.getSessionBinding = function() { 
-        return localStorage['session-binding']; 
-    } 
-</sxh> 
- 
-=== Is binding URI? === 
-<sxh java> 
-    aducid.isURI = function() { 
-        return instance.getSessionBinding() == "URI"; 
-    } 
-</sxh> 
-     
-=== Is binding QR? === 
-<sxh java> 
-    aducid.isQR = function() { 
-        return instance.getSessionBinding() == "QR"; 
-    } 
- 
-=== Is this operation going to be authentication (i.e. first operation in chain)? === 
-<sxh java> 
-    aducid.setAuthentication = function() { 
-        instance.setSessionBinding(null); 
-    } 
-</sxh> 
- 
 === Text hint shown before operation started === === Text hint shown before operation started ===
 <sxh java> <sxh java>
Line 275: Line 241:
     }     }
 </sxh> </sxh>
- 
-=== 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); 
-    } 
-</sxh> 
- 
-=== How PEIG not installed is treated, marketplace redirect can be used here === 
-<sxh java> 
-    aducid.showPeigError = function() { 
-        alert("peig error - override this function") 
-    } 
-</sxh> 
- 
 === Auxiliary method to animate operation in progress === === Auxiliary method to animate operation in progress ===
 <sxh java> <sxh java>
Line 306: Line 256:
         if (qrCode == null) return;         if (qrCode == null) return;
         qrCode.hide();         qrCode.hide();
 +    }
 +</sxh>
 +==== Advanced methods ====
 +=== Init Params ===
 +Method to pass more parameters like transaction amount, description, etc.
 +<sxh java>
 +    aducid.setInitParams = function(param) {
 +        initParams = param;
 +    }
 +</sxh>
 +
 +=== Debug DOM to display internal messages ===
 +<sxh java>
 +    aducid.setDebug = function(param) {
 +        aducidDebug = param;
 +    }
 +</sxh>
 +
 +=== Is binding URI? ===
 +<sxh java>
 +    aducid.isURI = function() {
 +        return instance.getSessionBinding() == "URI";
 +    }
 +</sxh>
 +    
 +=== Is binding QR? ===
 +<sxh java>
 +    aducid.isQR = function() {
 +        return instance.getSessionBinding() == "QR";
 +    }
 +
 +=== Is this operation going to be authentication (i.e. first operation in chain)? ===
 +<sxh java>
 +    aducid.setAuthentication = function() {
 +        instance.setSessionBinding(null);
 +    }
 +</sxh>
 +
 +=== Get last binding mode ===
 +<sxh java>
 +    aducid.getSessionBinding = function() {
 +        return localStorage['session-binding'];
 +    }
 +</sxh>
 +
 +=== How PEIG not installed is treated, marketplace redirect can be used here ===
 +<sxh java>
 +    aducid.showPeigError = function() {
 +        alert("peig error - override this function")
     }     }
 </sxh> </sxh>
web-integration/client-side.txt ยท Last modified: 2020/02/29 10:53 by mpospisek