예제 #1
0
        private void OnApplicationDidBecomeActive(NSNotification notif)
        {
            Linker.CheckStripped();
            if (sendMetrics)
            {
                TrackUser();
            }
            notifier.Flush();

            // We're not interested in any more became active events
            if (notifApplicationDidBecomeActive != null)
            {
                NSNotificationCenter.DefaultCenter.RemoveObserver(notifApplicationDidBecomeActive);
                notifApplicationDidBecomeActive = null;
            }
        }
예제 #2
0
        public void OnActivityResumed(Context ctx)
        {
            activityTracker.OnResume(ctx);
            Context = activityTracker.TopActivity;

            if (!isInitialised)
            {
                Linker.CheckStripped();
                if (sendMetrics)
                {
                    TrackUser();
                }
                notifier.Flush();
                isInitialised = true;
            }
        }