IssueReporterPresence

Whether a report sheet is on screen anywhere in the process.

The reporter has two entry points that cannot see each other: a host composing IssueReporterBottomSheet in its own screen, and the shake gesture, which mounts one from outside any composition. Without a shared answer, shaking the device on a screen that already shows the reporter would stack a second sheet on the first.

One sheet at a time is the whole invariant, so a counter is enough. It is touched only from the main thread, by composition enter and exit, which is also why it cannot be left set: a sheet leaves composition when it is dismissed and when the activity holding it is torn down.

Properties

Link copied to clipboard

True while at least one report sheet is composed.