示例#1
0
 public static void ApplicationLaunching(AdjustConfig adjustConfig)
 {
     if (ApplicationLaunched)
     {
         return;
     }
     AdjustInstance.ApplicationLaunching(adjustConfig, DeviceUtil);
     RegisterLifecycleEvents();
 }
示例#2
0
 /// <summary>
 ///  Tell Adjust that the application was launched.
 ///
 ///  This is required to initialize Adjust. Call this in the Application_Launching
 ///  method of your Windows.UI.Xaml.Application class.
 /// </summary>
 /// <param name="adjustConfig">
 ///   The object that configures the adjust SDK. <seealso cref="AdjustConfig"/>
 /// </param>
 public static void ApplicationLaunching(AdjustConfig adjustConfig)
 {
     AdjustInstance.ApplicationLaunching(adjustConfig, DeviceUtil);
     try
     {
         Window.Current.CoreWindow.VisibilityChanged += VisibilityChanged;
     }
     catch (Exception)
     {
         AdjustFactory.Logger.Debug("Not possible to detect automatically if the app goes to the background");
     }
 }
示例#3
0
 /// <summary>
 ///  Tell Adjust that the application was launched.
 ///
 ///  This is required to initialize Adjust. Call this in the Application_Launching
 ///  method of your System.Windows.Application class.
 /// </summary>
 /// <param name="adjustConfig">
 ///   The object that configures the adjust SDK. <seealso cref="AdjustConfig"/>
 /// </param>
 public static void ApplicationLaunching(AdjustConfig adjustConfig)
 {
     AdjustInstance.ApplicationLaunching(adjustConfig, DeviceUtil);
 }