public final class JMEPlatformAdapter
extends java.lang.Object
implements org.tantalum.PlatformAdapter
Modifier and Type | Class and Description |
---|---|
static class |
JMEPlatformAdapter.JMEHttpConn
A convenience class abstracting HTTP connection operations between
different platforms
|
Modifier and Type | Field and Description |
---|---|
javax.microedition.lcdui.Display |
display
There is only one Display per application
|
Constructor and Description |
---|
JMEPlatformAdapter()
Create a new instance of the JME platform port helper class.
|
Modifier and Type | Method and Description |
---|---|
org.tantalum.storage.FlashCache |
getFlashCache(char priority,
int cacheType,
org.tantalum.storage.FlashCache.StartupTask startupTask) |
org.tantalum.PlatformUtils.HttpConn |
getHttpConn(java.lang.String url,
java.util.Vector requestPropertyKeys,
java.util.Vector requestPropertyValues,
byte[] bytes,
java.lang.String requestMethod)
Create an HTTP PUT connection appropriate for this phone platform
|
org.tantalum.storage.ImageCacheView |
getImageCacheView() |
org.tantalum.util.L |
getLog() |
void |
init(int logMode)
Initialize logging
|
java.lang.Object |
readImageFromJAR(java.lang.String jarPathAndFilename) |
void |
runOnUiThread(java.lang.Runnable action)
Add an object to be executed in the foreground on the event dispatch
thread.
|
void |
shutdownComplete()
The application calls this when all Workers have completed shutdown to
inform the phone that the program has closed itself.
|
void |
vibrateAsync(int duration,
java.lang.Runnable timekeeperLambda)
We always vibrate from the UI thread.
|
public final javax.microedition.lcdui.Display display
public JMEPlatformAdapter()
routeDebugOutputToSerialPort
- - some platform implementation
(Android) may ignore this parameter because they have their own mechanism
for remote debugging.public void init(int logMode)
init
in interface org.tantalum.PlatformAdapter
logMode
- public void runOnUiThread(java.lang.Runnable action)
runOnUiThread
in interface org.tantalum.PlatformAdapter
action
- public void shutdownComplete()
shutdownComplete
in interface org.tantalum.PlatformAdapter
public org.tantalum.storage.ImageCacheView getImageCacheView()
getImageCacheView
in interface org.tantalum.PlatformAdapter
public org.tantalum.storage.FlashCache getFlashCache(char priority, int cacheType, org.tantalum.storage.FlashCache.StartupTask startupTask) throws org.tantalum.storage.FlashDatabaseException
getFlashCache
in interface org.tantalum.PlatformAdapter
org.tantalum.storage.FlashDatabaseException
public org.tantalum.PlatformUtils.HttpConn getHttpConn(java.lang.String url, java.util.Vector requestPropertyKeys, java.util.Vector requestPropertyValues, byte[] bytes, java.lang.String requestMethod) throws java.io.IOException
getHttpConn
in interface org.tantalum.PlatformAdapter
url
- requestPropertyKeys
- requestPropertyValues
- bytes
- requestMethod
- java.io.IOException
public org.tantalum.util.L getLog()
getLog
in interface org.tantalum.PlatformAdapter
public java.lang.Object readImageFromJAR(java.lang.String jarPathAndFilename) throws java.io.IOException
readImageFromJAR
in interface org.tantalum.PlatformAdapter
java.io.IOException
public void vibrateAsync(int duration, java.lang.Runnable timekeeperLambda)
vibrateAsync
in interface org.tantalum.PlatformAdapter
frequency
- duration
-