fromFile

open fun fromFile(@NonNull fileName: String): Icon

Create an Icon using the name of a Bitmap image file located in the internal storage. In particular, this calls Context#openFileInput(String).

Return

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

See also

<a href="https://developer.android.com/guide/topics/data/data-storage.html#filesInternal">

Using the Internal Storage

Parameters

fileName

The name of the Bitmap image file.