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)
MainClass
appStarting
in interface MainClass
public void start()
public void stop() throws java.lang.Exception
java.lang.Exception
public boolean isRunning() throws java.lang.Exception
java.lang.Exception
public boolean registerService()
public void unregisterService()
public void _postEvent(int type, int key, int x, int y, int modifiers, int timeStamp)
MainClass
_postEvent
in interface MainClass
public void appEnding()
MainClass
public void _onTimerTick(boolean canUpdate)
MainClass
_onTimerTick
in interface MainClass