java.lang.Object | ||
↳ | com.google.api.client.http.AbstractInputStreamContent | |
↳ | fm.audiobox.core.utils.MediaContent |
A wrapper content type for MediaFile. Used for upload purpose.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MediaContent(String type, File file)
Instantiates a new Media content.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
File |
getFile()
Gets file.
| ||||||||||
InputStream | getInputStream() | ||||||||||
long | getLength() | ||||||||||
boolean | retrySupported() | ||||||||||
void |
setUploadProgressListener(NetworkProgressListener networkProgressListener)
Sets upload progress listener.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Instantiates a new Media content.
type | Content type or for none |
---|---|
file | file |
FileNotFoundException | the file not found exception |
---|
Gets file.
FileNotFoundException |
---|
Sets upload progress listener.
networkProgressListener | the upload progress listener |
---|