DeviceModelArViewer

Places a device's real-size GLB model in the camera view.

Functions

Link copied to clipboard
abstract fun Content(glb: ByteArray, title: String, notice: String?, onDismiss: () -> Unit, screenMin: FloatArray?, screenMax: FloatArray?, screenFrame: MirrorFrame?, banana: ByteArray?, bananaShown: Boolean, onBananaShownChange: (Boolean) -> Unit)

notice is the model's own copyright line, shown with it. With screenMin/screenMax (the display glass, in model coordinates) and a screenFrame, the live device screen is drawn on the model. banana is the banana's GLB, standing beside the model at its real size while bananaShown; onBananaShownChange shows or hides it.

Link copied to clipboard

False on a phone the AR runtime has ruled out. Asked when a model opens, never at app start.