net9.0-android
namespace Android.OS
{
    [Register("android/os/UserManager", DoNotGenerateAcw = true)]
    public class UserManager : Object
    {
        [Register("hasUserRestriction", "(Ljava/lang/String;)Z", "GetHasUserRestriction_Ljava_lang_String_Handler")]
        public virtual bool HasUserRestriction([StringDef(Fields = new[] { "DisallowModifyAccounts", "DisallowConfigWifi", "DisallowConfigLocale", "DisallowInstallApps", "DisallowUninstallApps", "DisallowShareLocation", "DisallowAirplaneMode", "DisallowConfigBrightness", "DisallowAmbientDisplay", "DisallowConfigScreenTimeout", "DisallowInstallUnknownSources", "DisallowInstallUnknownSourcesGlobally", "DisallowConfigBluetooth", "DisallowBluetooth", "DisallowBluetoothSharing", "DisallowUsbFileTransfer", "DisallowConfigCredentials", "DisallowRemoveUser", "DisallowRemoveManagedProfile", "DisallowDebuggingFeatures", "DisallowConfigVpn", "DisallowConfigLocation", "DisallowConfigDateTime", "DisallowConfigTethering", "DisallowNetworkReset", "DisallowFactoryReset", "DisallowAddUser", "DisallowAddManagedProfile", "EnsureVerifyApps", "DisallowConfigCellBroadcasts", "DisallowConfigMobileNetworks", "DisallowAppsControl", "DisallowMountPhysicalMedia", "DisallowUnmuteMicrophone", "DisallowAdjustVolume", "DisallowOutgoingCalls", "DisallowSms", "DisallowFun", "DisallowCreateWindows", "DisallowSystemErrorDialogs", "DisallowCrossProfileCopyPaste", "DisallowOutgoingBeam", "DisallowSetWallpaper", "DisallowSafeBoot", "DisallowDataRoaming", "DisallowSetUserIcon", "DisallowUnifiedPassword", "AllowParentProfileAppLinking", "DisallowAutofill", "DisallowContentCapture", "DisallowContentSuggestions", "DisallowUserSwitch", "DisallowShareIntoManagedProfile", "DisallowPrinting", "DisallowConfigPrivateDns", "DisallowMicrophoneToggle", "DisallowCameraToggle", "KeyRestrictionsPending", "DisallowChangeWifiState", "DisallowWifiTethering", "DisallowSharingAdminConfiguredWifi", "DisallowWifiDirect", "DisallowAddWifiConfig", "DisallowCellular2g", "DisallowUltraWidebandRadio", "DisallowGrantAdmin" }, Type = "Android.OS.UserManager")] string? restrictionKey);
    }
}
Assembly Mono.Android , Version=0.0.0.0, PublicKeyToken=84e04ff9cfb79065
Help Documentation
.NET 6.0-android7.0-android8.0-android9.0-android
OS Platforms

For the selected framework this API is only supported on the following OS platforms:

  • Android >= 21
  • Built-in API
  • Package-provided API

04/26/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙