public static void Init(Application application) { if (Initialized) { return; } _lifecycleListener = new ActivityLifecycleContextListener(); application.RegisterActivityLifecycleCallbacks(_lifecycleListener); ConfigureFlutnetRuntime(); Initialized = true; }
public static void Init(Activity activity) { if (Initialized) { return; } _lifecycleListener = new ActivityLifecycleContextListener { Activity = activity }; activity.Application.RegisterActivityLifecycleCallbacks(_lifecycleListener); ConfigureFlutnetRuntime(); }