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 |
---|---|
abstract void |
finish() |
abstract BleService |
getBleService() |
CacheManager |
getCacheManager() |
abstract java.lang.String |
getName()
Return the name of this Platform, i.e.
|
abstract NotificationsService |
getNotificationsService()
Retrieves the platform specific implementation of a
NotificationsService . |
abstract java.util.Optional<javafx.geometry.Orientation> |
getOrientation() |
abstract PicturesService |
getPicturesService() |
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 ScanService |
getScanService() |
abstract SettingService |
getSettingService()
Retrieves the platform specific implementation of a
SettingService . |
abstract boolean |
isTablet() |
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 abstract BleService getBleService()
public abstract NotificationsService getNotificationsService()
NotificationsService
.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
public abstract java.util.Optional<javafx.geometry.Orientation> getOrientation()
public abstract void finish()
public abstract boolean isTablet()
public abstract ScanService getScanService()
public abstract PicturesService getPicturesService()