cameraViewEx / com.priyankvasa.android.cameraviewex / AspectRatio / parse

parse

fun parse(s: String): AspectRatio

Parse an AspectRatio from a String formatted like "4:3".

Parameters

s - The string representation of the aspect ratio

Exceptions

IllegalArgumentException - when the format is incorrect.

Return
The aspect ratio