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

getValueAsByte

open fun getValueAsByte(defaultValue: Byte): Byte

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.

Parameters

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

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