private void RequestConsentHandler(NSError?error)
        {
            if (error != null)
            {
                _ = _consentInformationCompletionSource.TrySetException(new ConsentException(error));
                return;
            }
            var info = new ConsentInformation(
                ConsentInformationSharedInstance.ConsentStatus.ToConsentStatus(),
                ConsentInformationSharedInstance.ConsentType.ToConsentType(),
                ConsentInformationSharedInstance.FormStatus.ToFormStatus());

            _ = _consentInformationCompletionSource.TrySetResult(info);
        }
コード例 #2
0
 void IConsentInformationOnConsentInfoUpdateSuccessListener.OnConsentInfoUpdateSuccess()
 {
     if (_consentInformation == null)
     {
         _ = _consentInformationCompletionSource.TrySetException(ConsentException.UnknownError);
     }
     else
     {
         var info = new ConsentInformation(
             _consentInformation.ConsentStatus.ToConsentStatus(),
             _consentInformation.ConsentType.ToConsentType(),
             _consentInformation.IsConsentFormAvailable ? FormStatus.Available : FormStatus.Unavailable);
         _ = _consentInformationCompletionSource.TrySetResult(info);
     }
 }