downloadAttachment

open fun downloadAttachment(    @NonNull context: Context,     @NonNull attachmentId: String,     @Nullable operationCallback: STWOperationCallback<MessagingError>)

Call this method to download an attachment (except location attachment) given attachment Id.

See also

Parameters

context

The application context

attachmentId

Attachment Id to be downloaded

operationCallback

This callback will be invoked when the attachments is successfully downloaded.