Esempio n. 1
0
 private iOSConsentDialog()
 {
     mListener = NativeConsentDialogListener.GetListener();
     mListener.ToggleStateUpdated += OnNativeToggleStateUpdated;
     mListener.DialogCompleted    += OnNativeDialogCompleted;
     mListener.DialogDismissed    += OnNativeDialogDismissed;
 }
Esempio n. 2
0
        private AndroidConsentDialog()
        {
            mAndroidJavaObject = new AndroidJavaObject(FacadeClassName);
            mIsShowing         = false;

            mListener = NativeConsentDialogListener.GetListener();
            mListener.ToggleStateUpdated += OnNativeToggleStateUpdated;
            mListener.DialogCompleted    += OnNativeDialogCompleted;
            mListener.DialogDismissed    += OnNativeDialogDismissed;

            mCompleted += (_, __, ___) => mIsShowing = false;
            mDismissed += _ => mIsShowing = false;
        }