コード例 #1
0
ファイル: Anticipator.cs プロジェクト: zkolar/Xamarin.Forms
        static Anticipator()
        {
            s_singleton = new Anticipator();

            s_singleton.AnticipateClassConstruction(typeof(Resource.Layout));
            s_singleton.AnticipateClassConstruction(typeof(Resource.Attribute));
            s_singleton.AnticipateGetter(() => Forms.SdkInt);
        }
コード例 #2
0
        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));
        }