Ejemplo n.º 1
0
        public override async void DidEnterBackground(UIApplication application)
        {
            await LocalIO.SaveDataAsync();

            // Use this method to release shared resources, save user data, invalidate timers and store the application state.
            // If your application supports background exection this method is called instead of WillTerminate when the user quits.
        }
Ejemplo n.º 2
0
        public override async void OnTerminate()
        {
            base.OnTerminate();
            await LocalIO.SaveDataAsync();

            UnregisterActivityLifecycleCallbacks(this);
        }