/** * Displays or hides the onscreen soft keyboard * @param show If true, the keyboard is displayed, if false, the screen is hidden. */ public static void showSoftKeyboard(boolean show) { checkDelegate(); systemDelegate.showSoftKeyboard(show); }
/** * Displays an error message to the user in whichever way the context * feels is appropriate. If this is a headless or an offscreen surface * context, this method should do nothing. * * @param message The error message to display. May contain new line * characters. */ public static void showErrorDialog(String message){ checkDelegate(); systemDelegate.showErrorDialog(message); }
public static void setLowPermissions(boolean lowPerm) { checkDelegate(); systemDelegate.setLowPermissions(lowPerm); }
public static JmeContext newContext(AppSettings settings, JmeContext.Type contextType) { checkDelegate(); return systemDelegate.newContext(settings, contextType); }
public static boolean trackDirectMemory() { checkDelegate(); return systemDelegate.trackDirectMemory(); }
public static void setSoftTextDialogInput(SoftTextDialogInput input) { checkDelegate(); systemDelegate.setSoftTextDialogInput(input); }
public static Platform getPlatform() { checkDelegate(); return systemDelegate.getPlatform(); }
public static synchronized File getStorageFolder(StorageFolderType type) { checkDelegate(); return systemDelegate.getStorageFolder(type); }
public static String getFullName() { checkDelegate(); return systemDelegate.getFullName(); }
public static AssetManager newAssetManager(URL configFile) { checkDelegate(); return systemDelegate.newAssetManager(configFile); }
public static boolean isLowPermissions() { checkDelegate(); return systemDelegate.isLowPermissions(); }
public static SoftTextDialogInput getSoftTextDialogInput() { checkDelegate(); return systemDelegate.getSoftTextDialogInput(); }
public static AssetManager newAssetManager() { checkDelegate(); return systemDelegate.newAssetManager(); }
public static boolean showSettingsDialog(AppSettings sourceSettings, final boolean loadFromRegistry) { checkDelegate(); return systemDelegate.showSettingsDialog(sourceSettings, loadFromRegistry); }
public static InputStream getResourceAsStream(String name) { checkDelegate(); return systemDelegate.getResourceAsStream(name); }
public static URL getResource(String name) { checkDelegate(); return systemDelegate.getResource(name); }
public static AudioRenderer newAudioRenderer(AppSettings settings) { checkDelegate(); return systemDelegate.newAudioRenderer(settings); }
public static URL getPlatformAssetConfigURL() { checkDelegate(); return systemDelegate.getPlatformAssetConfigURL(); }
public static void initialize(AppSettings settings) { checkDelegate(); systemDelegate.initialize(settings); }
/** * Compresses a raw image into a stream. * * The encoding is performed via system libraries. On desktop, the encoding * is performed via ImageIO, whereas on Android, is done via the * Bitmap class. * * @param outStream The stream where to write the image data. * @param format The format to use, either "png" or "jpg". * @param imageData The image data in {@link Image.Format#RGBA8} format. * @param width The width of the image. * @param height The height of the image. * @throws IOException If outStream throws an exception while writing. */ public static void writeImageFile(OutputStream outStream, String format, ByteBuffer imageData, int width, int height) throws IOException { checkDelegate(); systemDelegate.writeImageFile(outStream, format, imageData, width, height); }