STWAttachment Api
Functions
Link copied to clipboard
fun addAttachmentOperationListener( context: Context, attachmentId: Int?, cloudServiceListener: CloudServiceListener?): Boolean
Content copied to clipboard
Call this method to add a listener to an attachment for a single operation (download or upload).
Link copied to clipboard
fun clearPendingAttachment(context: Context, callback: OperationListener<MessagingError>?)
Content copied to clipboard
Call this method to delete pending (non downloaded) attachments.
Link copied to clipboard
suspend fun getAttachmentById(context: Context, attachmentId: Int): STWBaseAttachment?
Content copied to clipboard
Link copied to clipboard
fun removeAttachmentOperationListener( context: Context, attachmentId: Int?, cloudServiceListener: CloudServiceListener?)
Content copied to clipboard
Call this method if no longer needed to listen for upload or download operation.
Link copied to clipboard
fun sendPurgeAttachmentRequest(context: Context, callback: STWOperationCallback<*>?)
Content copied to clipboard
Call this method to send purge attachment request
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Call this method when read the audio attachment to update the value of STWBaseAttachment.EXTRA_WAS_PLAYED to true