Edit

CachingResourceProvider Class

Definition

A resource provider proxy that caches loaded image assets.

public sealed class CachingResourceProvider : SkiaSharp.Resources.ResourceProvider
Inheritance

Remarks

This provider wraps another ResourceProvider and caches loaded image assets to avoid repeated loading of the same resources.

Use this provider to improve performance when an animation references the same image assets multiple times.

Constructors

Name Description
CachingResourceProvider(ResourceProvider)

Creates a caching proxy around the specified resource provider.

Methods

Name Description
Load(String, String)

Loads a generic resource specified by path and name, and returns it as data.

(Inherited from ResourceProvider)
Load(String)

Loads a generic resource by name and returns it as data.

(Inherited from ResourceProvider)

Applies to