public class CppAssetManager
extends java.lang.Object
Constructor and Description |
---|
CppAssetManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAssetPath(String8 path,
Ref<java.lang.Integer> cookie,
boolean appAsLib) |
boolean |
addAssetPath(String8 path,
Ref<java.lang.Integer> cookie,
boolean appAsLib,
boolean isSystemAsset) |
boolean |
addDefaultAssets(java.lang.String systemAssetsPath) |
java.util.List<AssetPath> |
getAssetPaths() |
void |
getConfiguration(Ref<ResTable_config> outConfig) |
static int |
getGlobalCount() |
ResTable |
getResources() |
Asset |
open(java.lang.String fileName,
Asset.AccessMode mode) |
AssetDir |
openDir(java.lang.String dirName) |
Asset |
openNonAsset(int cookie,
java.lang.String fileName,
Asset.AccessMode mode) |
Asset |
openNonAsset(java.lang.String fileName,
Asset.AccessMode mode,
Ref<java.lang.Integer> outCookie) |
void |
setConfiguration(ResTable_config config,
java.lang.String locale) |
public static int getGlobalCount()
public boolean addAssetPath(String8 path, Ref<java.lang.Integer> cookie, boolean appAsLib)
public boolean addAssetPath(String8 path, @Nullable Ref<java.lang.Integer> cookie, boolean appAsLib, boolean isSystemAsset)
public boolean addDefaultAssets(java.lang.String systemAssetsPath)
public void setConfiguration(ResTable_config config, java.lang.String locale)
public void getConfiguration(Ref<ResTable_config> outConfig)
public Asset open(java.lang.String fileName, Asset.AccessMode mode)
public Asset openNonAsset(java.lang.String fileName, Asset.AccessMode mode, Ref<java.lang.Integer> outCookie)
public Asset openNonAsset(int cookie, java.lang.String fileName, Asset.AccessMode mode)
public final ResTable getResources()
public AssetDir openDir(java.lang.String dirName)
public java.util.List<AssetPath> getAssetPaths()