Companion

object Companion

Functions

Link copied to clipboard
fun file(uri: Uri, name: String? = null, size: Long? = null, mimeType: String? = null): AIMessageAttachment

A file to open, from the web or this device.

Link copied to clipboard
fun from(uri: Uri, name: String? = null, size: Long? = null, mimeType: String? = null): AIMessageAttachment

An attachment of the file at uri, of the kind its type says: an image for an image this device can show, and a file otherwise. Such as for the files the person picked.

Link copied to clipboard
fun image(uri: Uri, name: String? = null): AIMessageAttachment

An image to load, from the web or this device.

fun image(bitmap: ImageBitmap, name: String? = null): AIMessageAttachment

An image the app holds, such as a photo the person just took. Pass a small one, the size it shows at: it stays in memory while the conversation shows it.