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