public class RoboAssets extends AbstractAssets<org.robovm.apple.uikit.UIImage>
AbstractAssets.ImageReceiver<I>| Constructor and Description |
|---|
RoboAssets(RoboPlatform platform) |
| Modifier and Type | Method and Description |
|---|---|
protected AsyncImage<org.robovm.apple.uikit.UIImage> |
createAsyncImage(float width,
float height) |
protected Image |
createStaticImage(org.robovm.apple.uikit.UIImage uiImage,
Scale scale) |
byte[] |
getBytesSync(java.lang.String path) |
Sound |
getMusic(java.lang.String path) |
Image |
getRemoteImage(java.lang.String url,
float width,
float height) |
Sound |
getSound(java.lang.String path) |
java.lang.String |
getTextSync(java.lang.String path) |
protected Image |
loadImage(java.lang.String path,
AbstractAssets.ImageReceiver<org.robovm.apple.uikit.UIImage> recv) |
protected java.io.File |
resolvePath(java.lang.String path) |
void |
setPathPrefix(java.lang.String pathPrefix)
Configures the prefix prepended to asset paths before fetching them from the app directory.
|
createErrorImage, createErrorImage, createRemoteErrorImage, getBytes, getImage, getImageSync, getRemoteImage, getText, normalizePath, setErrorLater, setImageLaterpublic RoboAssets(RoboPlatform platform)
public void setPathPrefix(java.lang.String pathPrefix)
public Image getRemoteImage(java.lang.String url, float width, float height)
getRemoteImage in interface AssetsgetRemoteImage in class AbstractAssets<org.robovm.apple.uikit.UIImage>public Sound getSound(java.lang.String path)
public Sound getMusic(java.lang.String path)
getMusic in interface AssetsgetMusic in class AbstractAssets<org.robovm.apple.uikit.UIImage>public java.lang.String getTextSync(java.lang.String path)
throws java.lang.Exception
java.lang.Exceptionpublic byte[] getBytesSync(java.lang.String path)
throws java.lang.Exception
java.lang.Exceptionprotected Image createStaticImage(org.robovm.apple.uikit.UIImage uiImage, Scale scale)
createStaticImage in class AbstractAssets<org.robovm.apple.uikit.UIImage>protected AsyncImage<org.robovm.apple.uikit.UIImage> createAsyncImage(float width, float height)
createAsyncImage in class AbstractAssets<org.robovm.apple.uikit.UIImage>protected Image loadImage(java.lang.String path, AbstractAssets.ImageReceiver<org.robovm.apple.uikit.UIImage> recv)
loadImage in class AbstractAssets<org.robovm.apple.uikit.UIImage>protected java.io.File resolvePath(java.lang.String path)
Copyright © 2014. All Rights Reserved.