- Sceneform SDK for Android
was open sourced and archived ( github.com/google-ar/sceneform-android-sdk
) with version 1.16.0.
- This site ( developers.google.com/sceneform
) serves as the documentation archive for the previous version, Sceneform SDK for Android
1.15.0.
- Do not use version 1.17.0 of the Sceneform Maven artifacts
.
- The 1.17.1 Maven artifacts can be used. Other than the version, however, the 1.17.1 artifacts are identical to the 1.15.0 artifacts.
Scene.OnUpdateListener
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
ArFragment
|
Implements AR Required ArFragment. |
BaseArFragment
|
The AR fragment brings in the required view layout and controllers for common AR features. |
Interface definition for a callback to be invoked once per frame immediately before the scene
is updated.
Public Methods
abstract
void
onUpdate
( FrameTime
frameTime) Called once per frame right before the Scene is updated.
Public Methods
public
abstract
void
onUpdate
( FrameTime
frameTime)
Called once per frame right before the Scene is updated.
Parameters
frameTime
provides time information for the current frame
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eScene.OnUpdateListener\u003c/code\u003e is an interface used to receive callbacks once per frame before the scene is updated.\u003c/p\u003e\n"],["\u003cp\u003eIt has one abstract method, \u003ccode\u003eonUpdate\u003c/code\u003e, which is called with a \u003ccode\u003eFrameTime\u003c/code\u003e object providing timing information.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eArFragment\u003c/code\u003e and \u003ccode\u003eBaseArFragment\u003c/code\u003e are known indirect subclasses that utilize this listener.\u003c/p\u003e\n"]]],["The `Scene.OnUpdateListener` interface provides a callback, `onUpdate`, that triggers once per frame, just before the scene updates. Indirect subclasses include `ArFragment` and `BaseArFragment`. `ArFragment` implements AR functionality, while `BaseArFragment` includes the view layout and controllers for common AR features. The `onUpdate` method receives a `FrameTime` object containing timing data for the current frame. This allows actions to be performed each frame.\n"],null,["# Scene.OnUpdateListener\n\npublic static interface **Scene.OnUpdateListener** \n\n|---|---|---|\n| Known Indirect Subclasses [ArFragment](/sceneform/reference/com/google/ar/sceneform/ux/ArFragment), [BaseArFragment](/sceneform/reference/com/google/ar/sceneform/ux/BaseArFragment) |----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | [ArFragment](/sceneform/reference/com/google/ar/sceneform/ux/ArFragment) | Implements AR Required ArFragment. | | [BaseArFragment](/sceneform/reference/com/google/ar/sceneform/ux/BaseArFragment) | The AR fragment brings in the required view layout and controllers for common AR features. | |||\n\nInterface definition for a callback to be invoked once per frame immediately before the scene\nis updated. \n\n### Public Methods\n\n|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract void | [onUpdate](/sceneform/reference/com/google/ar/sceneform/Scene.OnUpdateListener#onUpdate(com.google.ar.sceneform.FrameTime))([FrameTime](/sceneform/reference/com/google/ar/sceneform/FrameTime) frameTime) Called once per frame right before the Scene is updated. |\n\nPublic Methods\n--------------\n\n#### public abstract void\n**onUpdate**\n([FrameTime](/sceneform/reference/com/google/ar/sceneform/FrameTime) frameTime)\n\nCalled once per frame right before the Scene is updated. \n\n##### Parameters\n\n| frameTime | provides time information for the current frame |\n|-----------|-------------------------------------------------|"]]