getValueAsByte

Gets the value as a byte. If there are more than 1 bytes in this value, gets the first byte. This method should be used for tags of type TYPE_UNDEFINED or TYPE_UNSIGNED_BYTE .

Return

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

Parameters

defaultValue

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

open fun getValueAsByte(defaultValue: Byte): Byte