Skip to main content

How to use Utilities component in Kodular Creator?

 

How to use Utilities component in Kodular Creator?

How to use Utilities component in Kodular Creator?

Welcome back guys to Learn webs online. As you may have seen in above image, in today's tutorial we will be going to learn to use the utilities components in Kodular Creator. These components will surely be useful for your future projects. In today tutorial we will learn to use these four utilities components. These are the main utilities components in kodular creator. There are also another utilities components which we will learn to use in further tutorials. So, let's start our tutorial without waiting any more.....

1. Wallpaper component

Introduction: This component can be found at the last position in the utilities components under utilities option in sidebar. As you can understand by it's name this is used to access the wallpaper settings of user's device. This is very useful component while developing a app in which we allow user to change or modify wallpaper within the application. This app may be a browser app or an wallpaper application in which we need to allow user to set or change wallpaper within our application to make it more convenient for user. So, it will be a very important factor in development of UI of our application.

This was about it's introduction now we would move to it's blocks to implement in our application.

Blocks:

1. Get wallpaper

Blocks

This block is used to call the event to get the current wallpaper image path of user's device.

2. Got wallpaper

Blocks
This block gives us the picture used as the current wallpaper in the user's device.

3. Clear wallpaper

Blocks
This is used to invoke the event to clear the wallpaper to system default wallpaper. This clear the custom set wallpaper in user's  device.

4. Wallpaper cleared

Blocks
This is used to call any action when device wallpaper cleared.

5. Set wallpaper

Blocks

This is used to call the event to set wallpaper of device. We need to provide image which will be set as wallpaper here.

6. Set lock screen wallpaper

Blocks

This is used to call the event to set a image as the lock screen wallpaper. We have to provide image here that is going to be set as lock screen wallpaper.

2. Image utilities

The main use of this utilities component is to load images asynchronously to our application. This component helps us to load images asynchronously which mean it prevent our application to load images preventing our application to stuck. In this we can load image from URL and file path of device. You will use this component to load images to any component.

Blocks:

This component has one block which will be used to load images asynchronously.Blocks

In this we can load images by using URL to any component such as Image, Buttons, Layouts, Canvas. So, just set this block to call to load any image to any component which is supported by Image utilities.

3. Device Utilities

The next component in our list is device utilities component. This component fetches information and specification of  the device in which application is installed. This has a lot of blocks which help us to get information about user's device.

Blocks:

Here we have all the blocks with their uses provided in Kodular Creator....

1. Internal Storage Blocks

Blocks
These blocks provide us the stats of the internal storage in gigabytes.

2. RAM Blocks

Blocks

These blocks provide us the current stats of RAM in the device in form of Gigabytes.

3. Prase Text

Blocks
This block provide us text between two strings from a given text in the text option.

4. Is app installed from play store

Blocks
This gives us true or false with reference to whether app is installed from play store or not.

5. External storage blocks

Blocks
These blocks provide us the stats of the external storage in the device in form of Gigabytes.

6. Is emulator

Blocks
This returns true if  device is emulator otherwise not.

7. Copy and paste blocks

Blocks
These blocks gives us access to the clipboard of device. First block copies the text to clipboard and the second one provide the text from clipboard.

8. Adb debugging

Blocks

This returns true if Adb debugging is enabled which makes our app close to hacking.

9. Dangerous apk installed

Blocks
This block returns true is device has installed any dangerous apk.

10. Get serial no.

Blocks
This blocks call the event to get the serial no. of device.

11. Got serial no.

Blocks

This gives us the serial no. of device. when call device utilities to get serial is invoked.

12. Get IMEI

Blocks

This is used to call the event to get IMEI of device.

13. Got IMEI

Blocks

This provide the IMEI of device when call device utilities to get IMEI is invoked.

So, these were the main blocks of Device utilities. There are also secondary blocks which you can also use. Now, we move to battery utilities component....

4. Battery Utilities

If we are developing an application which allow user to monitor the stats of battery of his device. For this we need to get the stats about battery. So, for this we have battery utilities component which monitors the device's battery. Now, we learn "How to use blocks of Battery utilities in Kodular creator?"

Blocks:

1. Battery Health
Blocks
This returns the stats of health of battery which can be COLD, DEAD, GOOD, OVERHEAT, OVER_VOLTAGE, UNKNOWN.

2. Battery level
Blocks
This block provide the level of battery in form of percentage.

3. Battery Plugged
Blocks
This gives whether the device is plugged into any power source. It can return USB, AC or UNKNOWN.

4. Battery present
Blocks
This return true if battery is present otherwise false.

5. Battery temperature
Blocks
This provide the current temperature of battery in centigrade unit.

6. Battery voltage
Blocks
This provide the voltage of battery in device as a number.

7. Battery info
Blocks
This provide info about different information about battery. Key is the key of info which is to be detected. Keys can be  HEALTH, LEVEL, PLUGGED, PRESENT, STATUS, CHARGE_STATUS, TECHNOLOGY, TEMPERATURE, VOLTAGE.  
If key is empty then all info is returned as a list.

So, guys these are the main utilities components provided in Kodular creator. I think you might have got how to use all of them. If you have nay confusion related to these components you can ask me in comments under this post. I will reply you within 24 Hours. So, this was all for today keep connected with learnwebs.online to get more tutorials helping you towards your android development journey.

Comments

Popular posts from this blog

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

How to use KIO4 gradient in Kodular?

  Welcome to learn web, today we are back with a completely new tutorial on Kodular Basic-to -Advanced app making.Today topic for our tutorial is that how to use Gradient effect in Kodular app making for any layout. How to use gradient colors in kodular app? For this you need to use a extension named "KIO4" gradient.So,before starting you need to get this extension before we start our tutorial.To get this click on link below: My Drive Link This is the google drive link for the KIO4 extension. I think you might have got the extension.So, we start our tutorial on how to use gradient effect Kodular apps. Step 1:Open your Project in which you want to use gradient Effect.Then click on the extensions button in the bottom of left sidebar and click on import extension.Now select the KIO4 gradient file and click on Import after some time your extension will be processed and imported to your project. Illustration: Once you have Imported the KIO4 extension you can see the extension as s