WebViewProgress

Published on March 8, 2022

🏷️ Tags: #extensions

A non-visible extension that detects the progress loading of the WebViewer. This extension has both English and French support.

Click here for the official MIT App Inventor community post, and here for the GitHub repository.

Made with Niotron IDE at https://ide.niotron.com.

Current version: 1 Package name: com.gordonlu.webviewprogress.aix

πŸ“– Documentation

Event blocks

ProgressChanged - This event is fired when the progress of the WebViewer has changed.

NOTE: Currently, there still isn't a method to detect which WebViewer's progress has changed. Hence, better use one WebViewProgress extension for each WebViewer.

Parameters: progress = number (int)

Method blocks

ApplyProgressChangedListener - Listens to all web viewer loading changes and fires the ProgressChanged event when it changes.

Parameters: webViewer = component

For the French documentation, view the WebViewProgress/French/FrenchDocumentation.md file.

Sample Program #1 With WebViewProgress

This program uses a Canvas as a progress bar, with the WebViewProgress detecting the progress changes. The height of the canvas is 7 pixels, and the LineWidth is also 7 pixels, so drawing the line at 7/2 pixels will fill the whole canvas height. The progress parameter returns a value between 0 and 100, so if the progress is 40, it means that 40% of the webpage is loaded. Since 40% = 40/100, we apply it to here. Then, we multiply the percentage with the width of the canvas, so that it fills 40% of the canvas.

Downloads

Open Source

This extension, both the English and the French version, are available in GitHub.

  • the README.md file is the documentation of the English version, and is written in English.

  • the LICENSE file has the MIT License of this extension.

  • the English folder has:

    • the Java source code of the English extension.

    • the compiled AIX copy of the English extension.

  • the French folder has:

    • the Java source code of the French extension.

    • the compiled AIX copy of the French extension.

TERMS AND CONDITIONS

By downloading or sharing my extension, you agree to follow these terms and conditions.

  1. Have fun using the extension!

  2. This, along with the MIT App Inventor original post above and the GitHub repository, are the only authorized places to download this extension. As an organization, you are not allowed to host and advertize this extension on your website, document, tweet, blog, article or any software you made without my authorization. You are also reminded not to include a direct download link of this extension on your website without my permission. If you are interested in the actions listed above, please contact me via email. Do remember that if you violate term no. 2, AICODE has the right to flag your website, document, tweet, blog or article as a violation of copyright, or other legal actions will be taken. Please contact me if you find anyone do this.

However, you can copy the link of this webpage and share it to someone as a personal identity (not as an organization), or sharing it on these authorized forums: App Inventor, Kodular, Niotron, Appzard and Android Builder communities. The term organization includes schools, markets and app stores, companies and social groups. Thank you for your understanding.

Those organizations are authorized to advertize or host my extension:

  • Kodular admins

  • MIT App Inventor admins

  • Pura Vida Apps / Taifun Baer

  1. Selling this extension/product to anyone is not allowed unless authorized by AICODE.

  2. These terms and conditions are written and issued on December 20, 2021. AICODE has the total permission to edit these terms and conditions anytime.