示例#1
0
 /// <summary>
 ///  Tell Adjust that the application is activated (brought to foreground) or deactivated (sent to background).
 /// </summary>
 private static void VisibilityChanged(CoreWindow sender, VisibilityChangedEventArgs args)
 {
     if (firstVisibilityChanged)
     {
         firstVisibilityChanged = false;
         return;
     }
     if (args.Visible)
     {
         AdjustInstance.ApplicationActivated();
     }
     else
     {
         AdjustInstance.ApplicationDeactivated();
     }
 }
示例#2
0
        /// <summary>
        ///  Tell Adjust that the application is activated (brought to foreground).
        ///
        ///  This is used to keep track of the current session state.
        ///  This should only be used if the VisibilityChanged mechanism doesn't work
        /// </summary>
        public static void ApplicationActivated()
        {
            if (_isApplicationActive)
            {
                return;
            }

            _isApplicationActive = true;
            AdjustInstance.ApplicationActivated();
        }
示例#3
0
 /// <summary>
 ///  Tell Adjust that the application is activated (brought to foreground).
 ///
 ///  This is used to keep track of the current session state.
 ///  Call this in the Application_Activated method of your System.Windows.Application class.
 /// </summary>
 public static void ApplicationActivated()
 {
     AdjustInstance.ApplicationActivated();
 }