Need example program for AppOpsManager.StartWatchingMode function(Xamarin Android)

Muthukumar S (ZNX) 1 Reputation point
2021-04-12T13:16:19.213+00:00

I created a project to connect wifi network by programmatically in android 10 ,11 and api level 29,30. I used AddNetworkSuggestions api for my implementation. I got notification before the connecting the network. Please refer this image given below. 86973-image.png. My requirement is I need to control the response after clicking YES or NO option on this notification. So I refer this below "AppOpsManager.StartWatchingMode" api for my functionality.(https://learn.microsoft.com/en-us/dotnet/api/android.app.appopsmanager.startwatchingmode?view=xamarin-android-sdk-9). But I have blocker to implement the Listener(IOnOpChangedListener) for apply this function. So please give any example program to implement this.

Also please share official & valid android 10 and 11 xamarin api documentation link

Thanks.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,378 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.