public class Lifecycle extends Object
| Constructor and Description |
|---|
Lifecycle() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Callback when the app is destroyed
|
protected void |
handleNetworkError(NetworkEvent err)
Invoked on a network error callback
|
void |
init(Object context)
Invoked when the app is "cold launched", this acts like a constructor
|
void |
runApp()
This method is invoked by start to show the first form of the application
|
void |
start()
Default start callback that's invoked on application resume
|
void |
stop()
Callback when the app is suspended
|
public void init(Object context)
context - some OSs might pass a native object representing platform internal informationprotected void handleNetworkError(NetworkEvent err)
err - the network error eventpublic void start()
public void runApp()
public void stop()
public void destroy()
Copyright © 2021. All rights reserved.