/// <summary> /// If a user has not set consent, the consent dialog box is displayed. /// </summary> /// <param name="adProviders"></param> private void ShowConsentDialog(IList <AdProvider> adProviders) { Log.Info(TAG, "Show consent dialog."); ConsentDialog dialog = new ConsentDialog(this, adProviders); dialog.SetCanceledOnTouchOutside(false); dialog.Show(); }
/// <summary> /// Display the consent dialog box. /// </summary> private void ShowConsentDialog() { // Start to process the consent dialog box. ConsentDialog consentDialog = new ConsentDialog(this, mAdProviders); consentDialog.SetCallback(this); consentDialog.SetCanceledOnTouchOutside(false); consentDialog.Show(); }
public void PreviewDefaultConsentDialog(bool dismissible = true) { if (mPreviewConsentDialog == null) { // Grab the default consent dialog. mPreviewConsentDialog = Privacy.GetDefaultConsentDialog(); SubscribePreviewConsentDialogEvents(); } mPreviewConsentDialog.Show(dismissible); }
public static void ShowDemoConsentDialog(bool localize, bool dismissible) { if (localize) { if (mDemoConsentDialogLocalized == null) { mDemoConsentDialogLocalized = ConstructConsentDialog(localize); SubscribeConsentDialogEvents(mDemoConsentDialogLocalized); } mDemoConsentDialogLocalized.Show(dismissible); } else { if (mDemoConsentDialog == null) { mDemoConsentDialog = ConstructConsentDialog(localize); SubscribeConsentDialogEvents(mDemoConsentDialog); } mDemoConsentDialog.Show(dismissible); } }