fun setTagDefinition(tagId: short, defaultIfd: int, tagType: short, defaultComponentCount: short, allowedIfds: kotlin.Array<int>): int
Creates a new tag definition in this ExifInterface object for a given TID and default IFD. Creating a definition with the same TID and default IFD as a previous definition will override it.
tagId
- short: the TID for the ExifTagKey.
defaultIfd
- int: the default IFD for the ExifTagKey.
tagType
- short: the type of the tag (see ExifTagInfo#getDataType()
).
defaultComponentCount
- short: the number of elements of this tag's type in the tags value.
allowedIfds
- kotlin.Array<int>: the IFD's this tag is allowed to be put in.
Return
int: the defined tag constant (e.g. {@see #ExifTagKey.IMAGE_WIDTH}) or {@see #ExifTagKey.NULL} if the definition could not be made.