Edit

DataUriResourceProvider Class

Definition

A resource provider that can load resources from data URIs embedded in Lottie JSON files.

public sealed class DataUriResourceProvider : SkiaSharp.Resources.ResourceProvider
Inheritance

Remarks

Data URIs allow embedding image and font data directly in the Lottie JSON file using base64 encoding. This provider parses and decodes such embedded resources.

Use the constructor with a fallback provider to handle both embedded data URIs and external resources.

Constructors

Name Description
DataUriResourceProvider(Boolean)

Creates a data URI resource provider without a fallback provider.

DataUriResourceProvider(ResourceProvider, Boolean)

Creates a data URI resource provider with an optional fallback 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