| Modifier and Type | Field and Description |
|---|---|
protected int |
loopDelay |
| Constructor and Description |
|---|
Service() |
Service(java.lang.String serviceApplicationId) |
| Modifier and Type | Method and Description |
|---|---|
void |
_onTimerTick(boolean canUpdate)
Called by the vm when a timer event has been triggered.
|
void |
_postEvent(int type,
int key,
int x,
int y,
int modifiers,
int timeStamp)
Called by the vm when an event is posted
|
void |
appEnding()
Called by the vm when the application is ending
|
void |
appStarting(int timeAvail)
Called by the vm when the application is starting
|
boolean |
isRunning() |
protected abstract void |
onService() |
protected abstract void |
onStart() |
protected abstract void |
onStop() |
boolean |
registerService() |
void |
start() |
void |
stop() |
void |
unregisterService() |
public Service(java.lang.String serviceApplicationId)
public Service()
protected abstract void onStart()
protected abstract void onService()
protected abstract void onStop()
public final void appStarting(int timeAvail)
MainClassappStarting in interface MainClasspublic void start()
public void stop()
throws java.lang.Exception
java.lang.Exceptionpublic boolean isRunning()
throws java.lang.Exception
java.lang.Exceptionpublic boolean registerService()
public void unregisterService()
public void _postEvent(int type,
int key,
int x,
int y,
int modifiers,
int timeStamp)
MainClass_postEvent in interface MainClasspublic void appEnding()
MainClasspublic void _onTimerTick(boolean canUpdate)
MainClass_onTimerTick in interface MainClass