Package org.greenrobot.eventbus.util
Class ErrorDialogManager
- java.lang.Object
-
- org.greenrobot.eventbus.util.ErrorDialogManager
-
public class ErrorDialogManager extends java.lang.ObjectCentral class for app that want to use event based error dialogs.
How to use:- Set the
factoryto configure dialogs for your app, typically inApplication.onCreate() - Use one of
attachTo(Activity),attachTo(Activity, boolean)orattachTo(Activity, boolean, Bundle)in your Activity, typically in onCreate.
ErrorDialogFragmentFactory. - Set the
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classErrorDialogManager.HoneycombManagerFragmentstatic classErrorDialogManager.SupportManagerFragment
-
Field Summary
Fields Modifier and Type Field Description static ErrorDialogFragmentFactory<?>factoryMust be set by the application.static java.lang.StringKEY_EVENT_TYPE_ON_CLOSEstatic java.lang.StringKEY_FINISH_AFTER_DIALOGstatic java.lang.StringKEY_ICON_IDstatic java.lang.StringKEY_MESSAGEstatic java.lang.StringKEY_TITLEprotected static java.lang.StringTAG_ERROR_DIALOGprotected static java.lang.StringTAG_ERROR_DIALOG_MANAGER
-
Constructor Summary
Constructors Constructor Description ErrorDialogManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidattachTo(android.app.Activity activity)Scope is limited to the activity's class.static voidattachTo(android.app.Activity activity, boolean finishAfterDialog)Scope is limited to the activity's class.static voidattachTo(android.app.Activity activity, boolean finishAfterDialog, android.os.Bundle argumentsForErrorDialog)Scope is limited to the activity's class.static voidattachTo(android.app.Activity activity, java.lang.Object executionScope, boolean finishAfterDialog, android.os.Bundle argumentsForErrorDialog)protected static voidcheckLogException(ThrowableFailureEvent event)
-
-
-
Field Detail
-
factory
public static ErrorDialogFragmentFactory<?> factory
Must be set by the application.
-
TAG_ERROR_DIALOG
protected static final java.lang.String TAG_ERROR_DIALOG
- See Also:
- Constant Field Values
-
TAG_ERROR_DIALOG_MANAGER
protected static final java.lang.String TAG_ERROR_DIALOG_MANAGER
- See Also:
- Constant Field Values
-
KEY_TITLE
public static final java.lang.String KEY_TITLE
- See Also:
- Constant Field Values
-
KEY_MESSAGE
public static final java.lang.String KEY_MESSAGE
- See Also:
- Constant Field Values
-
KEY_FINISH_AFTER_DIALOG
public static final java.lang.String KEY_FINISH_AFTER_DIALOG
- See Also:
- Constant Field Values
-
KEY_ICON_ID
public static final java.lang.String KEY_ICON_ID
- See Also:
- Constant Field Values
-
KEY_EVENT_TYPE_ON_CLOSE
public static final java.lang.String KEY_EVENT_TYPE_ON_CLOSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
attachTo
public static void attachTo(android.app.Activity activity)
Scope is limited to the activity's class.
-
attachTo
public static void attachTo(android.app.Activity activity, boolean finishAfterDialog)Scope is limited to the activity's class.
-
attachTo
public static void attachTo(android.app.Activity activity, boolean finishAfterDialog, android.os.Bundle argumentsForErrorDialog)Scope is limited to the activity's class.
-
attachTo
public static void attachTo(android.app.Activity activity, java.lang.Object executionScope, boolean finishAfterDialog, android.os.Bundle argumentsForErrorDialog)
-
checkLogException
protected static void checkLogException(ThrowableFailureEvent event)
-
-