Skip to content

Instantly share code, notes, and snippets.

@JoeM-RP
Created November 25, 2018 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeM-RP/16b54dd97f6a73d9902b457eca96630a to your computer and use it in GitHub Desktop.
Save JoeM-RP/16b54dd97f6a73d9902b457eca96630a to your computer and use it in GitHub Desktop.
Demonstrates available constructor overrides in Prism 7
/// <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)
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment