Package com.jme3.system
Class JmeSystemDelegate
java.lang.Object
com.jme3.system.JmeSystemDelegate
- Direct Known Subclasses:
JmeAndroidSystem,JmeDesktopSystem,JmeIosSystem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final Loggerprotected booleanprotected BiFunction<AppSettings,Boolean, Boolean> protected SoftTextDialogInputprotected Map<JmeSystem.StorageFolderType,File> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract URLgetResource(String name) getResourceAsStream(String name) voidhandleErrorMessage(String message) Internal use only: submit an error to the error message handlerbooleanhandleSettings(AppSettings settings, boolean loadFromRegistry) Internal use only: summon the settings handlerabstract voidinitialize(AppSettings settings) booleanfinal AssetManagerfinal AssetManagernewAssetManager(URL configFile) abstract AudioRenderernewAudioRenderer(AppSettings settings) abstract JmeContextnewContext(AppSettings settings, JmeContext.Type contextType) voidsetErrorMessageHandler(Consumer<String> handler) Set function to handle errors.voidsetLowPermissions(boolean lowPerm) voidsetSettingsHandler(BiFunction<AppSettings, Boolean, Boolean> handler) Set a function to handler app settings.voidvoidshowErrorDialog(String message) Deprecated.Use JmeSystemDelegate.handleErrorMessage(String) insteadbooleanshowSettingsDialog(AppSettings settings, boolean loadFromRegistry) Deprecated.abstract voidshowSoftKeyboard(boolean show) booleanabstract voidwriteImageFile(OutputStream outStream, String format, ByteBuffer imageData, int width, int height)
-
Field Details
-
logger
-
initialized
protected boolean initialized -
lowPermissions
protected boolean lowPermissions -
storageFolders
-
softTextDialogInput
-
errorMessageHandler
-
settingsHandler
-
-
Constructor Details
-
JmeSystemDelegate
public JmeSystemDelegate()
-
-
Method Details
-
getStorageFolder
-
getFullName
-
getResourceAsStream
-
getResource
-
trackDirectMemory
public boolean trackDirectMemory() -
setLowPermissions
public void setLowPermissions(boolean lowPerm) -
isLowPermissions
public boolean isLowPermissions() -
setSoftTextDialogInput
-
getSoftTextDialogInput
-
newAssetManager
-
newAssetManager
-
writeImageFile
public abstract void writeImageFile(OutputStream outStream, String format, ByteBuffer imageData, int width, int height) throws IOException - Throws:
IOException
-
setErrorMessageHandler
Set function to handle errors. The default implementation show a dialog if available.- Parameters:
handler- Consumer to which the error is passed as String
-
handleErrorMessage
Internal use only: submit an error to the error message handler -
setSettingsHandler
Set a function to handler app settings. The default implementation shows a settings dialog if available.- Parameters:
handler- handler function that accepts as argument an instance of AppSettings to transform and a boolean with the value of true if the settings are expected to be loaded from the user registry. The handler function returns false if the configuration is interrupted (eg.the the dialog was closed) or true otherwise.
-
handleSettings
Internal use only: summon the settings handler -
showErrorDialog
Deprecated.Use JmeSystemDelegate.handleErrorMessage(String) instead- Parameters:
message-
-
showSettingsDialog
Deprecated. -
getPlatform
-
getBuildInfo
-
getPlatformAssetConfigURL
-
newContext
-
newAudioRenderer
-
initialize
-
showSoftKeyboard
public abstract void showSoftKeyboard(boolean show)
-