Parameter | Description |
|---|---|
Name | Name of the unit. |
Description | Description of the unit. |
Template name | Name of the unit type template |
Template version | Version of the unit type template |
Timeout between keystrokes | Max time between keystrokes before terminal goes back to default state (seconds). |
LCD refresh time | Timeout between automatic refresh of information in the KT LCD (seconds). Set to 0 to not refresh at all. |
24 Hour clock | If this check box is checked, the time should be displayed with a 24 hour clock. If it is not checked, it should be displayed with a 12 hour clock. |
Min time between call next | Defines the time that must elapse between two call next on a Service Point for a specific user (seconds). |
// In your button click handler runOnUiThread(() -> globals.set("android", CoerceJavaToLua.coerce(api)); // rebind String updatedScript = readFile(scriptPath); globals.load(updatedScript).call(); ); Build the release APK normally. The interpreter is now baked in. The script can be placed in internal storage on first launch or downloaded later. Part 4: Advanced Scriptable APK Patterns Pattern A: Script as Full App Logic Some scriptable APKs contain almost no native code except the interpreter and bridge. 90% of the UI and logic is in scripts. This is the "thin host" pattern.
public class ScriptAPI private Context context; public ScriptAPI(Context ctx) context = ctx;
For :
Now in your Lua script (loaded from assets or /sdcard/script.lua ):
// In your button click handler runOnUiThread(() -> globals.set("android", CoerceJavaToLua.coerce(api)); // rebind String updatedScript = readFile(scriptPath); globals.load(updatedScript).call(); ); Build the release APK normally. The interpreter is now baked in. The script can be placed in internal storage on first launch or downloaded later. Part 4: Advanced Scriptable APK Patterns Pattern A: Script as Full App Logic Some scriptable APKs contain almost no native code except the interpreter and bridge. 90% of the UI and logic is in scripts. This is the "thin host" pattern.
public class ScriptAPI private Context context; public ScriptAPI(Context ctx) context = ctx; scriptable apk
For :
Now in your Lua script (loaded from assets or /sdcard/script.lua ): // In your button click handler runOnUiThread(() ->