BuildIt.Bot.Client.Impl.Droid.BotClientActivityBase.OnPause C# (CSharp) Method

OnPause() protected method

protected OnPause ( ) : void
return void
        protected override void OnPause()
        {
            base.OnPause();

            try
            {
                MessagingCenter.Unsubscribe<GcmService, string>(this, Constants.SuccessSubscriptionMsg);
                MessagingCenter.Unsubscribe<GcmService, Exception>(this, Constants.FailureSubscriptionMsg);

                Settings.Instance.IsAppInForeground = false;
            }
            catch (Exception e)
            {
                Debug.WriteLine(e);
            }
        }