/// <summary> /// Requests an overlay to open /// </summary> /// <param name="overlayType">Overlay type.</param> public void RequestOverlay <T>(SObject viewData) where T : AbstractView { RequestOverlay(typeof(T), viewData); }
/// <summary> /// Requests the view with a loading view. /// This is useful if the screen you are moving to is very heavy and takes a long time to load. /// You can open an overlay to mask this loading while you wait. /// Once the loading is complete, the overlay will close. /// </summary> /// <param name="screenType">Screen type.</param> /// <param name="loadingViewType">Loading view type.</param> /// <param name="viewData">ViewData.</param> public void RequestViewWithLoadingOverlay(Type screenType, Type loadingViewType, SObject viewData) { //load the loading view as an overlay, then load the screen behind it. // when screen is known to be "done", close overlay. _loadingOverlay = loadingViewType; _loadingOverlayTargetView = screenType; _loadingOverlayTargetViewData = viewData; RequestOverlay(_loadingOverlay); }
/// <summary> /// Request to reopen an already open view /// </summary> /// <param name="viewData">View data.</param> /// <typeparam name="T">The 1st type parameter.</typeparam> public void RequestForceReopenView <T>(SObject viewData) where T : AbstractView { RequestForceReopenView(typeof(T), viewData); }
/// <summary> /// Requests the view with a loading view. /// This is useful if the screen you are moving to is very heavy and takes a long time to load. /// You can open an overlay to mask this loading while you wait. /// Once the loading is complete, the overlay will close. /// </summary> /// <param name="viewData">View data.</param> /// <typeparam name="T">The 1st type parameter.</typeparam> /// <typeparam name="L">The 2nd type parameter.</typeparam> public void RequestViewWithLoadingOverlay <T, L>(SObject viewData) where T : AbstractView where L : AbstractView { RequestViewWithLoadingOverlay(typeof(T), typeof(L), viewData); }