Skip to content

Platform Setup Notes

Yun Chen edited this page Apr 23, 2019 · 9 revisions

Android

Setup

You must init the effect in MainActivity class under your android project to make it works.

        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            
            //need this line to init effect in android
            Xamarin.KeyboardHelper.Platform.Droid.Effects.Init(this);

            LoadApplication(new App());
        }

iOS

Setup

You must init the effect in AppDelegate class under your iOS project to make it works.

        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            //need this line to init effect in iOS
            Xamarin.KeyboardHelper.Platform.iOS.Effects.Init();

            LoadApplication(new App());
            return base.FinishedLaunching(app, options);
        }
Clone this wiki locally