Ejemplo n.º 1
0
        public static void Init(Application application)
        {
            if (Initialized)
            {
                return;
            }

            _lifecycleListener = new ActivityLifecycleContextListener();
            application.RegisterActivityLifecycleCallbacks(_lifecycleListener);
            ConfigureFlutnetRuntime();
            Initialized = true;
        }
Ejemplo n.º 2
0
        public static void Init(Activity activity)
        {
            if (Initialized)
            {
                return;
            }

            _lifecycleListener = new ActivityLifecycleContextListener {
                Activity = activity
            };
            activity.Application.RegisterActivityLifecycleCallbacks(_lifecycleListener);
            ConfigureFlutnetRuntime();
        }