🧩 SiriWave
An extension for MIT App Inventor 2.A custom component developed by th using Fast, designed to simulate a Siri-like wave animation.
Telegram | GitHub
Blogger | YouTube
Find More Extension
Terms & Conditions
Specifications
Package: io.th.siriwave
Size: 12.72 KB
Version: 1.0
Minimum API Level: 7
Updated On: 2025-05-09T18:30:00Z
Built & documented using: FAST v2.8.4
Library Used On Thanks alexgomes09 to this awesome library.
Download Aix
Aia
siriwaveview.aia (14.6 KB)
Find More info on GitHub
Demo
Blocks
Events:
SiriWave has total 3 events.
OnStart
Triggered when the wave animation starts.
OnStop
Triggered when the wave animation stops.
OnError
Triggered when an error occurs.
Parameter | Type |
---|---|
message | text |
Methods:
SiriWave has total 17 methods.
Initialize
Initialize the SiriWaveView inside a Vertical or Horizontal Arrangement.
Parameter | Type |
---|---|
arrangement | component |
BackgroundColorRGB
Set background color using RGB values
Parameter | Type |
---|---|
red | number |
green | number |
blue | number |
BackgroundColorARGB
Set background color using ARGB values (with alpha transparency). Example: SetBackgroundColorARGB(255, 255, 0, 0) for a fully opaque red background.
Parameter | Type |
---|---|
alpha | number |
red | number |
green | number |
blue | number |
TransparentBackground
Set transparent background
GradientBackground
Set gradient background
Parameter | Type |
---|---|
startColor | number |
endColor | number |
isVertical | boolean |
StartAnimation
Start the wave animation.
StopAnimation
Stop the wave animation.
WaveSpeed
Get current wave animation speed.
- Return type:
number
StrokeWidth
Get current wave stroke width.
- Return type:
number
Reset
Reset the wave to its initial state.
WaveColorRGB
Set the wave color using RGB values (0-255 for each component).
Parameter | Type |
---|---|
red | number |
green | number |
blue | number |
WaveColorARGB
Set the wave color with alpha transparency (0-255 for each component).
Parameter | Type |
---|---|
alpha | number |
red | number |
green | number |
blue | number |
WaveColorBlue
Set wave color to a predefined blue color (#2196F3).
WaveColorRed
Set wave color to a predefined red color (#F44336).
WaveColorGreen
Set wave color to a predefined green color (#4CAF50).
WaveColorWhite
Set wave color to white (#FFFFFF).
WaveColorBlack
Set wave color to black (#000000).
Setters:
SiriWave has total 13 setter properties.
BackgroundColor
Set background color of the view
- Input type:
number
BackgroundAlpha
Set background alpha (transparency) value (0-255)
- Input type:
number
WaveSpeed
Set wave animation speed. Default is 0.05.
- Input type:
number
StrokeWidth
Set wave stroke width. Default is 2.0.
- Input type:
number
WaveHeight
Set the wave height.
- Input type:
number
Amplitude
Set the wave amplitude. Example: Amplitude(0.5) sets the amplitude to 0.5.
- Input type:
number
IdleAmplitude
Set the idle amplitude of the wave. Example: IdleAmplitude(0.5) sets the idle amplitude to 0.5.
- Input type:
number
Frequency
Set the frequency of the waves. Example: Frequency(1.5) sets the frequency to 1.5.
- Input type:
number
WaveNumber
Set the Wave Number of the waves. Example: WaveNumber(2) sets the wave number to 2.
- Input type:
number
PhaseShift
Set the phase shift of the wave animation. Example: PhaseShift(0.15) sets the phase shift to 0.15.
- Input type:
number
WaveVerticalPosition
Set the vertical position of the wave (default is 2).
- Input type:
number
InitialPhaseOffset
Set the initial phase offset of the wave. Example: InitialPhaseOffset(0.0) sets the initial phase offset to 0.0.
- Input type:
number
WaveColor
Set the wave color using a hex string (e.g., #FF0000 for red).
- Input type:
text
Getters:
SiriWave has total 15 getter properties.
White
Returns the color White
- Return type:
number
Black
Returns the color Black
- Return type:
number
Red
Returns the color Red
- Return type:
number
Green
Returns the color Green
- Return type:
number
Blue
Returns the color Blue
- Return type:
number
Transparent
Returns a transparent color
- Return type:
number
WaveHeight
Set the wave height.
- Return type:
number
Amplitude
Set the wave amplitude. Example: Amplitude(0.5) sets the amplitude to 0.5.
- Return type:
number
IdleAmplitude
Set the idle amplitude of the wave. Example: IdleAmplitude(0.5) sets the idle amplitude to 0.5.
- Return type:
number
Frequency
Set the frequency of the waves. Example: Frequency(1.5) sets the frequency to 1.5.
- Return type:
number
WaveNumber
Set the Wave Number of the waves. Example: WaveNumber(2) sets the wave number to 2.
- Return type:
number
PhaseShift
Set the phase shift of the wave animation. Example: PhaseShift(0.15) sets the phase shift to 0.15.
- Return type:
number
WaveVerticalPosition
Set the vertical position of the wave (default is 2).
- Return type:
number
InitialPhaseOffset
Set the initial phase offset of the wave. Example: InitialPhaseOffset(0.0) sets the initial phase offset to 0.0.
- Return type:
number
WaveColor
Set the wave color using a hex string (e.g., #FF0000 for red).
- Return type:
text
Thanks
Techhamara
Feel free to contact us any quarry or suggestions.