public class

ErrorDialogFragment

extends DialogFragment
java.lang.Object
   ↳ android.app.Fragment
     ↳ android.app.DialogFragment
       ↳ com.google.android.gms.common.ErrorDialogFragment

Class Overview

Wraps the Dialog returned by getErrorDialog(Activity, int, int) by using DialogFragment so that it can be properly managed by the Activity. If you are using an Activity from the support library, use SupportErrorDialogFragment instead.

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)
Create a DialogFragment for displaying the getErrorDialog(Activity, int, int) with an OnCancelListener.
static ErrorDialogFragment newInstance(Dialog dialog)
void onCancel(DialogInterface dialog)
Dialog onCreateDialog(Bundle savedInstanceState)
Returns a Dialog created by getErrorDialog(Activity, int, int) with the provided errorCode, activity, request code, and cancel listener.
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.DialogInterface.OnCancelListener
From interface android.content.DialogInterface.OnDismissListener
From interface android.content.ComponentCallbacks2
From interface android.view.View.OnCreateContextMenuListener
From interface android.content.ComponentCallbacks

Public Constructors

public ErrorDialogFragment ()

Public Methods

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

Create a DialogFragment for displaying the getErrorDialog(Activity, int, int) with an OnCancelListener.

Parameters
dialog Dialog: The Dialog created by getErrorDialog(Activity, int, int).
cancelListener DialogInterface.OnCancelListener: A DialogInterface.OnCancelListener for when a user cancels the DialogFragment.
Returns
ErrorDialogFragment The ErrorDialogFragment.

public static ErrorDialogFragment newInstance (Dialog dialog)

Create a DialogFragment for displaying the getErrorDialog(Activity, int, int).

Parameters
dialog Dialog: The Dialog created by getErrorDialog(Activity, int, int).
Returns
ErrorDialogFragment The ErrorDialogFragment.

public void onCancel (DialogInterface dialog)

Parameters
dialog DialogInterface

public Dialog onCreateDialog (Bundle savedInstanceState)

Returns a Dialog created by getErrorDialog(Activity, int, int) with the provided errorCode, activity, request code, and cancel listener.

Parameters
savedInstanceState Bundle: Not used.
Returns
Dialog

public void show (FragmentManager manager, String tag)

Parameters
manager FragmentManager
tag String