public class

SupportErrorDialogFragment

extends DialogFragment
java.lang.Object
   ↳ android.support.v4.app.Fragment
     ↳ android.support.v4.app.DialogFragment
       ↳ com.google.android.gms.common.SupportErrorDialogFragment

Class Overview

Wraps the Dialog returned by getErrorDialog(int, Activity, int) by using DialogFragment so that it can be properly managed by the Activity.

To use this class, you must include the Android support library in your build path.

Summary

[Expand]
Inherited Constants
From class android.support.v4.app.DialogFragment
Public Constructors
SupportErrorDialogFragment()
Public Methods
static SupportErrorDialogFragment newInstance(Dialog dialog, DialogInterface.OnCancelListener cancelListener)
Create a DialogFragment for displaying the getErrorDialog(int, Activity, int) with an OnCancelListener.
static SupportErrorDialogFragment newInstance(Dialog dialog)
Create a DialogFragment for displaying the getErrorDialog(int, Activity, int).
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.support.v4.app.DialogFragment
From class android.support.v4.app.Fragment
From class java.lang.Object
From interface android.content.DialogInterface.OnCancelListener
From interface android.content.DialogInterface.OnDismissListener
From interface android.content.ComponentCallbacks
From interface android.view.View.OnCreateContextMenuListener

Public Constructors

public SupportErrorDialogFragment ()

Public Methods

public static SupportErrorDialogFragment 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.

public static SupportErrorDialogFragment newInstance (Dialog dialog)

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

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)