AppDemo5.Droid.FormsActivity.OnCreate C# (CSharp) Method

OnCreate() protected method

protected OnCreate ( Bundle bundle ) : void
bundle Bundle
return void
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            var pageName = Intent.Extras.GetString("PageType");
            var fullName = typeof(FormsApp).Namespace + ".Pages." + pageName;
            var pageType = typeof(FormsApp).Assembly.GetType(fullName);

            if (!IsFormsInitialized)
            {
                global::Xamarin.Forms.Forms.Init(this, bundle);
                IsFormsInitialized = true;
            }

            LoadApplication(new FormsApp(pageType));
        }
    }
FormsActivity