foldingFeature

fun foldingFeature(): StateFlow<FoldingFeature?>

For use outside composable functions. init must be called first!

Captures the raw, unclassified data from the video about the state of a foldable hinge, if it is present. All updates are pushed with real time updates via a Kotlin StateFlow object.

Return

Raw data about the device's foldable hinge, pushed in real time via a Kotlin StateFlow object.

Throws

If the init function isn't called before this one.