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

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

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