public class AssetContent extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AssetContent.MimeType
Enumeration type for MimeType supported
|
Constructor and Description |
---|
AssetContent(AssetContent.MimeType mimeType,
String encodedData,
int width,
int height)
(internal only)
|
Modifier and Type | Method and Description |
---|---|
String |
getEncodedData()
Get resource bytes encoded in base64 format
|
int |
getHeight()
Get height of the resource (if any).
|
AssetContent.MimeType |
getMimeType()
Get the mime type of this resource, whether it is PNG, SVG, or PDF.
|
int |
getWidth()
Get width of the resource (if any).
|
public AssetContent(@NonNull AssetContent.MimeType mimeType, @NonNull String encodedData, int width, int height)
@NonNull public AssetContent.MimeType getMimeType()
@NonNull public String getEncodedData()
public int getWidth()
public int getHeight()