Package com.thalesgroup.gemalto.d1.card
Class AssetContent
java.lang.Object
com.thalesgroup.gemalto.d1.card.AssetContent
The Card Asset content includes the MIME type, encoded bytes, width and height of the resource.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration type for MimeType supported. -
Constructor Summary
ConstructorsConstructorDescriptionAssetContent(AssetContent.MimeType mimeType, String encodedData, int width, int height) Public Constructor -
Method Summary
Modifier and TypeMethodDescriptionGets the resource bytes encoded in Base64 format.intGets the height of the resource (if any).Gets the MIME type of this resource in PNG, SVG, or PDF format.intgetWidth()Gets width of the resource (if any).
-
Constructor Details
-
AssetContent
public AssetContent(@NonNull AssetContent.MimeType mimeType, @NonNull String encodedData, int width, int height) Public Constructor
-
-
Method Details
-
getMimeType
Gets the MIME type of this resource in PNG, SVG, or PDF format. -
getEncodedData
Gets the resource bytes encoded in Base64 format. -
getWidth
public int getWidth()Gets width of the resource (if any). Required for PNG images. -
getHeight
public int getHeight()Gets the height of the resource (if any). Required for PNG images.
-