You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Represents a control, derived from [`LoadingView`](xref:Toolkit.Controls.LoadingView) that displays a view that replicates the appearance and behavior of the target platform's native application loading screen.
6
+
Represents a control, derived from [`LoadingView`](xref:Toolkit.Controls.LoadingView) that displays a view that simulates the appearance and behavior of the target platform's native application loading screen.
7
7
8
8
Refer to [`LoadingView`](xref:Toolkit.Controls.LoadingView) for a list of inherited members.
9
9
@@ -20,30 +20,8 @@ A common use case for this control is to display an application loading element
|**Platforms**|`SplashScreenPlatform`| Gets or sets the platform(s) where extended splash screen should be used. This is a flag enumeration, which allows for combining multiple values eg: `"Android,iOS"`| Default value is **All**. Other possible values include **Android**, **iOS**, **Windows**, **WebAssembly**, **Skia**, and **None**. |
28
-
|**SplashIsEnabled**|`bool`| Gets a value representing whether the current environment is to display this splash screen. |**True** if the current platform is included in the **Platforms** property, otherwise **false**. |
29
-
30
-
## Methods
31
-
32
-
| Method | Return Type | Description |
33
-
|--------|-------------|-------------|
34
-
|**Init**|`void`| Initializes the splash screen for the provided `Activity` instance. This static method should be invoked from the **OnCreate** override in `MainActivity`.<br/>**Note: This method only needs to be called on Android**|
35
-
36
23
## Usage
37
24
38
-
### Specify platforms to display splash screen
39
-
40
-
The following code snippet will only display the splash screen on Android and iOS by specifying a `SplashScreenPlatform` value for the `Platforms` property.
41
-
42
-
```xml
43
-
<utu:ExtendedSplashScreenx:Name="Splash"
44
-
Platforms="Android,iOS" />
45
-
```
46
-
47
25
### Setup the splash screen
48
26
49
27
The following code snippet demonstrates a suggested pattern for using the `ExtendedSplashScreen`. The first step is to define a custom `UserControl` that will be used as the main shell for the application content. This control will be used to host the `ExtendedSplashScreen` and the main application content.
@@ -96,7 +74,7 @@ Next, the `Shell` control should be used as the root visual for the `Window` in
With these changes, the splash screen will be displayed when the application first launches and the main application content will be displayed once the loading state is complete.
120
98
121
99
In order to prolong the splash screen display, you can set the `Source` property of the `ExtendedSplashScreen` control to any custom implementation of the `ILoadable` interface. More information on how to use the `ILoadable` interface can be found in the [`LoadingView`](xref:Toolkit.Controls.LoadingView#iloadable) documentation.
122
-
123
-
## Setup on Android
124
-
125
-
To use the `ExtendedSplashScreen` on Android, you need to add the following to your `MainActivity`:
0 commit comments