com.salesforce.android.chat.core.FileTransferAssistant |
Enables sending a file to an Agent, which will be attached to a support case.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract Async<Float> |
uploadFile(byte[] fileBytes, String contentType)
Upload a file and receive the upload progress as values 0.0f to 1.0f asynchronously via a
com.salesforce.android.service.common.utilities.control.Async.ResultHandler instance.
|
Upload a file and receive the upload progress as values 0.0f to 1.0f asynchronously via a com.salesforce.android.service.common.utilities.control.Async.ResultHandler instance.
fileBytes | A byte array that contains a file to upload. |
---|---|
contentType | The RFC2045 media type identifier (mime type) for the data in the byte array. Example: "image/png" |
Async
instance that will provide file upload progress as a result.