Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
        public void PreviewDefaultConsentDialog(bool dismissible = true)
        {
            if (mPreviewConsentDialog == null)
            {
                // Grab the default consent dialog.
                mPreviewConsentDialog = Privacy.GetDefaultConsentDialog();
                SubscribePreviewConsentDialogEvents();
            }

            mPreviewConsentDialog.Show(dismissible);
        }
Exemplo n.º 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);
     }
 }