new Attachment Blocking
fun newAttachmentBlocking(path: String, metadata: Map<String, String> = emptyMap()): DittoAttachment
Non-suspend version of newAttachment. Provides a simpler API to Java where Kotlin Coroutines are not typically used.
Java sees this as newAttachment(String)
and newAttachment(String, Map)
.
Since
4.6.0
fun newAttachmentBlocking(inputStream: InputStream, metadata: Map<String, String> = emptyMap()): DittoAttachment
Non-suspend version of newAttachment. Provides a simpler API to Java where Kotlin Coroutines are not typically used.
Java sees this as newAttachment(InputStream)
and newAttachment(InputStream, Map)
.
Since
4.6.0