getValueAsInt

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 .

Return

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

Parameters

defaultValue

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

open fun getValueAsInt(defaultValue: Int): Int