Пример #1
0
        /// <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();
        }
Пример #2
0
        /// <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();
        }
Пример #3
0
        public void PreviewDefaultConsentDialog(bool dismissible = true)
        {
            if (mPreviewConsentDialog == null)
            {
                // Grab the default consent dialog.
                mPreviewConsentDialog = Privacy.GetDefaultConsentDialog();
                SubscribePreviewConsentDialogEvents();
            }

            mPreviewConsentDialog.Show(dismissible);
        }
Пример #4
0
 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);
     }
 }