protected AndroidPresenter(Application application = null, Context context = null, IViewTypeLocator viewLocator = null) : base(viewLocator) { Application = application ?? Locator.Current.GetService <Application>(); Context = context ?? Locator.Current.GetService <Context>(); }
/// <summary> /// Creates a new <see cref="BasePresenter"/>. /// </summary> /// <param name="viewLocator">The <see cref="IViewTypeLocator"/> that should be used to resolve view type information for view models. If null, then the current <see cref="Locator"/> will be used to resolve a value.</param> protected BasePresenter(IViewTypeLocator viewLocator = null) { ViewLocator = viewLocator ?? Locator.Current.GetService <IViewTypeLocator>(); }
public NavigationControllerPresenter(UIWindow window = null, IViewTypeLocator viewLocator = null) : base(viewLocator) { this.window = window ?? Locator.Current.GetService <UIWindow>(); }
public AndroidActivityPresenter(Application application = null, Context context = null, IViewTypeLocator viewLocator = null) : base(application, context, viewLocator) { ActivityCallbacks = new AndroidActivityCallbacks(); Application.RegisterActivityLifecycleCallbacks(ActivityCallbacks); }