public class DocumentUploader
extends java.lang.Object
net.doo.snap.entity.Documents for the given CloudStorage.
Used to run in a background threadCloudUploader| Constructor and Description |
|---|
DocumentUploader() |
DocumentUploader(android.content.Context context,
UploaderProvider uploaderProvider,
DocumentStoreStrategy documentStoreStrategy,
OnFileUploadListener uploadListener,
DocumentLockProvider documentLockProvider)
Used for testing only
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
uploadDocument(UploadInfo info,
CloudStorage target,
OnFileUploadListener onFileUploadListener)
Uploads
net.doo.snap.entity.Document with given docIds to the specified target |
public DocumentUploader()
public DocumentUploader(android.content.Context context,
UploaderProvider uploaderProvider,
DocumentStoreStrategy documentStoreStrategy,
OnFileUploadListener uploadListener,
DocumentLockProvider documentLockProvider)
public boolean uploadDocument(UploadInfo info, CloudStorage target, OnFileUploadListener onFileUploadListener) throws java.io.IOException
net.doo.snap.entity.Document with given docIds to the specified targetinfo - UploadInfo with documents informationtarget - CloudStorage upload targetonFileUploadListener - notified on file upload resulttrue always, all upload restrictions such as battery and mobile network are ignoredjava.io.IOException - in case of network and file errors