fromFile

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

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.

Parameters

fileName

The name of the Bitmap image file.

See also