loadDrawable

@Nullable
open fun loadDrawable(@NonNull context: @NonNull Context): @Nullable Drawable(source)

Returns a Drawable that can be used to draw the image inside this Icon, constructing it if necessary.

Return

A fresh instance of a drawable for this image, yours to keep.

Parameters

context

Context in which to load the drawable; used to access Resources, for example.