Modifier and Type | Field and Description |
---|---|
static int |
LOADED
The application is in the loaded state.
|
DESTROYED, NOT_LOADED, PAUSED, STARTED
Modifier and Type | Method and Description |
---|---|
void |
init()
Requests the application manager calls the
initXlet method on
the application. |
void |
load()
Provides a hint to preload at least the initial class of the application
into local storage, resources permitting.
|
addAppStateChangeEventListener, getState, pause, removeAppStateChangeEventListener, resume, start, start, stop
static final int LOADED
void load()
init
method.
This method is asynchronous and its completion will be notified by
an AppStateChangeEvent
. In case of failure, the hasFailed
method of the AppStateChangeEvent
will return true.
Calls to this method shall only succeed if the application is in the
NOT_LOADED state.
In all cases, an AppStateChangeEvent will be sent, whether
the call was successful or not.
SecurityException
- if the application is not entitled to load
this application. Being able to load an application requires
to be entitled to start it.void init()
initXlet
method on
the application.
This method is asynchronous and its completion will be notified by
an AppStateChangeEvent. In case of failure, the hasFailed method of
the AppStateChangeEvent
will return true.
Calls to this method shall only succeed if the application is in the
NOT_LOADED or LOADED states. If the application is in the NOT_LOADED
state, the application will move through the LOADED state into the PAUSED
state before calls to this method complete.
In all cases, an AppStateChangeEvent will be sent, whether the call was successful or not.
SecurityException
- if the application is not entitled to load
this application. Being able to init an application requires
to be entitled to start it.Copyright © 2013 CableLabs. All rights reserved.