This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using DryIoc; | |
using Prism; | |
using Prism.DryIoc; | |
using Prism.Ioc; | |
using Prism.Logging; | |
using Xamarin.Forms; | |
namespace PrismForms | |
{ | |
public partial class App : PrismApplication | |
{ | |
/// <summary> | |
/// Initializes a new instance of the <see cref="T:PrismForms.App"/> class. | |
/// </summary> | |
/// <remarks> | |
/// Used when no additional parmeters are needed | |
/// </remarks> | |
public App() | |
{ | |
} | |
/// <summary> | |
/// Initializes a new instance of the <see cref="T:PrismForms.App"/> class. | |
/// </summary> | |
/// <param name="platformInitializer">Platform initializer.</param> | |
/// <remarks> | |
/// Used when platfrom specific initializer is required - this will be used if you are using | |
/// very platform-focused libraries like ARKit that you want to resolve using DI | |
/// </remarks> | |
public App(IPlatformInitializer platformInitializer) : base(platformInitializer) | |
{ | |
} | |
/// <summary> | |
/// Initializes a new instance of the <see cref="T:PrismForms.App"/> class. | |
/// </summary> | |
/// <param name="platformInitializer">Platform initializer.</param> | |
/// <param name="setFormsDependencyResolver">If set to <c>true</c> set forms dependency resolver.</param> | |
public App(IPlatformInitializer platformInitializer, bool setFormsDependencyResolver) : base(platformInitializer, setFormsDependencyResolver) | |
{ | |
} | |
public static new App Current => Application.Current as App; | |
/* Omitted */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment