FileUploader
interface FileUploader
The FileUploader is responsible for sending and deleting files from given channel
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun sendFile(channelType: String, channelId: String, userId: String, file: File): Result<UploadedFile>
Uploads a file for the given channel.
abstract fun sendFile(channelType: String, channelId: String, userId: String, file: File, callback: ProgressCallback): Result<UploadedFile>
Uploads a file for the given channel. Progress can be accessed via callback.
Link copied to clipboard
abstract fun sendImage(channelType: String, channelId: String, userId: String, file: File): Result<UploadedFile>
Uploads an image for the given channel.
abstract fun sendImage(channelType: String, channelId: String, userId: String, file: File, callback: ProgressCallback): Result<UploadedFile>
Uploads an image for the given channel. Progress can be accessed via callback.