Share via


ImageSourceExtensions.GetPlatformImageAsync Method

Definition

Overloads

GetPlatformImageAsync(IImageSource, IMauiContext)
GetPlatformImageAsync(IImageSourceService, IImageSource, IMauiContext)

GetPlatformImageAsync(IImageSource, IMauiContext)

Source:
ImageSourceExtensions.cs
Source:
ImageSourceExtensions.cs
public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::Maui::IImageSourceServiceResult<System::Object ^> ^> ^ GetPlatformImageAsync(Microsoft::Maui::IImageSource ^ imageSource, Microsoft::Maui::IMauiContext ^ mauiContext);
public static System.Threading.Tasks.Task<Microsoft.Maui.IImageSourceServiceResult<object>?> GetPlatformImageAsync (this Microsoft.Maui.IImageSource? imageSource, Microsoft.Maui.IMauiContext mauiContext);
static member GetPlatformImageAsync : Microsoft.Maui.IImageSource * Microsoft.Maui.IMauiContext -> System.Threading.Tasks.Task<Microsoft.Maui.IImageSourceServiceResult<obj>>
<Extension()>
Public Function GetPlatformImageAsync (imageSource As IImageSource, mauiContext As IMauiContext) As Task(Of IImageSourceServiceResult(Of Object))

Parameters

imageSource
IImageSource
mauiContext
IMauiContext

Returns

Applies to

GetPlatformImageAsync(IImageSourceService, IImageSource, IMauiContext)

Source:
ImageSourceExtensions.cs
Source:
ImageSourceExtensions.cs
public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::Maui::IImageSourceServiceResult<System::Object ^> ^> ^ GetPlatformImageAsync(Microsoft::Maui::IImageSourceService ^ imageSourceService, Microsoft::Maui::IImageSource ^ imageSource, Microsoft::Maui::IMauiContext ^ mauiContext);
public static System.Threading.Tasks.Task<Microsoft.Maui.IImageSourceServiceResult<object>?> GetPlatformImageAsync (this Microsoft.Maui.IImageSourceService imageSourceService, Microsoft.Maui.IImageSource? imageSource, Microsoft.Maui.IMauiContext mauiContext);
static member GetPlatformImageAsync : Microsoft.Maui.IImageSourceService * Microsoft.Maui.IImageSource * Microsoft.Maui.IMauiContext -> System.Threading.Tasks.Task<Microsoft.Maui.IImageSourceServiceResult<obj>>
<Extension()>
Public Function GetPlatformImageAsync (imageSourceService As IImageSourceService, imageSource As IImageSource, mauiContext As IMauiContext) As Task(Of IImageSourceServiceResult(Of Object))

Parameters

imageSourceService
IImageSourceService
imageSource
IImageSource
mauiContext
IMauiContext

Returns

Applies to