SupportErrorDialogFragment

class SupportErrorDialogFragment : DialogFragment


Wraps the Dialog returned by getErrorDialog by using so that it can be properly managed by the .

If you are using an Activity from the support library, use SupportErrorDialogFragment instead.

Summary

Public constructors

Public functions

java-static SupportErrorDialogFragment
newInstance(dialog: Dialog!)

Create a DialogFragment for displaying the getErrorDialog.

java-static SupportErrorDialogFragment
newInstance(
    dialog: Dialog!,
    cancelListener: DialogInterface.OnCancelListener?
)

Create a DialogFragment for displaying the getErrorDialog with an OnCancelListener.

Unit
Dialog
onCreateDialog(savedInstanceState: Bundle?)

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

Unit
show(manager: FragmentManager!, tag: String?)

Inherited Constants

From androidx.fragment.app.DialogFragment
const Int
const Int
const Int
const Int

Inherited functions

From androidx.fragment.app.DialogFragment
From androidx.fragment.app.Fragment
Unit
dump(
    prefix: String,
    fd: FileDescriptor?,
    writer: PrintWriter,
    args: Array<String!>?
)
Boolean
equals(o: Any?)
FragmentActivity?
Boolean
Boolean
Bundle?
FragmentManager
Context?
CreationExtras
ViewModelProvider.Factory
Any?
Any?
FragmentManager?

This function is deprecated.

Any?
Int
LayoutInflater
Lifecycle
LoaderManager

This function is deprecated.

Fragment?
FragmentManager
Any?
Resources
Boolean

This function is deprecated.

Any?
SavedStateRegistry
Any?
Any?
String
getString(resId: Int)
String?
Fragment?

This function is deprecated.

Int

This function is deprecated.

CharSequence
getText(resId: Int)
Boolean

This function is deprecated.

View?
LifecycleOwner
LiveData<LifecycleOwner!>
ViewModelStore
Boolean
Int
java-static Fragment
instantiate(context: Context, fname: String)

This function is deprecated.

Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Unit
onActivityResult(requestCode: Int, resultCode: Int, data: Intent?)

This function is deprecated.

Unit
onAttachFragment(childFragment: Fragment)

This function is deprecated.

Unit
Boolean
Animation?
onCreateAnimation(transit: Int, enter: Boolean, nextAnim: Int)
Animator?
onCreateAnimator(transit: Int, enter: Boolean, nextAnim: Int)
Unit
onCreateContextMenu(
    menu: ContextMenu,
    v: View,
    menuInfo: ContextMenu.ContextMenuInfo?
)
Unit

This function is deprecated.

View?
onCreateView(
    inflater: LayoutInflater,
    container: ViewGroup?,
    savedInstanceState: Bundle?
)
Unit
Unit

This function is deprecated.

Unit
Unit
onInflate(
    context: Context,
    attrs: AttributeSet,
    savedInstanceState: Bundle?
)
Unit

This function is deprecated.

Unit
onMultiWindowModeChanged(isInMultiWindowMode: Boolean)
Boolean

This function is deprecated.

Unit

This function is deprecated.

Unit
Unit
onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean)
Unit

This function is deprecated.

Unit
onPrimaryNavigationFragmentChanged(
    isPrimaryNavigationFragment: Boolean
)
Unit
onRequestPermissionsResult(
    requestCode: Int,
    permissions: Array<String!>,
    grantResults: IntArray
)

This function is deprecated.

Unit
Unit
onViewCreated(view: View, savedInstanceState: Bundle?)
Unit
ActivityResultLauncher<I!>
<I, O> registerForActivityResult(
    contract: ActivityResultContract<I!, O!>,
    callback: ActivityResultCallback<O!>
)
Unit
Unit
requestPermissions(permissions: Array<String!>, requestCode: Int)

This function is deprecated.

FragmentActivity
Bundle
Context
FragmentManager

This function is deprecated.

Any
Fragment
View
Unit
Unit
Unit
Unit
Unit
setEnterTransition(transition: Any?)
Unit
Unit
setExitTransition(transition: Any?)
Unit

This function is deprecated.

Unit
Unit
setMenuVisibility(menuVisible: Boolean)
Unit
setReenterTransition(transition: Any?)
Unit

This function is deprecated.

Unit
setReturnTransition(transition: Any?)
Unit
Unit
Unit
setTargetFragment(fragment: Fragment?, requestCode: Int)

This function is deprecated.

Unit
setUserVisibleHint(isVisibleToUser: Boolean)

This function is deprecated.

Boolean
Unit
Unit
startActivityForResult(intent: Intent, requestCode: Int)

This function is deprecated.

Unit
startIntentSenderForResult(
    intent: IntentSender,
    requestCode: Int,
    fillInIntent: Intent?,
    flagsMask: Int,
    flagsValues: Int,
    extraFlags: Int,
    options: Bundle?
)

This function is deprecated.

Unit
String
Unit

Public constructors

SupportErrorDialogFragment

SupportErrorDialogFragment()

Public functions

newInstance

java-static fun newInstance(dialog: Dialog!): SupportErrorDialogFragment

Create a DialogFragment for displaying the getErrorDialog.

Parameters
dialog: Dialog!

The Dialog created by getErrorDialog.

newInstance

java-static fun newInstance(
    dialog: Dialog!,
    cancelListener: DialogInterface.OnCancelListener?
): SupportErrorDialogFragment

Create a DialogFragment for displaying the getErrorDialog with an OnCancelListener.

Parameters
dialog: Dialog!

The Dialog created by getErrorDialog.

cancelListener: DialogInterface.OnCancelListener?

A DialogInterface.OnCancelListener for when a user cancels the DialogFragment.

onCancel

fun onCancel(dialog: DialogInterface!): Unit

onCreateDialog

fun onCreateDialog(savedInstanceState: Bundle?): Dialog

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

Parameters
savedInstanceState: Bundle?

Not used.

show

fun show(manager: FragmentManager!, tag: String?): Unit