/// <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); }
public static void Init(Func <Activity> getActivity) { if (Instance == null) { Instance = new UserDialogsImpl(getActivity); } }
public static void Init() { #if __PLATFORM__ if (Instance == null) { Instance = new UserDialogsImpl(); } #endif }
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); }
public static void Init(Func <Activity> topActivityFactory) { Instance = new UserDialogsImpl(topActivityFactory); }
/// <summary> /// Initialize android user dialogs /// </summary> public static void Init(Func<Activity> topActivityFactory) { Instance = new UserDialogsImpl(topActivityFactory); }
/// <summary> /// OPTIONAL: Initialize iOS user dialogs with your top viewcontroll function /// </summary> public static void Init(Func <UIViewController> viewControllerFunc) { Instance = new UserDialogsImpl(viewControllerFunc); }
/// <summary> /// Initialize Tizen user dialogs /// </summary> /// <param name="window"></param> public static void Init(Window window) { Instance = new UserDialogsImpl(window); }
/// <summary> /// OPTIONAL: Initialize iOS user dialogs with your top viewcontroll function /// </summary> public static void Init(Func<UIViewController> viewControllerFunc) { Instance = new UserDialogsImpl(viewControllerFunc); }
/// <summary> /// OPTIONAL: Initialize macOS user dialogs with your top window function /// </summary> public static void Init(Func <NSWindow> windowFunc) { Instance = new UserDialogsImpl(windowFunc); }
public static void Init() { Instance = new UserDialogsImpl(); }
public static void Init(Func<Activity> getActivity) { Instance = new UserDialogsImpl(getActivity); }
/// <summary> /// Initialize UWP user dialogs /// </summary> public static void Init(Func <Action, Task> customDispatcher = null) { Instance = new UserDialogsImpl(customDispatcher); }