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(int, Activity, int) by using DialogFragment so that it can be properly managed by the Activity.

Use this class only if you are targeting API 12 and above. Otherwise, use SupportErrorDialogFragment.

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(int, Activity, int) with an OnCancelListener.
static ErrorDialogFragment newInstance(Dialog dialog)
void onCancel(DialogInterface dialog)
Dialog onCreateDialog(Bundle savedInstanceState)
Returns a Dialog created by getErrorDialog(int, Activity, 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.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)

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

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

public static ErrorDialogFragment newInstance (Dialog dialog)

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

public void onCancel (DialogInterface dialog)

public Dialog onCreateDialog (Bundle savedInstanceState)

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

Parameters
savedInstanceState Not used.

public void show (FragmentManager manager, String tag)