コード例 #1
0
        /// <summary>
        ///     Initialize the messaging service.
        /// </summary>
        /// <param name="application">The application.</param>
        /// <param name="messagingService">A custom messaging service.</param>
        /// <param name="activityLifecycleCallbacks">Custom activity lifecycle callbacks.</param>
        public static void Init(Application application, IMessagingService messagingService, IDialogMessagingActivityLifecycleCallbacks activityLifecycleCallbacks)
        {
            if (InterceptingService.Instance == null)
            {
                InterceptingService.Init();
            }

            // Register an event handler so that we can notify the messaging service about inflated views.
            InterceptingService.Instance.ViewInflated += InterceptingService_ViewInflated;

            DroidInit.Init(application, messagingService, activityLifecycleCallbacks);
        }
コード例 #2
0
 /// <summary>
 ///     Initialize the messaging service.
 /// </summary>
 /// <param name="application">The application.</param>
 /// <param name="messagingService">A custom messaging service.</param>
 /// <param name="activityLifecycleCallbacks">Custom activity lifecycle callbacks.</param>
 public static void Init(Application application, IMessagingService messagingService, IDialogMessagingActivityLifecycleCallbacks activityLifecycleCallbacks)
 {
     DroidInit.Init(application, messagingService, activityLifecycleCallbacks, new MvvmCrossViewManager());
 }