ly.img.android.pesdk.backend.exif / ExifTagInfo / getValueAsInt

getValueAsInt

open fun getValueAsInt(defaultValue: Int): Int

Gets the value as an int. If there are more than 1 ints in this value, gets the first one. This method should be used for tags of type #TYPE_UNSIGNED_SHORT, #TYPE_UNSIGNED_LONG.

Parameters

defaultValue - Int: the int to return if tag's value does not exist or cannot be converted to an int.

Return
Int: the tag's value as a int, or the defaultValue.