public abstract class MicroEJWatchFaceService
extends ListenableWatchFaceService
The concrete class should implement getApplicationMainClass()
to provide the main class of the MicroEJ
Application. It can also override runApplication()
to run the Application differently.
Constructor and Description |
---|
MicroEJWatchFaceService() |
Modifier and Type | Method and Description |
---|---|
protected <any> |
createWatchFaceFuture(SurfaceHolder surfaceHolder,
WatchState watchState,
ComplicationSlotsManager complicationSlotsManager,
CurrentUserStyleRepository currentUserStyleRepository) |
protected abstract String |
getApplicationMainClass()
Returns the main class of the MicroEJ Application.
|
void |
onCreate() |
protected void |
runApplication()
Runs the MicroEJ Application.
|
protected <any> createWatchFaceFuture(SurfaceHolder surfaceHolder, WatchState watchState, ComplicationSlotsManager complicationSlotsManager, CurrentUserStyleRepository currentUserStyleRepository)
protected abstract String getApplicationMainClass()
public void onCreate()
protected void runApplication()
This method invokes the main method of the Application main class (see getApplicationMainClass()
). This
behavior can be changed by overriding this method.