An extension to create components, call functions or tasks in the background and when the app is alive with various features!
Extension version --> 2.0 A
Beta testers and helpers
Here are the documentation of all the available blocks. If you have found a mistake then let me know about it.
Creating a component
Creates a component. No matter if the app is running in the background or the foreground. All you need to do is to specify the component source name and the name which will be used to invoke functions and do other stuff.
Creating a function
Creates a function of the component ID specified. Specify the component ID and the values. To access the invoked result use the 'invoke:result' value to store it in a variable and then access it using the extra value block.
Calling a function
Calls the created function using the function ID. Make sure the function of the specified ID is created before using this block.
Call a function multiple times
Block to call a function specified number of times with the interval between each calls. Make sure the function of the specified ID is created before using this block.
Creating a variable
Creates a variable with the specified value and the variable name which you can use it on functions.
Storing the invoke result
To store the invoke result use the value "invoke:result" from the extra value block. An example:
Selecting an index
If you're invoke result is list then you can select index from it using the "invoke:result:[INDEX]" from the extra value. An example:
Check if empty
To check if an invoke result is an text and list and to check if the list or text is empty then use "invoke:result:empty" value. An example:
Finding the length
To check the length of the invoke result length of text or list use the "invoke:result:length" value. An example:
Access the variable
You can access the variable value using the "data:NAME" value. If you want to writing something like that then use the extra value block and make the text from code.
Value from code
Executes the code and returns the result. You can use it to perform actions using Java code, calculate sums and return a value. If the value is null or empty, an empty string or text is returned.
- Converting letter to binary format
Making a delay
Does a delay in Milli seconds. You can use this block between functions and task. This will not effect the UI of the application.
Making value from code or text
This block helps you make value from invoke result, do things. The value from it will be executed at the invoke function.
Its strongly recommend to use this block. Mostly on Chinese devices which requires additional permission to run tasks in the background.
This block which will report the Android system that the service and tasks are completed. Gives advantage by saving the system’s resources.
Start the service
Starts the service with the given service ID. The instant is the time which you can from clock component. The services will be executed one after the other and not at once.
Cancel the service
Cancels the service by the given service ID.
This extension was made possible for other platforms by Rush:
The extension is free for everyone to use.
Extension must not be redistributed in other communities.
Its recommended to use the old version for UI related things.
Extension specially for AppInventor: com.kumaraswamy.tasks.aix (385.5 KB)
Extension for others supportive: Kodular community
If you've found any bugs, issues or something wrong in this post then lemme know about it. Suggestions and improvements are appreciated