Example #1
0
        static Anticipator()
        {
            s_singleton = new Anticipator();

            s_singleton.AnticipateClassConstruction(typeof(Resource.Layout));
            s_singleton.AnticipateClassConstruction(typeof(Resource.Attribute));
            s_singleton.AnticipateGetter(() => Forms.SdkInt);
        }
        protected FormsAppCompatActivity()
        {
            _previousState = AndroidApplicationLifecycleState.Uninitialized;
            _currentState  = AndroidApplicationLifecycleState.Uninitialized;
            PopupManager.Subscribe(this);

            var anticipator = new Anticipator();

            anticipator.AnticipateClassConstruction(typeof(Resource.Layout));
            anticipator.AnticipateClassConstruction(typeof(Resource.Attribute));
        }