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

buildTag

open fun buildTag(tag: Exify.TAG!, val: Any!): 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 - Any!: the tag's value.

Return
ExifTagInfo!: an ExifTag object.

open fun buildTag(tagId: Int, ifdId: Int, val: Any!): 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 - Any!: the value of the tag to set.

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

See Also
#buildTag