AbsActivityStarter
java.lang.Object
AbsActivityStarter
Starts another screen or activity for the user and slides it into view. This class can be used in one of two ways:
Screen
(or MapScreen
), you create
an ActivityStarter
and pass it the class that should be started and
the arguments that you want to pass to its initialize
method. When
the activity returns, a callback will be called based on the name of the
activity class.
Users can use this class directly but should probably prefer the
Screen#presentScreen(Class, Object...) and
presentActivity(Intent, String)
methods instead.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
ActivityStarter(Intent intent, String callback)
| ||||||||||
|
ActivityStarter(Class<? extends Activity> screenClass, Object... params)
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void
|
start(Activity owner, String callback)
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String
|
getCanceledCallback()
| ||||||||||
String
|
getDefaultCallback()
| ||||||||||
void
|
invokeCallback(Activity owner, Intent data, int resultCode)
|
Methods inherited from
class
java.lang.Object
| |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Object
|
clone()
| ||||||||||
boolean
|
equals(Object arg0)
| ||||||||||
void
|
finalize()
| ||||||||||
final
Class<?>
|
getClass()
| ||||||||||
int
|
hashCode()
| ||||||||||
final
void
|
notify()
| ||||||||||
final
void
|
notifyAll()
| ||||||||||
String
|
toString()
| ||||||||||
final
void
|
wait()
| ||||||||||
final
void
|
wait(long arg0, int arg1)
| ||||||||||
final
void
|
wait(long arg0)
|