public class JmeSystem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JmeSystem.StorageFolderType |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFullName() |
static Platform |
getPlatform()
Determine which Platform (operating system and architecture) the
application is running on.
|
static java.net.URL |
getPlatformAssetConfigURL() |
static java.net.URL |
getResource(java.lang.String name) |
static java.io.InputStream |
getResourceAsStream(java.lang.String name) |
static SoftTextDialogInput |
getSoftTextDialogInput() |
static java.io.File |
getStorageFolder() |
static java.io.File |
getStorageFolder(JmeSystem.StorageFolderType type) |
static void |
handleErrorMessage(java.lang.String message) |
static void |
handleSettings(AppSettings sourceSettings,
boolean loadFromRegistry) |
static void |
initialize(AppSettings settings) |
static boolean |
isLowPermissions() |
static AssetManager |
newAssetManager() |
static AssetManager |
newAssetManager(java.net.URL configFile) |
static AudioRenderer |
newAudioRenderer(AppSettings settings) |
static JmeContext |
newContext(AppSettings settings,
JmeContext.Type contextType) |
static void |
setErrorMessageHandler(java.util.function.Consumer<java.lang.String> handler) |
static void |
setLowPermissions(boolean lowPerm) |
static void |
setSettingsHandler(java.util.function.BiFunction<AppSettings,java.lang.Boolean,java.lang.Boolean> handler) |
static void |
setSoftTextDialogInput(SoftTextDialogInput input) |
static void |
setSystemDelegate(JmeSystemDelegate systemDelegate) |
static void |
showErrorDialog(java.lang.String message)
Deprecated.
Use JmeSystem.handleErrorMessage(String) instead
|
static boolean |
showSettingsDialog(AppSettings sourceSettings,
boolean loadFromRegistry)
Deprecated.
|
static void |
showSoftKeyboard(boolean show)
Displays or hides the onscreen soft keyboard
|
static boolean |
trackDirectMemory() |
static void |
writeImageFile(java.io.OutputStream outStream,
java.lang.String format,
java.nio.ByteBuffer imageData,
int width,
int height)
Compresses a raw image into a stream.
|
public static void setSystemDelegate(JmeSystemDelegate systemDelegate)
public static java.io.File getStorageFolder()
public static java.io.File getStorageFolder(JmeSystem.StorageFolderType type)
public static java.lang.String getFullName()
public static java.io.InputStream getResourceAsStream(java.lang.String name)
public static java.net.URL getResource(java.lang.String name)
public static boolean trackDirectMemory()
public static void setLowPermissions(boolean lowPerm)
public static boolean isLowPermissions()
public static void setSoftTextDialogInput(SoftTextDialogInput input)
public static void showSoftKeyboard(boolean show)
show
- If true, the keyboard is displayed, if false, the screen is hidden.public static SoftTextDialogInput getSoftTextDialogInput()
public static void writeImageFile(java.io.OutputStream outStream, java.lang.String format, java.nio.ByteBuffer imageData, int width, int height) throws java.io.IOException
outStream
- The stream where to write the image data.format
- The format to use, either "png" or "jpg".imageData
- The image data in Image.Format.RGBA8
format.width
- The width of the image.height
- The height of the image.java.io.IOException
- If outStream throws an exception while writing.public static AssetManager newAssetManager(java.net.URL configFile)
public static AssetManager newAssetManager()
public static Platform getPlatform()
public static JmeContext newContext(AppSettings settings, JmeContext.Type contextType)
public static AudioRenderer newAudioRenderer(AppSettings settings)
public static java.net.URL getPlatformAssetConfigURL()
@Deprecated public static void showErrorDialog(java.lang.String message)
message
- The error message to display. May contain new line
characters.public static void handleErrorMessage(java.lang.String message)
public static void setErrorMessageHandler(java.util.function.Consumer<java.lang.String> handler)
public static void handleSettings(AppSettings sourceSettings, boolean loadFromRegistry)
public static void setSettingsHandler(java.util.function.BiFunction<AppSettings,java.lang.Boolean,java.lang.Boolean> handler)
@Deprecated public static boolean showSettingsDialog(AppSettings sourceSettings, boolean loadFromRegistry)
public static void initialize(AppSettings settings)