public interface ExecutionManager
javax.microedition.xlet.Xlet
.Modifier and Type | Method and Description |
---|---|
AppHandle |
getCurrentAppHandle()
Returns the application to which the thread calling this method belongs.
|
CARResult |
pause(AppHandle appHandle)
Pauses an application.
|
void |
pause(AppHandle appHandle,
ResultListener<CARResult,ExecutionException> listener)
Pauses an application.
|
boolean |
registerListener(java.util.function.Consumer<ExecutionEvent> listener)
Add a listener to receive events
|
CARResult |
start(AppHandle appHandle)
Start an application in its default running state:
AppState.RUNNING for graphics applications and
AppState.PAUSED for daemon applications. |
void |
start(AppHandle appHandle,
ResultListener<CARResult,ExecutionException> listener)
Start an application in its default running state:
AppState.RUNNING for graphics applications and
AppState.PAUSED for daemon applications. |
CARResult |
stop(AppHandle appHandle)
Stops an application.
|
void |
stop(AppHandle appHandle,
ResultListener<CARResult,ExecutionException> listener)
Stops an application.
|
boolean |
unregisterListener(java.util.function.Consumer<ExecutionEvent> listener)
Remove a listener to receive events
|
CARResult start(AppHandle appHandle) throws ExecutionException
AppState.RUNNING
for graphics applications and
AppState.PAUSED
for daemon applications.
These states correspond to the Xlet
states running and paused
respectively. This call blocks until the application is in its new state.
Required permission: com.aicas.jamaica.car.system.ExecutionManagerPermission "<appId of Xlet>", "start"
appHandle
- is the handle for an applicationExecutionException
void start(AppHandle appHandle, ResultListener<CARResult,ExecutionException> listener)
AppState.RUNNING
for graphics applications and
AppState.PAUSED
for daemon applications.
These states correspond to the Xlet
states running and paused
respectively. This call does not block until the application is in its new state.
Required permission: com.aicas.jamaica.car.system.ExecutionManagerPermission "<appId of Xlet>", "start"
appHandle
- is the handle for an applicationlistener
- listener that gets invoked after completionCARResult pause(AppHandle appHandle) throws ExecutionException
Required permission: com.aicas.jamaica.car.system.ExecutionManagerPermission "<appId of Xlet>", "pause"
appHandle
- is the handle for an applicationExecutionException
void pause(AppHandle appHandle, ResultListener<CARResult,ExecutionException> listener)
Required permission: com.aicas.jamaica.car.system.ExecutionManagerPermission "<appId of Xlet>", "pause"
appHandle
- is the handle for an applicationlistener
- listener that gets invoked after completionCARResult stop(AppHandle appHandle) throws ExecutionException
Required permission: com.aicas.jamaica.car.system.ExecutionManagerPermission "<appId of Xlet>", "stop"
appHandle
- is the handle for an applicationExecutionException
void stop(AppHandle appHandle, ResultListener<CARResult,ExecutionException> listener)
Required permission: com.aicas.jamaica.car.system.ExecutionManagerPermission "<appId of Xlet>", "stop"
appHandle
- is the handle for an applicationlistener
- listener that gets invoked after completionboolean registerListener(java.util.function.Consumer<ExecutionEvent> listener)
Required permission: com.aicas.jamaica.car.system.ExecutionManagerListenerPermission "registerListener"
listener
- boolean unregisterListener(java.util.function.Consumer<ExecutionEvent> listener)
Required permission: com.aicas.jamaica.car.system.ExecutionManagerListenerPermission "unregisterListener"
listener
- AppHandle getCurrentAppHandle()
Required permission: com.aicas.jamaica.car.system.ExecutionManagerExtendedPermission "getCurrentAppHandle"