AssetLoader for I18NBundle instances. The I18NBundle is loaded asynchronously.
Notice that you can't load two bundles with the same base name and different locale or encoding using the same
AssetManager. For example, if you try to load the 2 bundles below
manager.load("i18n/message", I18NBundle.class, new I18NBundleParameter(Locale.ITALIAN));
manager.load("i18n/message", I18NBundle.class, new I18NBundleParameter(Locale.ENGLISH));
the English bundle won't be loaded because the asset manager thinks they are the same bundle since they have the same name.
There are 2 use cases:
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv I18NBundle |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Array | getDependencies(String fileName, FileHandle file, I18NBundleLoader.
Implements abstract com. Returns the assets this asset requires to be loaded first. |
| public void | loadAsync(AssetManager manager, String fileName, FileHandle file, I18NBundleLoader.
Implements abstract com. Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager. |
| public I18NBundle | loadSync(AssetManager manager, String fileName, FileHandle file, I18NBundleLoader.
Implements abstract com. Loads the OpenGL part of the asset. |
| bundle | back to summary |
|---|---|
| pack-priv I18NBundle bundle | |
| I18NBundleLoader | back to summary |
|---|---|
| public I18NBundleLoader(FileHandleResolver resolver) | |
| getDependencies | back to summary |
|---|---|
| public Array Implements abstract com. Doc from com. Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread.
| |
| loadAsync | back to summary |
|---|---|
| public void loadAsync(AssetManager manager, String fileName, FileHandle file, I18NBundleLoader. Implements abstract com. Doc from com. Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.
| |
| loadSync | back to summary |
|---|---|
| public I18NBundle loadSync(AssetManager manager, String fileName, FileHandle file, I18NBundleLoader. Implements abstract com. Doc from com. Loads the OpenGL part of the asset.
| |
| Modifier and Type | Field and Description |
|---|---|
| public final String | |
| public final Locale |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| encoding | back to summary |
|---|---|
| public final String encoding | |
| locale | back to summary |
|---|---|
| public final Locale locale | |
| I18NBundleParameter | back to summary |
|---|---|
| public I18NBundleParameter() | |
| I18NBundleParameter | back to summary |
|---|---|
| public I18NBundleParameter(Locale locale) | |
| I18NBundleParameter | back to summary |
|---|---|
| public I18NBundleParameter(Locale locale, String encoding) | |