Skip to main content
Version: Next

Android

Library that encapsulates remote storage operations to upload/download files

Getting Started

Uploading a file:

HumaObjectStorageManager.getInstance().uploadFile(
filepath, // file path
uploadProgress, // MutableLiveData<Int>, will consume 0-100 progress percentage values
{ s3Object -> /*file uploaded successfully*/ },
{ error -> /*failed to upload the file*/ }
)

Getting file download url:

HumaObjectStorageManager.getInstance().getDownloadUrl(
s3ObjectKey,
s3ObjectBucket,
{ url -> /*download url is ready*/ },
{ error -> /*failed to get download url*/ }
)