InvocationManager

class InvocationManager(scope: CoroutineScope, sensorSource: ShakeSensorSource, onInvocation: () -> Unit = {}) : DefaultLifecycleObserver

Process-lifecycle-aware invocation manager (AND-LIFE-03, D-16).

Listens for shake events (or any invocation trigger exposed by ShakeSensorSource) only while the app is in the foreground. Registered against ProcessLifecycleOwner.get().lifecycle by com.mcpfeedback.sdk.internal.SdkComponent.configure.

Threat mitigations:

  • T-33-13: listenJob is cancelled in onStop; no leaked collectors across foreground/background cycles.

  • T-33-15 (ordering): independent of other observers — no start/stop ordering assumption.

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope, sensorSource: ShakeSensorSource, onInvocation: () -> Unit = {})

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun onStart(owner: LifecycleOwner)
Link copied to clipboard
open override fun onStop(owner: LifecycleOwner)