SpatialModelView
@Composable
A view that asynchronously loads and displays a 3D model from source.
Parameters
source
The data source of a 3D model. For example, you can load a model file located in android assets directory to this SpatialModelView.
modifier
The modifier to be applied to SpatialModelView.
resizability
An enum value which indicates whether the loaded model should resize to fit the SpatialModelView size.
content
A composable function takes the load state as an input. So you can determine what to show according to the state. For example, you can display a loading view as place holder. when state is ModelLoadingState.Loading, and when the model loaded successfully, which means the state is ModelLoadingState.Success, you can display the model by Model function.