Exemple #1
0
        public Task <FormsCAKeyFrameAnimation> LoadImageAnimationAsync(
            ImageSource imageSource,
            CancellationToken cancellationToken = new CancellationToken(),
            float scale = 1)
        {
            FormsHandler.Debug(() => $"Delegating animation of {imageSource} to default Xamarin.Forms handler");

            if (imageSource is UriImageSource)
            {
                return(DefaultUriImageSourceHandler.LoadImageAnimationAsync(imageSource, cancellationToken, scale));
            }

            return(DefaultFileImageSourceHandler.LoadImageAnimationAsync(imageSource, cancellationToken, scale));
        }