public class RationaleDialogFragmentCompat
extends AppCompatDialogFragment
AppCompatDialogFragment to display rationale for permission requests when the request
comes from a Fragment or Activity that can host a Fragment.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
| Constructor and Description |
|---|
RationaleDialogFragmentCompat() |
| Modifier and Type | Method and Description |
|---|---|
static RationaleDialogFragmentCompat |
newInstance(java.lang.String rationaleMsg,
java.lang.String positiveButton,
java.lang.String negativeButton,
int theme,
int requestCode,
java.lang.String[] permissions) |
void |
onAttach(android.content.Context context) |
android.app.Dialog |
onCreateDialog(android.os.Bundle savedInstanceState) |
void |
onDetach() |
void |
showAllowingStateLoss(FragmentManager manager,
java.lang.String tag)
Version of
#show(FragmentManager, String) that no-ops when an IllegalStateException
would otherwise occur. |
public static final java.lang.String TAG
public static RationaleDialogFragmentCompat newInstance(java.lang.String rationaleMsg, java.lang.String positiveButton, java.lang.String negativeButton, int theme, int requestCode, java.lang.String[] permissions)
public void showAllowingStateLoss(FragmentManager manager,
java.lang.String tag)
#show(FragmentManager, String) that no-ops when an IllegalStateException
would otherwise occur.public void onAttach(android.content.Context context)
public void onDetach()
public android.app.Dialog onCreateDialog(android.os.Bundle savedInstanceState)