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
.
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.