How to use request network for webview in Sketchware
To create a network error for webview in Sketchware, follow steps given below.
1. In onCreate event add block(s) as shown below
Note: This tutorial requires an request network component.
2. In onResponse, add blocks as given below.
In this image in first view block is empty choose the webview there. In second block thats textview used for showing "connecting to server".
3. On error response.
Follow same but in place of gone set it visible and set textview set text "no connection".
That's all. Save and run the projects
Comments
Post a Comment