Drawable.CreateFromPathAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.