示例#1
0
 /// <summary>
 /// Initialize android user dialogs
 /// </summary>
 public static void Init(Android.App.Activity activity, bool useAppCompat = false) {
     ActivityLifecycleCallbacks.Register(activity);
     if (useAppCompat)
         Instance = new AppCompatUserDialogsImpl(null);
     else
         Instance = new UserDialogsImpl(null);
 }
示例#2
0
 public static void Init(Func <Activity> getActivity)
 {
     if (Instance == null)
     {
         Instance = new UserDialogsImpl(getActivity);
     }
 }
示例#3
0
        public static void Init()
        {
#if __PLATFORM__
            if (Instance == null)
            {
                Instance = new UserDialogsImpl();
            }
#endif
        }
示例#4
0
        public static void Init(Activity activity)
        {
            if (Instance != null)
            {
                return;
            }
            var app = Application.Context.ApplicationContext as Application;

            if (app == null)
            {
                throw new Exception("Application Context is not an application");
            }

            ActivityMonitor.CurrentTopActivity = activity;
            app.RegisterActivityLifecycleCallbacks(new ActivityMonitor());

            Instance = new UserDialogsImpl(() => ActivityMonitor.CurrentTopActivity);
        }
示例#5
0
 public static void Init(Func <Activity> topActivityFactory)
 {
     Instance = new UserDialogsImpl(topActivityFactory);
 }
示例#6
0
 /// <summary>
 /// Initialize android user dialogs
 /// </summary>
 public static void Init(Func<Activity> topActivityFactory) {
     Instance = new UserDialogsImpl(topActivityFactory);
 }
示例#7
0
 /// <summary>
 /// OPTIONAL: Initialize iOS user dialogs with your top viewcontroll function
 /// </summary>
 public static void Init(Func <UIViewController> viewControllerFunc)
 {
     Instance = new UserDialogsImpl(viewControllerFunc);
 }
示例#8
0
 /// <summary>
 /// Initialize Tizen user dialogs
 /// </summary>
 /// <param name="window"></param>
 public static void Init(Window window)
 {
     Instance = new UserDialogsImpl(window);
 }
示例#9
0
 /// <summary>
 /// OPTIONAL: Initialize iOS user dialogs with your top viewcontroll function
 /// </summary>
 public static void Init(Func<UIViewController> viewControllerFunc)
 {
     Instance = new UserDialogsImpl(viewControllerFunc);
 }
示例#10
0
 /// <summary>
 /// OPTIONAL: Initialize macOS user dialogs with your top window function
 /// </summary>
 public static void Init(Func <NSWindow> windowFunc)
 {
     Instance = new UserDialogsImpl(windowFunc);
 }
示例#11
0
        public static void Init() {
			Instance = new UserDialogsImpl();
        }
示例#12
0
 public static void Init(Func<Activity> getActivity) {
     Instance = new UserDialogsImpl(getActivity);
 }
示例#13
0
 /// <summary>
 /// Initialize UWP user dialogs
 /// </summary>
 public static void Init(Func <Action, Task> customDispatcher = null)
 {
     Instance = new UserDialogsImpl(customDispatcher);
 }
示例#14
0
 public static void Init()
 {
     Instance = new UserDialogsImpl();
 }