getAttachmentById

open fun getAttachmentById(@NonNull context: Context, @NonNull attachmentId: String): BaseAttachment

Call this method to retrieve the attachment represented by BaseAttachment object given a attachmentId.

Return

The attachment represented by BaseAttachment or null

Parameters

context

The application context

attachmentId

The attachment ID