patchbayLifecycleDetails function

Map<String, Object?> patchbayLifecycleDetails(
  1. PatchbayLifecycleStateReader read
)

Rejection details for a request refused because the App is not resumed.

*LifecycleNotResumed used to travel with nothing attached, so an operator learned only that the gate had closed — not whether the device was asleep, the window merely unfocused, or the App on its way out. The state is the one fact that separates "wake the screen", "click the window" and "the App is gone", and it is engine state rather than App data, so naming it leaks nothing.

Implementation

Map<String, Object?> patchbayLifecycleDetails(
  PatchbayLifecycleStateReader read,
) => <String, Object?>{'lifecycleState': read()?.name ?? 'unknown'};