DeviceModelRepository

The flasher's real-size 3D device models (/models/devices/<name>.glb), one per device illustration. A hardware entry's image file names its model by extension swap, and only some illustrations have one.

Functions

Link copied to clipboard
abstract suspend fun getModel(imageFile: String): ByteArray?

The GLB bytes for imageFile, or null when there is no model or it could not be fetched.

Link copied to clipboard
abstract suspend fun hasModel(imageFile: String): Boolean

Whether a model exists for imageFile (an entry of DeviceHardware.images). False on any network failure.