Page Summary
-
Node.LifecycleListeneris an interface for receiving callbacks during a node's lifecycle events. -
It provides methods to be notified when a node is activated (
onActivated), deactivated (onDeactivated), and updated (onUpdated). -
These methods receive the affected node as a parameter, and
onUpdatedalso provides frame timing information. -
Several classes, like
RotationControllerandScaleController, indirectly implement this interface.
| BaseTransformationController <T extends BaseGesture <T>> | Manipulates the transform properties (i.e. |
| RotationController | Manipulates the rotation of a BaseTransformableNode
using a TwistGestureRecognizer
. |
| ScaleController | Manipulates the Scale of a BaseTransformableNode
using a Pinch PinchGestureRecognizer
. |
| TranslationController | Manipulates the position of a BaseTransformableNode
using a DragGestureRecognizer
. |
Interface definition for callbacks to be invoked when node lifecycle events occur.
Public Methods
| abstract void | |
| abstract void | |
| abstract void |
Public Methods
public abstract void onActivated ( Node node)
Notifies the listener that onActivate()
was called.
Parameters
public abstract void onDeactivated ( Node node)
Notifies the listener that onDeactivate()
was called.
Parameters
public abstract void onUpdated ( Node node, FrameTime frameTime)
Notifies the listener that onUpdate(FrameTime)
was called.
Parameters
| node | the node that was updated |
|---|---|
| frameTime | provides time information for the current frame |

