Package-level declarations

Types

Link copied to clipboard
@Serializable
@SerialName(value = "DeleteFile")
data class DeleteFileEventSchema(val id: String, val trigger: EventTrigger, val events: SerializableImmutableList<EventSchema>?, val fileName: String) : EventSchema

Deletes the file stored under fileName in the client's own file storage.

Link copied to clipboard
@Serializable
enum FileOutputType : Enum<FileOutputType>

Controls the shape of the data delivered as incomingData by file-reading events.

Link copied to clipboard
@Serializable
@SerialName(value = "GetFile")
data class GetFileEventSchema(val id: String, val trigger: EventTrigger, val events: SerializableImmutableList<EventSchema>?, val fileName: String, val outputType: FileOutputType = FileOutputType.ArrayOfBytes) : EventSchema

Reads the file stored under fileName from the client's own file storage and emits its content downstream.

Link copied to clipboard
@Serializable
@SerialName(value = "OpenFilePicker")
data class OpenFilePickerEventSchema(val id: String, val trigger: EventTrigger, val events: SerializableImmutableList<EventSchema>?, val fileType: OpenFilePickerEventSchema.FileType, val pickMode: OpenFilePickerEventSchema.PickMode, val outputType: FileOutputType = FileOutputType.PlatformFile) : EventSchema

Opens the platform file picker and emits the chosen file downstream.

Link copied to clipboard
@Serializable
@SerialName(value = "SaveFile")
data class SaveFileEventSchema(val id: String, val trigger: EventTrigger, val events: SerializableImmutableList<EventSchema>?, val fileName: String, val overrideIfExists: Boolean) : EventSchema

Writes the event's incomingData to fileName in the client's own file storage.