コード例 #1
0
ファイル: Adjust.cs プロジェクト: matteocoletta/windows_sdk
 public static void ApplicationLaunching(AdjustConfig adjustConfig)
 {
     if (ApplicationLaunched)
     {
         return;
     }
     AdjustInstance.ApplicationLaunching(adjustConfig, DeviceUtil);
     RegisterLifecycleEvents();
 }
コード例 #2
0
ファイル: Adjust.cs プロジェクト: dimedrol/windows_sdk
 /// <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
ファイル: Adjust.cs プロジェクト: dimedrol/windows_sdk
 /// <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);
 }