Hello,
If you want to use startlockTask like this thread: https://learn.microsoft.com/fr-fr/dotnet/api/android.app.activity.startlocktask?view=xamarin-android-sdk-12&viewFallbackFrom=xamarin-android-sdk-9
Just add StartLockTask();
method in the OnCreate
method of MainActivity.cs
.
Best Regards,
Leon Lu
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.