Package-level declarations

Types

Link copied to clipboard
@Serializable
sealed interface CompressionScheme

Mirrors io.github.aryapreetam.cmpimgcompress.CompressionConfig (not @Serializable in the library) so it can be used as an dev.catbit.mosaic.core.data.schemas.event.EventSchema field.

Link copied to clipboard
@Serializable
@SerialName(value = "GetImageFromGallery")
data class GetImageFromGalleryEventSchema(val id: String, val trigger: EventTrigger, val events: SerializableImmutableList<EventSchema>?, val compression: CompressionScheme?, val resize: ImageResizeOptions?, val outputType: GetImageFromGalleryEventSchema.OutputType) : EventSchema

Opens the platform picker restricted to images and emits the chosen image downstream. Runs on the IO dispatcher.

Link copied to clipboard
@Serializable
data class ImageResizeOptions(val maxLongEdgePx: Int? = 2560, val downscaleOnly: Boolean = true, val maintainAspectRatio: Boolean = true)

Mirrors io.github.aryapreetam.cmpimgcompress.ResizeOptions 1:1 so it can be used as an dev.catbit.mosaic.core.data.schemas.event.EventSchema field. Only takes effect alongside a non-null CompressionScheme.

Link copied to clipboard
@Serializable
@SerialName(value = "TakePicture")
data class TakePictureEventSchema(val id: String, val trigger: EventTrigger, val events: SerializableImmutableList<EventSchema>?, val compression: CompressionScheme?, val resize: ImageResizeOptions?, val outputType: TakePictureEventSchema.OutputType) : EventSchema

Opens the camera through the client's CameraManager and emits the captured photo downstream. Runs on the IO dispatcher.