Summary
Loads assets compiled into the application binary.
- Namespace
- Avalonia
.Platform - Implementing Types
graph BT
Type["IAssetLoader"]
class Type type-node
Implementing0["AssetLoader"]-.->Type
click Implementing0 "/api/Avalonia.Shared.PlatformSupport/AssetLoader"
Syntax
public interface IAssetLoader
Methods
Name | Value | Summary |
---|---|---|
Exists |
bool |
Checks if an asset with the specified URI exists.
|
GetAssembly |
Assembly |
Extracts assembly information from URI
|
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.
|
|
SetDefaultAssembly |
void |
We need a way to override the default assembly selected by the host platform
because right now it is selecting the wrong one for PCL based Apps. The
AssetLoader needs a refactor cause right now it lives in 3+ platforms which
can all be loaded on Windows.
|