2020-10-24 01:28:58 +03:00
|
|
|
// Licensed to the .NET Foundation under one or more agreements.
|
|
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
#nullable enable
|
|
|
|
|
|
|
|
using System;
|
2022-05-25 20:18:30 +03:00
|
|
|
|
|
|
|
#if WINAPPSDK
|
|
|
|
using Microsoft.UI.Composition;
|
|
|
|
#else
|
2020-10-24 01:28:58 +03:00
|
|
|
using Windows.UI.Composition;
|
2022-05-25 20:18:30 +03:00
|
|
|
#endif
|
2020-10-24 01:28:58 +03:00
|
|
|
|
2022-05-25 20:18:30 +03:00
|
|
|
namespace CommunityToolkit.WinUI.Lottie
|
2020-10-24 01:28:58 +03:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// A delegate that returns an <see cref="ICompositionSurface"/> for the given image uri.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>A surface for the image referenced by <paramref name="imageUri"/>
|
|
|
|
/// or null.</returns>
|
|
|
|
/// <remarks>Users can provide an <see cref="ImageAssetHandler"/> in order to
|
2022-05-25 20:18:30 +03:00
|
|
|
/// provide a bitmap for an image referenced in a Lottie file. </remarks>
|
2020-10-24 01:28:58 +03:00
|
|
|
public delegate ICompositionSurface? ImageAssetHandler(Uri imageUri);
|
|
|
|
}
|