SkeleApplicationBuilder

Configures services, pages, appearance and the application shell.
public sealed class SkeleApplicationBuilder

Methods

BuildCore

Builds and returns the configured application instance.

public SkeleApplication BuildCore()

Returns

Exceptions

ConfigureAppConfiguration

Adds sources to the shared application configuration.

public SkeleApplicationBuilder ConfigureAppConfiguration(
  Action<IConfigurationBuilder> configure)
ParameterSummary
Action<IConfigurationBuilder> configureConfigures application configuration sources.

Returns

ConfigureLogging

Configures Microsoft logging for application and framework services.

public SkeleApplicationBuilder ConfigureLogging(
  Action<ILoggingBuilder> configure)
ParameterSummary
Action<ILoggingBuilder> configureAdds and configures logging providers.

Returns

SinglePage

Configures the app to use as a single page without navigation chrome.

public SkeleApplicationBuilder SinglePage<TView>() where TView : ContentView
Type parameterSummary
ContentView TViewThe type of the root view.

Returns

Stack

Configures the app to use a stack-based navigation hierarchy.

public SkeleApplicationBuilder Stack<TView>(
  bool preferLargeTitles = false) where TView : ContentView
ParameterSummary
(optional) bool preferLargeTitlesWhether to enable large, collapsing titles.
Type parameterSummary
ContentView TViewThe type of the root view.

Returns

Tabs

Configures the app to use bottom navigation tabs with each tab having its own navigation stack.

public SkeleApplicationBuilder Tabs(
  Action<TabsBuilder> configure)
ParameterSummary
Action<TabsBuilder> configureDeclares the tabs.

Returns

UseAppearance

Sets the initial app-wide light or dark appearance.

public SkeleApplicationBuilder UseAppearance(
  Appearance appearance)
ParameterSummary
Appearance appearanceThe initial appearance.

Returns

UseImageLoader

Sets how Image loads remote URLs.

public SkeleApplicationBuilder UseImageLoader(
  IImageLoader loader)
ParameterSummary
IImageLoader loaderThe loader to use.

Returns

UseLifecycle

Registers app lifecycle hooks, invoked as the app leaves for and returns from the background.

public SkeleApplicationBuilder UseLifecycle(
  Action? background = null,
  Action? foreground = null)
ParameterSummary
(optional) Action? backgroundInvoked when the app enters the background, or null.
(optional) Action? foregroundInvoked when the app returns to the foreground, or null.

Returns

UsePages

Registers or overrides pages by hand.

public SkeleApplicationBuilder UsePages(
  Action<PagesBuilder> configure,
  bool replace = true)
ParameterSummary
Action<PagesBuilder> configureRegisters the pages.
(optional) bool replaceWhether existing pages should be replaced.

Returns

UseServices

Registers core dependencies and application services into the container.

public SkeleApplicationBuilder UseServices(
  Action<IServiceCollection> configure)
ParameterSummary
Action<IServiceCollection> configureAdds services to the container.

Returns

UseTheme

Registers implicit styles applied to every view of a type as it is built.

public SkeleApplicationBuilder UseTheme(
  Action<Theme> configure)
ParameterSummary
Action<Theme> configureRegisters the implicit styles.

Returns

UseTint

Sets the initial app-wide tint inherited by windows, chrome and views.

public SkeleApplicationBuilder UseTint(
  Color tint)
ParameterSummary
Color tintThe tint color.

Returns