Package com.jme3.system
Class JmeSystemDelegate
java.lang.Object
com.jme3.system.JmeSystemDelegate
- Direct Known Subclasses:
- JmeAndroidSystem,- JmeDesktopSystem,- JmeIosSystem
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected final Loggerprotected booleanprotected BiFunction<AppSettings,Boolean, Boolean> protected SoftTextDialogInputprotected Map<JmeSystem.StorageFolderType,File> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
- 
initializedprotected boolean initialized
- 
lowPermissionsprotected boolean lowPermissions
- 
storageFolders
- 
softTextDialogInput
- 
errorMessageHandler
- 
settingsHandler
 
- 
- 
Constructor Details- 
JmeSystemDelegatepublic JmeSystemDelegate()
 
- 
- 
Method Details- 
getStorageFolder
- 
getFullName
- 
getResourceAsStream
- 
getResource
- 
trackDirectMemorypublic boolean trackDirectMemory()
- 
setLowPermissionspublic void setLowPermissions(boolean lowPerm) 
- 
isLowPermissionspublic boolean isLowPermissions()
- 
setSoftTextDialogInput
- 
getSoftTextDialogInput
- 
newAssetManager
- 
newAssetManager
- 
writeImageFilepublic abstract void writeImageFile(OutputStream outStream, String format, ByteBuffer imageData, int width, int height) throws IOException - Throws:
- IOException
 
- 
setErrorMessageHandlerSet function to handle errors. The default implementation show a dialog if available.- Parameters:
- handler- Consumer to which the error is passed as String
 
- 
handleErrorMessageInternal use only: submit an error to the error message handler
- 
setSettingsHandlerSet 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.
 
- 
handleSettingsInternal use only: summon the settings handler
- 
showErrorDialogDeprecated.Use JmeSystemDelegate.handleErrorMessage(String) instead- Parameters:
- message-
 
- 
showSettingsDialogDeprecated.
- 
getPlatform
- 
getBuildInfo
- 
getPlatformAssetConfigURL
- 
newContext
- 
newAudioRenderer
- 
initialize
- 
showSoftKeyboardpublic abstract void showSoftKeyboard(boolean show) 
 
-