findLoadManifest

abstract fun findLoadManifest(candidates: List<Pair<ManifestFormat, String>>): AssetBundle?

Find and load an asset manifest embedded within the scope of the current application, using the provided set of candidates as locations in the classpath to search.

Each pair carries a ManifestFormat and path, indicating the expected format of the bundle.

Return

Decoded AssetBundle from one of the candidate locations; which location is lost, and any decoding errors are returned as null.

Parameters

candidates

Candidate locations for the server asset manifest.


open fun findLoadManifest(): AssetBundle?

Find and load an asset manifest embedded within the scope of the current application; search in the default path locations, and if no manifest is found, or no manifest could safely be decoded, return null.

Return

Decoded asset manifest, or null if no manifest could be found, or a manifest was found and could not be safely de-serialized.