Table of Contents

Method FromStream

Namespace
SkiaSharp.Extended.UI.Controls
Assembly
SkiaSharp.Extended.UI.dll

FromStream(Func<CancellationToken, Task<Stream?>>)

Creates a Lottie image source from a stream factory.

public static object FromStream(Func<CancellationToken, Task<Stream?>> getter)

Parameters

getter Func<CancellationToken, Task<Stream>>

A factory function that provides the animation stream.

Returns

object

An SKStreamLottieImageSource.

FromStream(Stream)

Creates a Lottie image source from a stream.

public static object FromStream(Stream stream)

Parameters

stream Stream

The stream containing the animation data.

Returns

object

An SKStreamLottieImageSource.