plugin / com.github.shadowsocks.plugin / AlertDialogFragment

AlertDialogFragment

abstract class AlertDialogFragment<Arg : Parcelable, Ret : Parcelable> : AppCompatDialogFragment, OnClickListener

Based on: https://android.googlesource.com/platform/packages/apps/ExactCalculator/+/8c43f06/src/com/android/calculator2/AlertDialogFragment.java

Constructors

<init>

AlertDialogFragment()

Based on: https://android.googlesource.com/platform/packages/apps/ExactCalculator/+/8c43f06/src/com/android/calculator2/AlertDialogFragment.java

Properties

arg

val arg: Arg

Functions

onClick

open fun onClick(dialog: DialogInterface?, which: Int): Unit

onCreateDialog

open fun onCreateDialog(savedInstanceState: Bundle?): AlertDialog

onDismiss

open fun onDismiss(dialog: DialogInterface): Unit

prepare

abstract fun Builder.prepare(listener: OnClickListener): Unit

ret

open fun ret(which: Int): Ret?

show

fun show(target: Fragment, requestCode: Int = 0, tag: String = javaClass.simpleName): Unit

withArg

fun withArg(arg: Arg): AlertDialogFragment<Arg, Ret>

Companion Object Functions

getRet

fun <T : Parcelable> getRet(data: Intent): T