Package com.thalesgroup.gemalto.d1.card
Class AssetContent
- java.lang.Object
-
- com.thalesgroup.gemalto.d1.card.AssetContent
-
public class AssetContent extends Object
The Card Asset content resource, including mimeType, encoded bytes, width and height of this resource.- Since:
- 1.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AssetContent.MimeType
Enumeration type for MimeType supported
-
Constructor Summary
Constructors Constructor Description AssetContent(AssetContent.MimeType mimeType, String encodedData, int width, int height)
Public Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEncodedData()
Get resource bytes encoded in base64 formatint
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).
-
-
-
Constructor Detail
-
AssetContent
public AssetContent(@NonNull AssetContent.MimeType mimeType, @NonNull String encodedData, int width, int height)
Public Constructor
-
-
Method Detail
-
getMimeType
@NonNull public AssetContent.MimeType getMimeType()
Get the mime type of this resource, whether it is PNG, SVG, or PDF.
-
getWidth
public int getWidth()
Get width of the resource (if any). Required for PNG images
-
getHeight
public int getHeight()
Get height of the resource (if any). Required for PNG images
-
-