canDownloadContent

open fun canDownloadContent(@NonNull event: Event, id: Long, automatically: Boolean): Boolean

Check if attachment can be downloaded.

Return

true if the attachment has downloadable content which has not been downloaded yet or whose download is not in progress at the moment. false otherwise.

Parameters

event

Event with the attachment.

id

The attachment id to query.

See also