parseValue

open fun parseValue(@NonNull s: String): Int

Returns the parsed value of the unit. Returns default value if the input is malformed. Returns maximum value if the input value is over the maximum value. Returns minimum value if the input value is under the minimum value.

Return

parsed value of the unit.

Parameters

s

Input value to parse. (For example "10 pt").