Class SKLottieImageSource
Abstract base class for Lottie animation image sources.
[TypeConverter(typeof(SKLottieImageSourceConverter))]
public abstract class SKLottieImageSource : Element, INotifyPropertyChanged, IElementController, IVisualTreeElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IElement
- Inheritance
-
SKLottieImageSource
- Implements
- Derived
- Inherited Members
Constructors
Properties
- IsEmpty
Gets a value indicating whether this image source has no content.
Methods
- FromFile(string)
Creates a Lottie image source from a file path.
- FromStream(Func<CancellationToken, Task<Stream?>>)
Creates a Lottie image source from a stream factory.
- FromStream(Stream)
Creates a Lottie image source from a stream.
- FromUri(Uri)
Creates a Lottie image source from a URI.
- LoadAnimationAsync(CancellationToken)
Loads the Lottie animation asynchronously.
- OnSourceChanged(BindableObject, object, object)
Called when a source property changes on a derived image source to raise the SourceChanged event.
Events
- SourceChanged
Occurs when the underlying source data changes.