Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public interface Feedback.Sink
Receives what a reaction plays.
Methods
public abstract void sound(String name, double x, double y) | Plays a named sound. |
public abstract void burst(double x, double y, int count, int color) | Bursts particles. |
Method details
sound
public abstract void sound(String name, double x, double y)Plays a named sound.
Parameters
nameString- the reaction’s sound name
xdouble- where in the world, pixels
ydouble- where in the world, pixels
burst
public abstract void burst(double x, double y, int count, int color)Bursts particles.
Parameters
xdouble- where in the world, pixels
ydouble- where in the world, pixels
countint- how many
colorint- ARGB