IAssetLoader Interface
Unstable.
Note: This API is unstable and may change in a future release.
Loads assets compiled into the application binary.
Definition
Namespace: Avalonia.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
[UnstableAttribute("IAssetLoader interface and AvaloniaLocator usage is considered unstable. Please use AssetLoader static class instead.")]
public interface IAssetLoader
<UnstableAttribute("IAssetLoader interface and AvaloniaLocator usage is considered unstable. Please use AssetLoader static class instead.")>
Public Interface IAssetLoader
[<UnstableAttribute("IAssetLoader interface and AvaloniaLocator usage is considered unstable. Please use AssetLoader static class instead.")>]
type IAssetLoader = interface end
Methods
Exists(Uri, Uri) | Checks if an asset with the specified URI exists. |
GetAssembly(Uri, Uri) | Extracts assembly information from URI |
GetAssets(Uri, Uri) | Gets all assets of a folder and subfolders that match specified uri. |
InvalidateAssemblyCache() | Removes all assemblies from the cache. |
InvalidateAssemblyCache(String) | Removes the assembly from the cache. |
Open(Uri, Uri) | Opens the asset with the requested URI. |
OpenAndGetAssembly(Uri, Uri) | Opens the asset with the requested URI and returns the asset stream and the assembly containing the asset. |
SetDefaultAssembly(Assembly) | 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. |