Package totalcross
Class Service
- java.lang.Object
-
- totalcross.Service
-
-
Field Summary
Fields Modifier and Type Field Description protected intloopDelay
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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 postedvoidappEnding()Called by the vm when the application is endingvoidappStarting(int timeAvail)Called by the vm when the application is startingbooleanisRunning()protected abstract voidonService()protected abstract voidonStart()protected abstract voidonStop()booleanregisterService()voidstart()voidstop()voidunregisterService()
-
-
-
Method Detail
-
onStart
protected abstract void onStart()
-
onService
protected abstract void onService()
-
onStop
protected abstract void onStop()
-
appStarting
public final void appStarting(int timeAvail)
Description copied from interface:MainClassCalled by the vm when the application is starting- Specified by:
appStartingin interfaceMainClass
-
start
public void start()
-
stop
public void stop() throws java.lang.Exception- Throws:
java.lang.Exception
-
isRunning
public boolean isRunning() throws java.lang.Exception- Throws:
java.lang.Exception
-
registerService
public boolean registerService()
-
unregisterService
public void unregisterService()
-
_postEvent
public void _postEvent(int type, int key, int x, int y, int modifiers, int timeStamp)Description copied from interface:MainClassCalled by the vm when an event is posted- Specified by:
_postEventin interfaceMainClass
-
appEnding
public void appEnding()
Description copied from interface:MainClassCalled by the vm when the application is ending
-
_onTimerTick
public void _onTimerTick(boolean canUpdate)
Description copied from interface:MainClassCalled by the vm when a timer event has been triggered.- Specified by:
_onTimerTickin interfaceMainClass
-
-