fromAsset

open fun fromAsset(@NonNull assetName: String): Icon

Creates an Icon using the name of a Bitmap image in the assets directory.

Return

The Icon that was loaded from the asset or null if failed to load.

Parameters

assetName

The name of a Bitmap image in the assets directory.