Class ModelRenderable.Builder

    • Field Detail

      • registryId

        @Nullable
        protected java.lang.Object registryId
      • context

        @Nullable
        protected android.content.Context context
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • getRenderableClass

        protected java.lang.Class<ModelRenderable> getRenderableClass()
      • setSource

        public B setSource​(android.content.Context context,
                           java.util.concurrent.Callable<java.io.InputStream> inputStreamCreator)
      • setSource

        public B setSource​(android.content.Context context,
                           android.net.Uri sourceUri)
      • setSource

        public B setSource​(android.content.Context context,
                           android.net.Uri sourceUri,
                           boolean enableCaching)
      • setSource

        public B setSource​(android.content.Context context,
                           int resource)
      • setRegistryId

        public B setRegistryId​(@Nullable
                               java.lang.Object registryId)
      • setIsFilamentGltf

        public B setIsFilamentGltf​(boolean isFilamentGltf)
      • hasSource

        public java.lang.Boolean hasSource()
        True if a source function will be called during build
      • build

        public java.util.concurrent.CompletableFuture<T> build()
        Constructs a Renderable with the parameters of the builder.
        Returns:
        the constructed Renderable
      • checkPreconditions

        protected void checkPreconditions()