focalPx

fun focalPx(viewWidth: Float, viewHeight: Float): Float(source)

Focal length in view pixels. The preview fills the view and crops the overflow, so the scale is the larger of the two axis ratios; the sensor's long side lies along the view's long side whatever the display rotation.