public class RoboAssets extends AbstractAssets<org.robovm.apple.uikit.UIImage>
| Constructor and Description |
|---|
RoboAssets(RoboPlatform platform) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytesSync(java.lang.String path) |
Sound |
getMusic(java.lang.String path) |
Image |
getRemoteImage(java.lang.String url,
float width,
float height) |
java.io.InputStream |
getResource(java.lang.String path)
Returns the asset at
path as an input stream. |
Sound |
getSound(java.lang.String path) |
java.lang.String |
getTextSync(java.lang.String path) |
void |
setPathPrefix(java.lang.String pathPrefix)
Configures the prefix prepended to asset paths before fetching them from the app directory.
|
getBytes, getImage, getImageSync, getRemoteImage, getTextpublic RoboAssets(RoboPlatform platform)
public void setPathPrefix(java.lang.String pathPrefix)
public java.io.InputStream getResource(java.lang.String path)
throws java.io.IOException
path as an input stream.java.io.IOExceptionpublic 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.ExceptionCopyright © 2018. All Rights Reserved.