What’s about topic
Hello everyone This topic is about to help the newones that want to begin creating extension
Today I am showing How to start creating extension
So without wasting any time Lets Start
IDE
First you need a IDLE guess for creating a extension if you are beginner so you can start from here
https://editor.appybuilder.com/
Or you can follow this guide to Install a IDLE in your computer
Let’s Start
Package Name
So guys first you have to learn about your extension package name
If you are using appybuilder then you cannot give package name tp your extension
You can give package name to your extension when you are using extension templator for making extension
How can you give package
As you can see the image my extension java file is placed in com/test/sumit1334 that is created by you. Your package name must equal to your path like my path is com/test/sumit1334 so my extension package name is com.test.sumit133 just replace bracket by dots
I hope you understand package
we have to learn how to create blocks
Also follow this
1. Event Blocks
Preview
as you can see this blocks is created by this code
As I have written comments on lines
I hope you have understood
2. Return Method Block
Preview
This block is created by this code
Here I have returned a string so I have given String datatype if you want to return different datatypes then give your datatypes see here example
In this ex i have returned a integer
YailList ex
Some method of Yaillist
For better understanding read comment on codes
Now I will return a list
On returning a list you cant return a linkedlist or any other list you have to return a YailList
Like this
I have written comment on every code line I hope you will understand by comments
3. Non return Method Block
Preview
If you want to return nothing in a blocks then you have to type void after public
See Image of codes
4. Get Property Block
Preview
First you have to make variable to store your property like this
If you will not make a variable to store property then what will you return?
This block is written by following code
5. Set Property Block
Preview
As I have created a variable property
we will edit that variable in this block
see the code
How to use constructor in blocks
Constructor is like a procedure block its short our code firt I will show you returnabel constructor
see ex
Non returnable constructo
It is also a procedure but it does not return a value. it do task
codes ex
I hope you understand
How to call event from method
Here guys we will call event block through methods like this
As I have already created a event block
As you can see this I have passed the value in Simpleevent()
Here the tutorial finishes
I hope it helped you
Do not go on extension name
Going to create your first extension make sure to follow the naming convention