User Tools

Site Tools


getting_started:faq

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
getting_started:faq [2015/12/19 15:21]
87.113.18.125 [What is an SPK and how do I use it?]
getting_started:faq [2017/02/08 13:55]
37.21.161.169 [Can I use an anonymous function as a callback?]
Line 37: Line 37:
 <code>btn.SetOnTouch(function({myCallback(arg1,arg2...)}))</code> to pass arguments to the callback, but it doesn't work. <code>btn.SetOnTouch(function({myCallback(arg1,arg2...)}))</code> to pass arguments to the callback, but it doesn't work.
  
-Sorry, DroidScript does not support anonymous functions as callback parameters.\\  +Sorry, DroidScript does support anonymous functions as callback parameters only beginning from version >= 1.4.5.\\  
-This is due to a limitation within the Android WebView->Java bridge.+This was due to a limitation within the Android WebView->Java bridge.
  
 =====How Do I Implement In-app-purchases in my DroidScript app?===== =====How Do I Implement In-app-purchases in my DroidScript app?=====
Line 126: Line 126:
 If your ad network provides HTML ads( which almose every one of them does ) then you can use it in WebView. If your ad network provides HTML ads( which almose every one of them does ) then you can use it in WebView.
 For  HTML ads, your network will give you link and you have to use it in <script src> tag.(Chris Hopkins told this useful information) Something like this : For  HTML ads, your network will give you link and you have to use it in <script src> tag.(Chris Hopkins told this useful information) Something like this :
-     <code>webView.LoadHtml('<html><head><script src="Link"></script></head></html>');</code>+<code> 
 +webView.LoadHtml('<html><head><script src="Link"></script></head></html>'); 
 +</code>
  
      
getting_started/faq.txt · Last modified: 2017/10/21 14:57 (external edit)