| mobisocial.omlib.api.OmletBlobApi |
APIs for fetching and posting binary content.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract File |
getBlobForHash(byte[] blobHash, boolean frontOfQueue, CancellationSignal cancellationSignal)
Blocking call to return the binary file of a blob given its hash.
| ||||||||||
| abstract void |
getBlobForHash(byte[] blobHash, boolean frontOfQueue, BlobDownloadListener listener, CancellationSignal cancellationSignal)
Asynchronous call to fetch a blob given its hash.
| ||||||||||
| abstract BlobUploadListener.BlobUploadRecord | uploadBlobWithProgress(File file, BlobUploadListener handler, String mimeType, CancellationSignal cancellationToken) | ||||||||||
Blocking call to return the binary file of a blob given its hash.
| FileNotFoundException | |
|---|---|
| NetworkException |
Asynchronous call to fetch a blob given its hash.
| IOException |
|---|