Android.OS.UserManager Members

The members of Android.OS.UserManager are listed below.

See Also: Inherited members from Java.Lang.Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
DisallowAddUserstring. Specifies if a user is disallowed from adding new users and profiles.
const
DisallowAdjustVolumestring. Specifies if a user is disallowed from adjusting the master volume.
const
DisallowAppsControlstring. Specifies if a user is disallowed from modifying applications in Settings or launchers.
const
DisallowConfigBluetoothstring. Specifies if a user is disallowed from configuring bluetooth.
const
DisallowConfigCellBroadcastsstring. Specifies if a user is disallowed from configuring cell broadcasts.
const
DisallowConfigCredentialsstring. Specifies if a user is disallowed from configuring user credentials.
const
DisallowConfigMobileNetworksstring. Specifies if a user is disallowed from configuring mobile networks.
const
DisallowConfigTetheringstring. Specifies if a user is disallowed from configuring Tethering & portable hotspots.
const
DisallowConfigVpnstring. Specifies if a user is disallowed from configuring VPN.
const
DisallowConfigWifistring. Specifies if a user is disallowed from changing Wi-Fi access points.
const
DisallowCreateWindowsstring. Specifies that windows besides app windows should not be created.
const
DisallowCrossProfileCopyPastestring. Specifies if what is copied in the clipboard of this profile can be pasted in related profiles.
const
DisallowDebuggingFeaturesstring. Specifies if a user is disallowed from enabling or accessing debugging features.
const
DisallowFactoryResetstring. Specifies if a user is disallowed from factory resetting from Settings.
const
DisallowInstallAppsstring. Specifies if a user is disallowed from installing applications.
const
DisallowInstallUnknownSourcesstring. Specifies if a user is disallowed from enabling the "Unknown Sources" setting, that allows installation of apps from unknown sources.
const
DisallowModifyAccountsstring. Specifies if a user is disallowed from adding and removing accounts.
const
DisallowMountPhysicalMediastring. Specifies if a user is disallowed from mounting physical external media.
const
DisallowOutgoingCallsstring. Specifies that the user is not allowed to make outgoing phone calls.
const
DisallowRemoveUserstring. Specifies if a user is disallowed from removing itself and other users.
const
DisallowShareLocationstring. Specifies if a user is disallowed from toggling location sharing.
const
DisallowSmsstring. Specifies that the user is not allowed to send or receive SMS messages.
const
DisallowUninstallAppsstring. Specifies if a user is disallowed from uninstalling applications.
const
DisallowUnmuteMicrophonestring. Specifies if a user is disallowed from adjusting microphone volume.
const
DisallowUsbFileTransferstring. Specifies if a user is disallowed from transferring files over USB.
const
EnsureVerifyAppsstring. Specifies if a user is disallowed from disabling application verification.

Public Properties

[read-only]
IsUserAGoatbool. Used to determine whether the user making this call is subject to teleportations.
[read-only]
UserCountint. Return the number of users currently created on the device.
[read-only]
UserNamestring. Returns the user name of the user making this call.
[read-only]
UserProfilesIList<UserHandle>. Returns a list of UserHandles for profiles associated with the user that the calling process is running on, including the user itself.
UserRestrictionsBundle. Returns the user-wide restrictions imposed on this user.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GetApplicationRestrictions(string) : Bundle
Returns a Bundle containing any saved application restrictions for this user, for the given package name.
GetSerialNumberForUser(UserHandle) : long
Return the serial number for a user.
GetUserForSerialNumber(long) : UserHandle
Return the user associated with a serial number previously returned by UserManager.GetSerialNumberForUser(UserHandle).
GetUserRestrictions(UserHandle) : Bundle
Returns the user-wide restrictions imposed on the user specified by userHandle.
HasUserRestriction(string) : bool
Returns whether the current user has been disallowed from performing certain actions or setting certain settings.
IsUserRunning(UserHandle) : bool
Return whether the given user is actively running.
IsUserRunningOrStopping(UserHandle) : bool
Return whether the given user is actively running or stopping.
SetRestrictionsChallenge(string) : bool
Sets a new challenge PIN for restrictions.
SetUserRestriction(string, bool)
Sets the value of a specific restriction.
SetUserRestrictions(Bundle, UserHandle)
Sets all the user-wide restrictions for the specified user.