public interface InternalSupport
Modifier and Type | Method and Description |
---|---|
void |
checkStarted()
Checks whether the MicroEJ support engine has been started.
|
void |
flush(Bitmap bitmap,
Rect bounds)
Flushes the given back buffer on the application display.
|
Context |
getContext()
Returns the Android application context of the MicroEJ support engine.
|
void |
setDisplayListener(InternalDisplayListener displayListener)
Sets the current display listener.
|
void |
unsetDisplayListener(InternalDisplayListener displayListener)
Unsets the current display listener.
|
void checkStarted()
IllegalStateException
- if the engine has not been started.ApplicationSupport.startup()
void flush(Bitmap bitmap, Rect bounds)
This method is called by the front panel when a flush is requested by the application and the tearing signal has been received.
bitmap
- a bitmap containing the back buffer.bounds
- the bounds of the bitmap to flush.Context getContext()
IllegalStateException
- if the context has not been set.ApplicationSupport.setContext(Context)
void setDisplayListener(InternalDisplayListener displayListener)
displayListener
- the listener to set.void unsetDisplayListener(InternalDisplayListener displayListener)
This method does nothing if the current display listener is not the given object.
displayListener
- the listener to unset.