isDeveloperOptionsEnabled method
Returns a map with developer options status.
Keys: developerOptions (bool), usbDebugging (bool).
On iOS, detects debugger attachment and development provisioning profiles.
Implementation
@override
Future<Map<String, bool>> isDeveloperOptionsEnabled() async {
final result = await methodChannel
.invokeMethod<Map<Object?, Object?>>('isDeveloperOptionsEnabled');
if (result == null) {
return {'developerOptions': false, 'usbDebugging': false};
}
return result.map((key, value) =>
MapEntry(key.toString(), value == true));
}