/** * 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); }
@Override public void invoke(final long window, final int width, final int height) { settings.setResolution(width, height); listener.reshape(width, height); } });
/** * 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); }
public void setSettings(AppSettings settings) { this.settings.copyFrom(settings); this.settings.setRenderer(AppSettings.LWJGL_OPENGL2); if (actualContext != null){ actualContext.setSettings(settings); } }
public static AssetManager newAssetManager() { checkDelegate(); return systemDelegate.newAssetManager(); }
public static boolean isLowPermissions() { checkDelegate(); return systemDelegate.isLowPermissions(); }
public static boolean showSettingsDialog(AppSettings sourceSettings, final boolean loadFromRegistry) { checkDelegate(); return systemDelegate.showSettingsDialog(sourceSettings, loadFromRegistry); }
public static String getFullName() { checkDelegate(); return systemDelegate.getFullName(); }
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 void initialize(AppSettings settings) { checkDelegate(); systemDelegate.initialize(settings); }
public static Platform getPlatform() { checkDelegate(); return systemDelegate.getPlatform(); }
public static SoftTextDialogInput getSoftTextDialogInput() { checkDelegate(); return systemDelegate.getSoftTextDialogInput(); }
public static synchronized File getStorageFolder(StorageFolderType type) { checkDelegate(); return systemDelegate.getStorageFolder(type); }
public static URL getPlatformAssetConfigURL() { checkDelegate(); return systemDelegate.getPlatformAssetConfigURL(); }
public static boolean trackDirectMemory() { checkDelegate(); return systemDelegate.trackDirectMemory(); }
@Override public void invoke(final long window, final int width, final int height) { settings.setResolution(width, height); listener.reshape(width, height); } });
public static AssetManager newAssetManager(URL configFile) { checkDelegate(); return systemDelegate.newAssetManager(configFile); }