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(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.support.v4.app.DialogFragment
Public Constructors
SupportErrorDialogFragment()
Public Methods
static SupportErrorDialogFragment newInstance(Dialog dialog, DialogInterface.OnCancelListener cancelListener)
Create a DialogFragment for displaying the getErrorDialog(Activity, int, int) with an OnCancelListener.
static SupportErrorDialogFragment 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.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(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
SupportErrorDialogFragment The SupportErrorDialogFragment.

public static SupportErrorDialogFragment newInstance (Dialog dialog)

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