ly.img.android.pesdk.backend.exif / Exify / buildTag

buildTag

fun buildTag(tag: Exify.TAG, val: java.lang.Object): ExifTagInfo

Creates a tag for a defined tag constant in the tag's default IFD.

Parameters

tag - Exify.TAG: a tag constant, e.g. {@see #ExifTagKey.IMAGE_WIDTH}.

val - java.lang.Object: the tag's value.

Return
ExifTagInfo: an ExifTag object.

fun buildTag(tagId: int, ifdId: int, val: java.lang.Object): ExifTagInfo

Creates a tag for a defined tag constant in a given IFD if that IFD is allowed for the ExifTagKey. This method will fail anytime the appropriate ExifTagInfo#setValue for this tag's datatype would fail.

Parameters

tagId - int: a tag constant, e.g. {@see #ExifTagKey.IMAGE_WIDTH}.

ifdId - int: the IFD that the tag should be in.

val - java.lang.Object: the value of the tag to set.

Return
ExifTagInfo: an ExifTag object or null if one could not be constructed.

See Also
#buildTag