Touch screen, returns the x, y position and touch effect.
EnableTouch
Starts listening for screen touches and creates effects.
DisableTouch
Disables the touch overlay.
StartInfinite
Starts infinite effect at specified coordinates with specified unit.
Unit:
- dp
- px
StopInfinite
Stops the infinite effect.
ShowEffectAt
Creates a single effect at the specified coordinates with specified unit.
Unit:
- dp
- px
InfiniteInterval
Sets the interval between effects in infinite mode (milliseconds).
Color
Sets the effect color.
Size
Sets the size of the effect.
Duration
Sets the duration of the effect animation in milliseconds.
EffectType
Sets the current effect type. Options: ripple, particles, rings.
Touched
Triggered when the screen is touched. Returns coordinates in both pixels (px) and density-independent pixels (dp).
v1.1 Oct 16, 2025.
Update:
-
I added the
unit
parameter to theShowEffectAt
andStartInfinite
functions, which accepts "dp" or "px".- You can now enter values in pixels or density.
-
The
Touched
event will return both pixel and density values:pxX
,pxY
,dpX
anddpY
.
ScreenTouchEffects.aia (115.1 KB)
joejsanz.joedevscreentoucheffects.aix (15.5 KB)
JDK: 11
Minimum API Level: 21
Updated On: 2025-10-16T07:00:00Z
Built using: FAST-CLI v5.2.1-premium
Thanks.