unloadAllSafely
fun unloadAllSafely(onError: (Asset<*>, Exception) -> Unit = { _, exception -> exception.ignore() })
Unloads all of the assets in this group, catching any exceptions. If any of the assets are dependencies of assets outside this group, or if they were loaded more than once, their load counts will only be decremented by one and the associated AssetManager will retain them.
Parameters
onError
Called in response to each caught exception. By default, the exceptions are ignored.