BuildIt.MvvmCross.UI.Views.BaseStateEnabledPage.SaveStateBundle C# (CSharp) Method

SaveStateBundle() protected method

protected SaveStateBundle ( NavigationEventArgs navigationEventArgs, IMvxBundle bundle ) : void
navigationEventArgs NavigationEventArgs
bundle IMvxBundle
return void
        protected override void SaveStateBundle(NavigationEventArgs navigationEventArgs, IMvxBundle bundle)
        {
            try
            {
                base.SaveStateBundle(navigationEventArgs, bundle);

                foreach (var data in bundle.Data)
                {
                    State[data.Key] = data.Value;
                }
            }
            catch (Exception exception)
            {
                Debug.WriteLine(exception.Message);
            }

        }