hasCamera

suspend fun hasCamera(context: Context, lensFacing: Int = CameraSelector.LENS_FACING_BACK): Boolean(source)

Returns true if a camera with lensFacing is available. Must be called from a coroutine; returns false on any provider failure.