Package-level declarations

Types

Link copied to clipboard
internal data class AndroidBonsaiModelLayout(val rootPath: String, val packedTransformerPath: String, val textEncoderPath: String, val tokenizerPath: String, val vaePath: String, val schedulerPath: String)

Resolves Android Bonsai model resources using the same layout rules as the iOS Swift runtime.

Link copied to clipboard

Validates Android Bonsai generation requests before entering the native runtime.

Link copied to clipboard

Android Bonsai runtime entry point backed by the NDK bridge.

Implements the iOS entry point for Bonsai Image generation.

Link copied to clipboard
internal object BonsaiNativeBridge

Thin Kotlin boundary around the Android Bonsai native library.

Link copied to clipboard
data class SiliconDiffusionBonsaiProgress(val current: Int, val total: Int)

Carries progress updates from the Swift Bonsai runtime.

Link copied to clipboard
data class SiliconDiffusionBonsaiRequest(val modelPath: String, val prompt: String, val negativePrompt: String, val samplingSteps: Int, val cfgScale: Float, val width: Int, val height: Int, val seed: String, val batchCount: Int, val allowNsfw: Boolean)

Carries generation data into the Swift Bonsai runtime.

Link copied to clipboard
data class SiliconDiffusionBonsaiResponse(val imageBase64: String?, val errorMessage: String?)

Carries generation output from the Swift Bonsai runtime.

Link copied to clipboard

Defines the Swift-side Bonsai runtime bridge.

Link copied to clipboard

Stores the Swift runtime bridge used by the iOS Bonsai feature implementation.

Properties

Link copied to clipboard
private const val LIBRARY_NAME: String

Functions

Link copied to clipboard