0

I have installed iOS 16(Beta 2) on iPhone XR device and iPadOS 16(beta 2) on iPad mini 5.

I have used the solution from below answer which is written in swift in below link attached. I need to simulate the swift code to Xamarin.iOS to detect Lockdown mode enabled.

Is there any public API to detect Lockdown Mode in iOS 16(beta 3)?

my code:

bool isLockDownModeEnabled = NSUserDefaults.StandardUserDefaults.ObjectIsForced("LDMGlobalEnabled");

While LockDown mode is still on when I try to debug this it always returns false. Required output should be "true" while LockDown mode is "ON".

Can someone help me out with this, Thank you in Advance!!

kush
  • 77
  • 6
  • Got the answer for Xamarin.iOS to detect Lockdown mode var isLockDownEnabled = NSUserDefaults.StandardUserDefaults.BoolForKey("LDMGlobalEnabled"); – kush Aug 02 '22 at 10:08

1 Answers1

1

Got the answer for Xamarin.iOS to detect Lockdown mode

var isLockDownEnabled = NSUserDefaults.StandardUserDefaults.BoolForKey("LDMGlobalEnabled");

This would return correct result.

kush
  • 77
  • 6