예제 #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();
        }