Package pro.streem.ar.sceneform
Interface Node.LifecycleListener
-
- Enclosing class:
- Node
public static interface Node.LifecycleListenerInterface definition for callbacks to be invoked when node lifecycle events occur.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonActivated(Node node)Notifies the listener thatNode.onActivate()was called.voidonDeactivated(Node node)Notifies the listener thatNode.onDeactivate()was called.voidonUpdated(Node node, FrameTime frameTime)Notifies the listener thatNode.onUpdate(FrameTime)was called.
-
-
-
Method Detail
-
onActivated
void onActivated(Node node)
Notifies the listener thatNode.onActivate()was called.- Parameters:
node- the node that was activated
-
onUpdated
void onUpdated(Node node, FrameTime frameTime)
Notifies the listener thatNode.onUpdate(FrameTime)was called.- Parameters:
node- the node that was updatedframeTime- provides time information for the current frame
-
onDeactivated
void onDeactivated(Node node)
Notifies the listener thatNode.onDeactivate()was called.- Parameters:
node- the node that was deactivated
-
-