
implementation("io.github.jamal-wia:kmptoolkit-proximity:1.1.0")A proximity sensor seam: ProximitySensor reports whether something is right up against the screen as a cold, event-driven Flow<Boolean>, and ProximityRule folds a raw distance reading into that boolean as a pure, directly-testable function. Pick this module if shared Kotlin code wants to know when a phone goes to the ear without writing the TYPE_PROXIMITY SensorEventListener dance on Android — it declares no permission of its own, and is honest that iOS has no equivalent API to draw on.