• 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.

LoadGltfListener

public interface LoadGltfListener

Interface callbacks for events that occur when loading a gltf file into a renderable.

Nested Classes

enum LoadGltfListener.GltfLoadStage Defines the current stage of the load operation, each value supersedes the previous. 

Public Methods

abstract void
abstract void
onFinishedLoadingModel(long durationMs)
abstract void
onFinishedReadingFiles(long durationMs)
abstract void
abstract void
reportBytesDownloaded(long bytes)
abstract void
abstract void
setModelSize(float modelSizeMeters)

Public Methods

public abstract void onFinishedFetchingMaterials ()

public abstract void onFinishedLoadingModel (long durationMs)

Parameters
durationMs

public abstract void onFinishedReadingFiles (long durationMs)

Parameters
durationMs

public abstract void onReadingFilesFailed (Exception exception)

Parameters
exception

public abstract void reportBytesDownloaded (long bytes)

Parameters
bytes

public abstract void setLoadingStage (LoadGltfListener.GltfLoadStage stage)

Parameters
stage

public abstract void setModelSize (float modelSizeMeters)

Parameters
modelSizeMeters