add Attachment
open fun addAttachment( @NonNull context: Context, @NonNull processUUID: String, @NonNull srcFile: File, @NonNull newFileName: String, @Nullable callback: STWAddAttachmentCallback<MyBusinessError>)
Content copied to clipboard
Saves the given file as an attachment in the process directory.
See also
Parameters
context
Context The application context.
process UUID
String the process uuid
src File
File to save as an attachment.
new File Name
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>)
Content copied to clipboard
Saves the given bitmap as an attachment in the process directory.
See also
Parameters
context
Context The application context.
process UUID
String the process uuid
bitmap
Bitmap to save as an attachment.
file Name
String the file name of the saved attachment.
callback
STWAddAttachmentCallback to handle the operation events.