SpringSystem class
This is a wrapper for BaseSpringSystem that provides the convenience of automatically providing the AndroidSpringLooper dependency in {@link SpringSystem#create}.
- Inheritance
-
- Object
- BaseSpringSystem
- SpringSystem
Constructors
- SpringSystem(SpringLooper springLooper)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mSpringLooper ↔ SpringLooper
-
latefinalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
activateSpring(
String springId) → void -
This is used internally by the {@link Spring}s created by this {@link BaseSpringSystem} to notify
it has reached a state where it needs to be iterated. This will add the spring to the list of
active springs on this system and start the iteration if the system was idle before this call.
@param springId the id of the Spring to be activated
inherited
-
addListener(
SpringSystemListener newListener) → void -
Add new listener object.
@param newListener listener
inherited
-
advance(
double deltaTime) → void -
update the springs in the system
@param deltaTime delta since last update in millis
inherited
-
createSpring(
) → Spring -
create a spring with a random uuid for its name.
@return the spring
inherited
-
deregisterSpring(
Spring spring) → void -
Deregisters a Spring from this BaseSpringSystem, so it won't be iterated anymore. The Spring should
not be used anymore after doing this.
inherited
-
dispose(
) → void -
getAllSprings(
) → List< Spring> -
return all the springs in the simulator
@return all the springs
inherited
-
getIsIdle(
) → bool -
check if the system is idle
@return is the system idle
inherited
-
getSpringById(
String id) → Spring? -
get a spring by name
@param id id of the spring to retrieve
@return Spring with the specified key
inherited
-
loop(
double elapsedMillis) → void -
loop the system until idle
@param elapsedMillis elapsed milliseconds
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerSpring(
Spring spring) → void -
Registers a Spring to this BaseSpringSystem so it can be iterated if active.
@param spring the Spring to register
inherited
-
removeAllListeners(
) → void -
Remove all listeners.
inherited
-
removeListener(
SpringSystemListener listenerToRemove) → void -
Remove listener object.
@param listenerToRemove listener
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
TickerProvider vsync) → SpringSystem - Create a new SpringSystem providing the appropriate constructor parameters to work properly in an Android environment. @return the SpringSystem