-
- All Implemented Interfaces:
-
androidx.startup.Initializer
public final class ActivityLifecycleInitializer implements Initializer<IApplicationService>
Registers activity lifecycle observation at process start via androidx.startup, before the host app initializes the SDK.
Wrapper SDKs (Flutter/React Native/Capacitor/etc.) call
initWithContextlate — after the first activity has already been created/started/resumed — so observing the lifecycle only fromstartmisses those early callbacks. Registering here lets ApplicationService see the first activity's full lifecycle regardless of when init later happens.This intentionally does NOT initialize the SDK or require an App ID; it only attaches lifecycle observation. App ID / consent gating remains in the runtime
initWithContextpath.
-
-
Constructor Summary
Constructors Constructor Description ActivityLifecycleInitializer()
-
Method Summary
Modifier and Type Method Description IApplicationServicecreate(Context context)List<Class<out Initializer<?>>>dependencies()-
-
Method Detail
-
create
IApplicationService create(Context context)
-
dependencies
List<Class<out Initializer<?>>> dependencies()
-
-
-
-