SkeleApplicationBuilder
- Kind: Class
- Namespace: SkeleKit
Methods
BuildCore
Builds and returns the configured application instance.
Returns
SkeleApplication: The fully built application.
Exceptions
InvalidOperationException: Thrown if a shell layout style has not been configured.
ConfigureAppConfiguration
Adds sources to the shared application configuration.
| Parameter | Summary |
|---|---|
Action<IConfigurationBuilder> configure | Configures application configuration sources. |
Returns
SkeleApplicationBuilder: The builder instance for chaining calls.
ConfigureLogging
Configures Microsoft logging for application and framework services.
| Parameter | Summary |
|---|---|
Action<ILoggingBuilder> configure | Adds and configures logging providers. |
Returns
SkeleApplicationBuilder: The builder instance for chaining calls.
SinglePage
Configures the app to use as a single page without navigation chrome.
| Type parameter | Summary |
|---|---|
ContentView TView | The type of the root view. |
Returns
SkeleApplicationBuilder: The builder instance for chaining calls.
Stack
Configures the app to use a stack-based navigation hierarchy.
| Parameter | Summary |
|---|---|
(optional) bool preferLargeTitles | Whether to enable large, collapsing titles. |
| Type parameter | Summary |
|---|---|
ContentView TView | The type of the root view. |
Returns
SkeleApplicationBuilder: The builder instance for chaining calls.
Tabs
Configures the app to use bottom navigation tabs with each tab having its own navigation stack.
| Parameter | Summary |
|---|---|
Action<TabsBuilder> configure | Declares the tabs. |
Returns
SkeleApplicationBuilder: The builder instance for chaining calls.
UseAppearance
Sets the initial app-wide light or dark appearance.
| Parameter | Summary |
|---|---|
Appearance appearance | The initial appearance. |
Returns
SkeleApplicationBuilder: The builder instance for chaining calls.
UseImageLoader
Sets how Image loads remote URLs.
| Parameter | Summary |
|---|---|
IImageLoader loader | The loader to use. |
Returns
SkeleApplicationBuilder: The builder instance for chaining calls.
UseLifecycle
Registers app lifecycle hooks, invoked as the app leaves for and returns from the background.
| Parameter | Summary |
|---|---|
(optional) Action? background | Invoked when the app enters the background, or null. |
(optional) Action? foreground | Invoked when the app returns to the foreground, or null. |
Returns
SkeleApplicationBuilder: The builder instance for chaining calls.
UsePages
Registers or overrides pages by hand.
| Parameter | Summary |
|---|---|
Action<PagesBuilder> configure | Registers the pages. |
(optional) bool replace | Whether existing pages should be replaced. |
Returns
SkeleApplicationBuilder: The builder instance for chaining calls.
UseServices
Registers core dependencies and application services into the container.
| Parameter | Summary |
|---|---|
Action<IServiceCollection> configure | Adds services to the container. |
Returns
SkeleApplicationBuilder: The builder instance for chaining calls.
UseTheme
Registers implicit styles applied to every view of a type as it is built.
Returns
SkeleApplicationBuilder: The builder instance for chaining calls.
UseTint
Sets the initial app-wide tint inherited by windows, chrome and views.
| Parameter | Summary |
|---|---|
Color tint | The tint color. |
Returns
SkeleApplicationBuilder: The builder instance for chaining calls.