public interface Callbacks
| Modifier and Type | Field and Description |
|---|---|
static int |
STATE_MIGRATE
This state means the application is getting upgraded and this is the first
call to the upgradation process.
|
static int |
STATE_POST_MIGRATE
This state means the application is getting upgraded and this is the final
stage of the upgradation process.
|
static int |
STATE_RESTARTED
This state means the application is restarted after recovering from a
crash.
|
static int |
STATE_STARTED
When an application is started in this state, it means the application
is started afresh.
|
static int |
STATE_VALIDATION
This is called mostly from the packager which does the package validation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
This callback will invoked when the application is asked to quit.
|
void |
migrate(String fromVersion)
This callback is invoked as the first step for updating an application.
|
void |
migrateCompleted()
This callback is invoked on the new process that is running on state
STATE_POST_MIGRATE.
|
void |
routes(Mapper mapper)
This method is where the URL registration have to be done.
|
static final int STATE_STARTED
static final int STATE_RESTARTED
static final int STATE_MIGRATE
static final int STATE_POST_MIGRATE
static final int STATE_VALIDATION
void routes(Mapper mapper)
mapper - The mapper object to which the URL should be connected toMappervoid cleanup()
void migrate(String fromVersion)
fromVersion - The older version from which the new version
is migrating fromvoid migrateCompleted()
Copyright © 2017. All rights reserved.