Language

Drawable.CreateFromPathAsync(String) Method

Definition

Runs CreateFromPath(String) in a task.

public static System.Threading.Tasks.Task<Android.Graphics.Drawables.Drawable?> CreateFromPathAsync(string? pathName);
static member CreateFromPathAsync : string -> System.Threading.Tasks.Task<Android.Graphics.Drawables.Drawable>

Parameters

pathName
String

The path of the image file to decode, or null.

Returns

A task whose result is the decoded drawable, or null if the path is null or an I/O error occurs.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to