public abstract class Platform
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Platform.LifecycleEvent |
Constructor and Description |
---|
Platform() |
Modifier and Type | Method and Description |
---|---|
CacheManager |
getCacheManager() |
abstract java.lang.String |
getName()
Return the name of this Platform, i.e.
|
abstract PositionService |
getPositionService()
Retrieves the platform specific implementation of a
PositionService . |
abstract java.io.File |
getPrivateStorage()
Get a storage directory that is private to the environment that is
calling this method.
|
abstract SettingService |
getSettingService()
Retrieves the platform specific implementation of a
SettingService . |
abstract void |
launchExternalBrowser(java.lang.String url) |
void |
setOnLifecycleEvent(javafx.util.Callback<Platform.LifecycleEvent,java.lang.Void> callback) |
public abstract java.lang.String getName()
{Android, Desktop, iOS}
public abstract java.io.File getPrivateStorage() throws java.io.IOException
java.io.IOException
- when a problem occurred when trying to get
the private storage on the underlying platformpublic abstract PositionService getPositionService()
PositionService
.public abstract SettingService getSettingService()
SettingService
.public CacheManager getCacheManager()
public void setOnLifecycleEvent(javafx.util.Callback<Platform.LifecycleEvent,java.lang.Void> callback)
public abstract void launchExternalBrowser(java.lang.String url) throws java.io.IOException, java.net.URISyntaxException
java.io.IOException
java.net.URISyntaxException