Hello,
Activity has changed to Microsoft.Maui.ApplicationModel.Platform.CurrentActivity for MAUI and to Xamarin.Essentials.Platform.CurrentActivity for Xamarin.Forms.
Actually, if you are using this method in MainActivity
, you don't need to call the global Context
and Activity
. You could use this
keyword instead of these two classes for testing.
Based on the information you provided, the second answer in the first link has already demonstrated this.
consentInformation.RequestConsentInfoUpdate(
this,
requestParameters,
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.