1 interface inheriting from IImageSourceService
Microsoft.Maui (1)
ImageSources\IImageSourceService.cs (1)
36 public interface IImageSourceService<in T> : IImageSourceService
1 implementation of IImageSourceService
Microsoft.Maui (1)
ImageSources\ImageSourceService.cs (1)
9 public abstract class ImageSourceService : IImageSourceService
13 references to IImageSourceService
Microsoft.Maui (13)
Hosting\ImageSources\IImageSourceServiceProvider.cs (1)
12 IImageSourceService? GetImageSourceService(Type imageSource);
Hosting\ImageSources\ImageSourceServiceProvider.cs (2)
29 public IImageSourceService? GetImageSourceService(Type imageSource) 32 return (IImageSourceService?)GetService(imageSourceService);
Hosting\ImageSources\ImageSourceServiceProviderExtensions.cs (6)
8 public static IImageSourceService? GetImageSourceService(this IImageSourceServiceProvider provider, IImageSource imageSource) => 11 public static IImageSourceService? GetImageSourceService<T>(this IImageSourceServiceProvider provider) 15 public static IImageSourceService GetRequiredImageSourceService(this IImageSourceServiceProvider provider, IImageSource imageSource) => 18 public static IImageSourceService GetRequiredImageSourceService<T>(this IImageSourceServiceProvider provider) 22 public static IImageSourceService GetRequiredImageSourceService(this IImageSourceServiceProvider provider, Type imageSourceType) 24 var service = provider.GetImageSourceService(imageSourceType);
Hosting\ImageSources\ImageSourceToImageSourceServiceTypeMapping.cs (2)
44 ?? throw new InvalidOperationException($"Unable to find a {nameof(IImageSourceService)} corresponding to {type}. Please register a service for {type} using `ImageSourceServiceCollectionExtensions.AddService`"); 74 throw new InvalidOperationException($"Unable to find a single {nameof(IImageSourceService)} corresponding to {type}. There is an ambiguous match between {bestImageSourceService} ({bestImageSource}) and {imageSourceService} ({imageSource}).");
ImageSources\ImageSourceExtensions.cs (2)
42 var imageSourceService = provider.GetRequiredImageSourceService(imageSource); 46 public static Task<IImageSourceServiceResult<PlatformImage>?> GetPlatformImageAsync(this IImageSourceService imageSourceService, IImageSource? imageSource, IMauiContext mauiContext)