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

Kodular Basics- Getting started with Kodular

What Is Kodular? Kodular is a online software which allows us to make android apps without any programming knowledge. Kodular's enable us to make fantastic android apps using their blocks-type editor.We can make our apps stand out with the material design UI. Using Kodular we can make android apps just by dragging and dropping components provided in Kodular Creator.We also need not to write any code to make our app working. We just have to specify blocks in kodular creator and we are out of the tension to write Codes. Getting Started With Kodular :   For making apps you just need to go to Kodular's Creator and sign up there with your email and activate your account.You can create Kodular account and make apps for free. There aren't any charges to use Kodular Creator. So just go Kodular.io and sign up there and start happy coding and app making.  Kodular Dashboard: After you have signed up for Kodular creator,select the option "Create Apps" and you will be redirect...

How to use Youtube Player in Kodular Creator?

  Welcome guys, today we are back again with our Today's tutorial on "How to use Youtube Player in Kodular Creator?". Now, let's directly start our tutorial without wasting any more time in Talking... How to use Youtube Player in Kodular Creator? 1. What is Youtube Player? Youtube Player is a component given in Kodular creator which we can implement in our app for free. This component enables us to play any video uploaded on youtube in our app.For playing any Video we only need the video ID of that youtube video which is found in the url of the video. This is like a video player in which we can play and control any youtube video without opening URL of video in Webview and which improve our app UI and UX. 2. Why Youtube Video Player? We use Youtube video player because of many benefits some of them are described as below: 1. To show any tutorial for our app. 2. Can control our app better. 3. This is a UX improving Component. 4. No need to get specific server if we need...

How to use dynamic component in Kodular Creator ?

How to use dynamic components in Kodular Creator? Welcome back my dear friends, today we are back again with a complete new tutorial. Today we are going to learn How to use Dynamic components in Kodular Creator? As of all our tutorials I assure you you will find this tutorial very useful while developing any of you application which the no. of components are not fixed. So, we use dynamic components to add as much as number of components as we want. So, here we start our tutorial with some of FAQ's that will help you to learn what is concept of dynamic components if you didn't understood "What does dynamic components mean?"  FAQ's about Dynamic components 1. What are dynamic components? Dynamic components are the components which allows us to show as much as number of components in our application as we want. So, that we need not to update app to add any component in our application. This is useful when we are developing any application like Shopping application in...