Summary
Loads assets compiled into the application binary.
- Namespace
- Avalonia
.Shared .PlatformSupport - Interfaces
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["IAssetLoader"]
click Interface0 "/api/Avalonia.Platform/IAssetLoader"
Type["AssetLoader"]
class Type type-node
Syntax
public class AssetLoader : IAssetLoader
Constructors
Name | Summary |
---|---|
AssetLoader |
Initializes a new instance of the AssetLoader class.
|
Methods
Name | Value | Summary |
---|---|---|
Exists |
bool |
Checks if an asset with the specified URI exists.
|
GetAssembly |
Assembly | |
GetAssets |
IEnumerable |
Gets all assets of a folder and subfolders that match specified uri.
|
Open |
Stream |
Opens the asset with the requested URI.
|
OpenAndGetAssembly |
Opens the asset with the requested URI and returns the asset stream and the
assembly containing the asset.
|
|
Register |
void |
static
|
SetDefaultAssembly |
void |
Sets the default assembly from which to load assets for which no assembly is specified.
|