![]()
|
Lists the common methods that are provided by classes like Screen
,
MapScreen, and other "Screen
-like" classes that cannot be
in the same class hierarchy as Screen
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract
void
|
finish(Object result)
Call this method when the current screen is finished and should be
closed.
| ||||||||||
abstract
void
|
presentActivity(Intent intent, String returnMethod)
Starts the activity with the specified intent.
| ||||||||||
abstract
void
|
presentScreen(Class<? extends Activity> screenClass, Object... args)
Starts the activity represented by the specified screen class
and slides it into view.
| ||||||||||
abstract
void
|
showAlertDialog(String title, String message)
Displays an alert dialog and waits for the user to dismiss it.
| ||||||||||
abstract
boolean
|
showConfirmationDialog(String title, String message)
Displays a confirmation dialog and waits for the user to select an
option.
|
Call this method when the current screen is finished and should be closed. The specified value will be passed back to the previous screen and returned from the #presentScreen(Class, Object...) call that originally presented this screen.
Starts the activity with the specified intent. This method will not return until the new activity is dismissed by the user.
Starts the activity represented by the specified screen class and slides it into view. This method returns immediately even as the screen is being presented, but at that point a new screen has taken over the user's attention and the old one might be discarded from memory at any time. Therefore, users should typically not do any important computation after calling this method.
initialize
method
Displays an alert dialog and waits for the user to dismiss it.
Displays a confirmation dialog and waits for the user to select an option.
true if the user clicked the "Yes" option; false if the user clicked the "No" option or cancelled the dialog (for example, by pressing the Back button)