IImageSourceServiceCollection Interface

Definition

C#
public interface IImageSourceServiceCollection : Microsoft.Extensions.DependencyInjection.IServiceCollection, Microsoft.Maui.Hosting.IMauiServiceCollection, System.Collections.Generic.ICollection<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IList<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>
Implements

Methods

Extension Methods

AddCompatibilityServices(IImageSourceServiceCollection, Assembly[])
AddService<TImageSource>(IImageSourceServiceCollection, Func<IServiceProvider,IImageSourceService<TImageSource>>)

Registers an image service with the underlying service container via AddSingleton.

AddService<TImageSource,TImageSourceService>(IImageSourceServiceCollection)

Registers an image service with the underlying service container via AddSingleton.

Applies to

Product Versions
.NET MAUI 8, 9