public class

ErrorDialogFragment

extends DialogFragment
java.lang.Object
   ↳ android.app.Fragment
     ↳ android.app.DialogFragment
       ↳ com.amazon.geo.mapsv2.util.ErrorDialogFragment

Class Overview

Wraps an error dialog in a Fragment so that its life cycle can be managed by the Activity.

Summary

[Expand]
Inherited Constants
From class android.app.DialogFragment
From interface android.content.ComponentCallbacks2
Public Constructors
ErrorDialogFragment()
Public Methods
static ErrorDialogFragment newInstance(Dialog dialog, DialogInterface.OnCancelListener cancelListener)
Creates a new ErrorDialogFragment with an DialogInterface.OnCancelListener.
static ErrorDialogFragment newInstance(Dialog dialog)
Creates a new ErrorDialogFragment.
void onCancel(DialogInterface dialog)
Dialog onCreateDialog(Bundle savedInstanceState)
void show(FragmentManager manager, String tag)
[Expand]
Inherited Methods
From class android.app.DialogFragment
From class android.app.Fragment
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.content.DialogInterface.OnCancelListener
From interface android.content.DialogInterface.OnDismissListener
From interface android.view.View.OnCreateContextMenuListener

Public Constructors

public ErrorDialogFragment ()

Public Methods

public static ErrorDialogFragment newInstance (Dialog dialog, DialogInterface.OnCancelListener cancelListener)

Creates a new ErrorDialogFragment with an DialogInterface.OnCancelListener.

Parameters
dialog The wrapped error dialog.
cancelListener The cancel listener.
Returns
  • The ErrorDialogFragment.

public static ErrorDialogFragment newInstance (Dialog dialog)

Creates a new ErrorDialogFragment.

Parameters
dialog The wrapped error dialog.
Returns
  • The ErrorDialogFragment.

public void onCancel (DialogInterface dialog)

public Dialog onCreateDialog (Bundle savedInstanceState)

public void show (FragmentManager manager, String tag)