addAttachment

open fun addAttachment(    @NonNull context: Context,     @NonNull processUUID: String,     @NonNull srcFile: File,     @NonNull newFileName: String,     @Nullable callback: STWAddAttachmentCallback<MyBusinessError>)

Saves the given file as an attachment in the process directory.

See also

Parameters

context

Context The application context.

processUUID

String the process uuid

srcFile

File to save as an attachment.

newFileName

String the file name of the saved attachment.

callback

STWAddAttachmentCallback to handle the operation events.


open fun addAttachment(    @NonNull context: Context,     @NonNull processUUID: String,     @NonNull bitmap: Bitmap,     @NonNull fileName: String,     @Nullable callback: STWAddAttachmentCallback<MyBusinessError>)

Saves the given bitmap as an attachment in the process directory.

See also

Parameters

context

Context The application context.

processUUID

String the process uuid

bitmap

Bitmap to save as an attachment.

fileName

String the file name of the saved attachment.

callback

STWAddAttachmentCallback to handle the operation events.