public interface ApplicationSupport
Modifier and Type | Method and Description |
---|---|
void |
onDisplayTearing(ApplicationDisplay display)
Handles the tearing signal of the current application display.
|
void |
onPointerMove(ApplicationDisplay display,
int x,
int y)
Handles a pointer move of the current application display.
|
void |
onPointerPress(ApplicationDisplay display,
int x,
int y)
Handles a pointer press of the current application display.
|
void |
onPointerRelease(ApplicationDisplay display)
Handles a pointer release of the current application display.
|
void |
setContext(Context context)
Sets the Android application context that should be used by the MicroEJ support engine.
|
void |
setDisplay(ApplicationDisplay display)
Sets the current application display.
|
void |
startup()
Starts up the MicroEJ support engine for Android.
|
void |
unsetDisplay(ApplicationDisplay display)
Unsets the current application display.
|
void onDisplayTearing(ApplicationDisplay display)
This method does nothing if the current application display is not the given object.
display
- the display performing the tearing signal.void onPointerMove(ApplicationDisplay display, int x, int y)
This method does nothing if the current application display is not the given object.
display
- the display notifying the pointer move.x
- the x coordinate of the pointer.y
- the y coordinate of the pointer.void onPointerPress(ApplicationDisplay display, int x, int y)
This method does nothing if the current application display is not the given object.
display
- the display notifying the pointer press.x
- the x coordinate of the pointer.y
- the y coordinate of the pointer.void onPointerRelease(ApplicationDisplay display)
This method does nothing if the current application display is not the given object.
display
- the display notifying the pointer release.void setContext(Context context)
context
- the context of the Android Application.void setDisplay(ApplicationDisplay display)
display
- the display to set.void startup()
void unsetDisplay(ApplicationDisplay display)
This method does nothing if the current application display is not the given object.
display
- the display to unset.