createFile
fun createFile(api: InboxApi, publicMeta: ByteArray, privateMeta: ByteArray, size: Long): InboxFileStreamWriter
Creates a new file in given Inbox.
Return
Instance ready to write to the created Inbox file
Parameters
api
reference to Inbox API
publicMeta
byte array of any arbitrary metadata that can be read by anyone
privateMeta
byte array of any arbitrary metadata that will be encrypted before sending
size
size of data to write
Throws
when inboxApi is not initialized or there's no connection
if there is an error while creating Inbox file metadata
if there is an unknown error while creating inbox file metadata