Package zendesk.belvedere
Class MediaResult
- java.lang.Object
-
- zendesk.belvedere.MediaResult
-
- All Implemented Interfaces:
- java.lang.Comparable<MediaResult>
public class MediaResult extends java.lang.Object implements java.lang.Comparable<MediaResult>
Model object, used to return results.
-
-
Field Summary
Fields Modifier and Type Field and Description static <any>
CREATOR
static long
UNKNOWN_VALUE
-
Constructor Summary
Constructors Constructor and Description MediaResult(java.io.File file, Uri uri, Uri originalUri, java.lang.String name, java.lang.String mimeType, long size, long width, long height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
compareTo(MediaResult o)
int
describeContents()
boolean
equals(java.lang.Object o)
java.io.File
getFile()
Get the resolvedFile
.long
getHeight()
Gets the height of the image.java.lang.String
getMimeType()
Get the mime type of the filejava.lang.String
getName()
Get the name of the file.Uri
getOriginalUri()
Get the originalUri
to the media.long
getSize()
Gets the file size.Uri
getUri()
Get theUri
to theFile
.long
getWidth()
Gets the width of the image.int
hashCode()
void
writeToParcel(Parcel dest, int flags)
-
-
-
Field Detail
-
UNKNOWN_VALUE
public static final long UNKNOWN_VALUE
- See Also:
- Constant Field Values
-
CREATOR
public static final <any> CREATOR
-
-
Method Detail
-
getFile
public java.io.File getFile()
Get the resolvedFile
.- Returns:
- The
File
-
getUri
public Uri getUri()
Get theUri
to theFile
.
The returnedUri
points to theBelvedereFileProvider
and could be used to open theFile
in a 3rd party app or share it with other apps.- Returns:
- The
Uri
-
getOriginalUri
public Uri getOriginalUri()
Get the originalUri
to the media.
This might not always be available or be invalid. This is the original
Uri
before it was resolved.- Returns:
- the original
Uri
-
describeContents
public int describeContents()
-
getName
public java.lang.String getName()
Get the name of the file.
-
getMimeType
public java.lang.String getMimeType()
Get the mime type of the file
-
getSize
public long getSize()
Gets the file size.
-
getWidth
public long getWidth()
Gets the width of the image.
-
getHeight
public long getHeight()
Gets the height of the image.
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(MediaResult o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<MediaResult>
-
-