Skip to main content

How to enable Downloading support in Kodular Web Viewer?

How to enable Downloading support in Kodular Web Viewer?

Welcome to your own website  Learn Web, as you have seen in this article we will be learning "How to enable downloading support in Kodular Web Viewer component?" Now, we proceed to our tutorial and here we start our article.....


How to enable Downloading support in Kodular Web Viewer?

What is Web Viewer?


Web viewer is a component provided to us in Kodular Creator. This component can be found under the layouts option in the views section. This is a component that enable user to surf through Website and you can set any Webpage visible to viewer but it doesn't perform completely like a Browser and this doesn't have all function like a browser. So, if we want to enable any user to download a file we have to set some extra blocks. In this article we will be learning how to enable this function in Web viewer.

Benefits of enabling download option in Kodular;


We can be accessible to many benefits if we enable downloading support in Kodular Web viewer. For example In my case i used this function in my browser which I made about two years ago. I can say that this will be a very helpful function during any application development. 


What do we need to enable downloading in Web viewer in Kodular Creator?

For enabling download from webviewer we need a Webviewer and a download component found in connectivity option in Kodular. We don't need any of external resources for enabling download support in Web Viewer. So you need a webviewer from where a user can access for any file to download then we will fetch the Download URL from Web Viewer to start downloading the file. Before we start our tutorial I recommend you to add both these Components in your project.


How to initiate download from Web Viewer?

For initiating Download you need to add these blocks in your project to initiate download whenever Web Viewer needs. 

Step 1: Find when we need to initiate Download;


First we have to find when do we need to initiate the download. For this open Blocks section and click on Web viewer. Now look for the block "when Web-viewer on Download start" and drag and drop this block.

On download start





Step 2: Call Download component to Get URL;

Second step is that we have to call Download component to set the Download URL as the URL given by "when Web-viewer on Download start".

Get file URL







Now we have set the download URL and we are able to start Download from this URL.

Step 3: Call Start Download;

The last step to add download support is to add the Start Download option.

Start download








Now we have completely set our blocks to initiate download from Web Viewer.

Some extra features of download option:

1. Show Notification

Block:
Show notification



This sets whether to show notification about download in Device.

2. Save File as

Block:
Save file as




This blocks sets the name of the file to be downloaded.

3. Scan by media Scanner

Block:
Scan file type



This sets whether to scan the file type and add it to it's section in file manager of device.

4. On download completed

Block:
When Download completed







This block give us the File path, File Name and File size when download completed.

So, these were the main blocks of Download component in kodular creator and how to enable download in Web Viewer. That's all for today article, We will be back with another useful tutorial. Till then.....

Happy Koding.....

Comments

Popular posts from this blog

How to use Blocks in Text section in Kodular Creator?

How to use Blocks in Text section in Kodular Creator?  Guys welcome back to Learn Web Online, Today as you have seen we will be learning about using the main text related blocks. These text blocks are very useful while making your android application. We can edit, trim, join etc. text using the blocks which we will be talking about. The blocks which we will be learning to use today can be found under the built in components 'Text'. So, open your project to get live results to try these blocks your own. Here we start our tutorial without wasting time any more.... Blocks In text section Here, we have the main blocks which we are going to learn to use today's tutorial 1. Text Block: This block is used to denote a text string. This is the basic block which provide a text string in block section. We can use this block to give a text string to any other block. For example we can enter a text and set this text to a specific Label's text. 2. Join Text This block is used to join...

How to improve UI and UX of your android application?

  How to improve UI and UX of your android application? Koders, you are welcomed to Learn web online. So, as you have seen today we will be learning How we can Improve UI of our applications make in Kodular creator. Today, I will be sharing my own methods that I prefer using to Improve UI of my android applications. Before we start our tutorial I want to tell you if you are new to Learn Web online then Keep connected with us for getting more interesting tutorials related to Kodular application development. But firstly we would talk about why is a better UI important for our applications. Here are the main things which proves the importance of a better UI in Kodular Crerator ; 1. More Downloads: If the UI of your application is good then it will surely help you to get more downloads in play store. Users will get attracted by the screenshots which you provided to app store if they shows a good UI design. 2. Better engagement:  A better app UI design will help you to get more use...

How to add Google Voice Search in Kodular Creator?

  So guys today we are going to learn about Kodular components. Today we will be discussing how to use Voice search in Kodular. Now, here we start our tutorial. How to add Google Voice Search in Kodular Creator? What is Google Voice Search? Google voice search is a function in which we can search in our device by speaking our query rather than typing it to search. You may have used it manny time but today We are going to learn how to implement this our android app. Why should we use it? We can use voice to text option for many tasks such as, 1. In browser for Search option. 2. For getting voice message. 3. For use of translation etc. So,these were the some of uses of voice to text option. You guys can use this anywhere you feel need of voice input from user. How to implement this in our app?  Step 1: Firstly you need to check for speech recognizer component under the option of media in sidebar. Properties: We don't have any properties options for speech recognizer currently in...