public class IntentHelperImp extends java.lang.Object implements IntentHelper, IntentHelper.IntentResultListener
IntentHelper.IntentHost, IntentHelper.IntentListener, IntentHelper.IntentResultListener| Modifier and Type | Field and Description |
|---|---|
protected IntentHelper.IntentHost |
mIntentHost |
protected java.util.List<IntentHelper.IntentListener> |
mIntentListeners |
| Constructor and Description |
|---|
IntentHelperImp(IntentHelper.IntentHost intentHost,
android.content.Context context,
android.app.Activity activity) |
| Modifier and Type | Method and Description |
|---|---|
void |
addIntentListener(IntentHelper.IntentListener listener) |
void |
onIntentResult(int requestCode,
int resultCode,
android.content.Intent intent) |
void |
startIntentIfCan(android.content.Intent intent,
int requestCode,
boolean forResult) |
protected IntentHelper.IntentHost mIntentHost
protected java.util.List<IntentHelper.IntentListener> mIntentListeners
public IntentHelperImp(IntentHelper.IntentHost intentHost, android.content.Context context, android.app.Activity activity)
public void startIntentIfCan(android.content.Intent intent,
int requestCode,
boolean forResult)
startIntentIfCan in interface IntentHelperpublic void addIntentListener(IntentHelper.IntentListener listener)
addIntentListener in interface IntentHelperpublic void onIntentResult(int requestCode,
int resultCode,
android.content.Intent intent)
onIntentResult in interface IntentHelper.IntentResultListener