Skip to content

Instantly share code, notes, and snippets.

@JoeM-RP JoeM-RP/App.xaml.cs
Last active Nov 26, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.