public class CppAssetManager2 extends Object
Modifier and Type | Class | Description |
---|---|---|
static interface |
CppAssetManager2.PackageFunc |
|
static class |
CppAssetManager2.ResolvedBag |
|
static class |
CppAssetManager2.ResourceName |
|
static class |
CppAssetManager2.Theme |
Constructor | Description |
---|---|
CppAssetManager2() |
public final List<CppApkAssets> GetApkAssets()
public boolean SetApkAssets(List<CppApkAssets> apk_assets, boolean invalidate_caches)
public final DynamicRefTable GetDynamicRefTableForCookie(ApkAssetsCookie cookie)
public void SetConfiguration(ResTable_config configuration)
public Set<ResTable_config> GetResourceConfigurations(boolean exclude_system, boolean exclude_mipmap)
public Set<String> GetResourceLocales(boolean exclude_system, boolean merge_equivalent_languages)
public Asset Open(String filename, Asset.AccessMode mode)
public Asset OpenNonAsset(String filename, Asset.AccessMode mode, Ref<ApkAssetsCookie> out_cookie)
public Asset OpenNonAsset(String filename, Asset.AccessMode mode)
public Asset OpenNonAsset(String filename, ApkAssetsCookie cookie, Asset.AccessMode mode)
public void ForEachPackage(CppAssetManager2.PackageFunc func)
public boolean GetResourceName(int resid, CppAssetManager2.ResourceName out_name)
public ApkAssetsCookie GetResource(int resid, boolean may_be_bag, short density_override, Ref<ResourceTypes.Res_value> out_value, Ref<ResTable_config> out_selected_config, Ref<Integer> out_flags)
public ApkAssetsCookie ResolveReference(ApkAssetsCookie cookie, Ref<ResourceTypes.Res_value> in_out_value, Ref<ResTable_config> in_out_selected_config, Ref<Integer> in_out_flags, Ref<Integer> out_last_reference)
public final CppAssetManager2.ResolvedBag GetBag(int resid)
public int GetResourceId(String resource_name, String fallback_type, String fallback_package)
public CppAssetManager2.Theme NewTheme()