Object Data Types

Beside basic data types, FLX provides a set of object data types. New object types will be introduced in future when FLX evolves. For instance, new extensions and APIs that are added to FLX typically require new object types to be introduced.

  1. JSON object: FLX provide functions to convert FLX’s Map to JSON and vice versa.
  2. Regex object: based on Java’s regular expression patterns.
  3. Markup Text object: Markup text object is based on Markwon markup library for Android.
  4. RGBA Color object.
  5. Date object based on Java’s java.util.Date class.
  6. Built-in Icon objects based on material icons used in Android.
  7. Image Resource object is used to define images that can be displayed in applet UIs. See Resources.
  8. Audio Resource object that used to playback audio and sound effects. See Resources.
  9. Java’s Class object is used for integration with Java code and for Java objects reflection and inspection. See Using Reflection API.

Object data types are typically provided with specific bottom sheet based pickers for adding them to visual code, and bottom sheet based editors for modifying them. See Visual Code Editor.

Getter Functions

For some object data types there are property getter functions provided as convenience. Currently, FLX provides getter functions for the following object types:


Getter FunctionDescription
.yearThe year of the Date.
.monthThe month of the year of the Date.
.dayThe year of the Date.
.hourThe hour [0, 23] of the date represented by the Date.
.minuteThe number of minutes past the current hour represented by the Date.
.secondThe number of seconds past the current minute represented by the Date.
.millisecondThe number of milliseconds past the current second represented by the Date.
Date object getters functions


Getter Function
.valueGets the value payload of HttpResult as a String.
.valueAsJsonGets the value payload of HttpResult as a JSONObject.
HttpResult object getter functions