UserManager UserManager Class

Definition

Manages users and user details on a multi-user system.

[Android.Runtime.Register("android/os/UserManager", ApiSince=17, DoNotGenerateAcw=true)]
public class UserManager : Java.Lang.Object
type UserManager = class
    inherit Object
Inheritance
UserManagerUserManager
Attributes

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

UserManager(IntPtr, JniHandleOwnership) UserManager(IntPtr, JniHandleOwnership)

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

Fields

AllowParentProfileAppLinking AllowParentProfileAppLinking
DisallowAddManagedProfile DisallowAddManagedProfile
DisallowAddUser DisallowAddUser

Specifies if a user is disallowed from adding new users and profiles.

DisallowAdjustVolume DisallowAdjustVolume

Specifies if a user is disallowed from adjusting the master volume.

DisallowAppsControl DisallowAppsControl

Specifies if a user is disallowed from modifying applications in Settings or launchers.

DisallowAutofill DisallowAutofill
DisallowBluetooth DisallowBluetooth
DisallowBluetoothSharing DisallowBluetoothSharing
DisallowConfigBluetooth DisallowConfigBluetooth

Specifies if a user is disallowed from configuring bluetooth.

DisallowConfigCellBroadcasts DisallowConfigCellBroadcasts

Specifies if a user is disallowed from configuring cell broadcasts.

DisallowConfigCredentials DisallowConfigCredentials

Specifies if a user is disallowed from configuring user credentials.

DisallowConfigMobileNetworks DisallowConfigMobileNetworks

Specifies if a user is disallowed from configuring mobile networks.

DisallowConfigTethering DisallowConfigTethering

Specifies if a user is disallowed from configuring Tethering & portable hotspots.

DisallowConfigVpn DisallowConfigVpn

Specifies if a user is disallowed from configuring VPN.

DisallowConfigWifi DisallowConfigWifi

Specifies if a user is disallowed from changing Wi-Fi access points.

DisallowCreateWindows DisallowCreateWindows

Specifies that windows besides app windows should not be created.

DisallowCrossProfileCopyPaste DisallowCrossProfileCopyPaste

Specifies if what is copied in the clipboard of this profile can be pasted in related profiles.

DisallowDataRoaming DisallowDataRoaming
DisallowDebuggingFeatures DisallowDebuggingFeatures

Specifies if a user is disallowed from enabling or accessing debugging features.

DisallowFactoryReset DisallowFactoryReset

Specifies if a user is disallowed from factory resetting from Settings.

DisallowFun DisallowFun
DisallowInstallApps DisallowInstallApps

Specifies if a user is disallowed from installing applications.

DisallowInstallUnknownSources DisallowInstallUnknownSources

Specifies if a user is disallowed from enabling the "Unknown Sources" setting, that allows installation of apps from unknown sources.

DisallowModifyAccounts DisallowModifyAccounts
DisallowMountPhysicalMedia DisallowMountPhysicalMedia

Specifies if a user is disallowed from mounting physical external media.

DisallowNetworkReset DisallowNetworkReset
DisallowOutgoingBeam DisallowOutgoingBeam
DisallowOutgoingCalls DisallowOutgoingCalls

Specifies that the user is not allowed to make outgoing phone calls.

DisallowRemoveManagedProfile DisallowRemoveManagedProfile
DisallowRemoveUser DisallowRemoveUser

When set on the primary user this specifies if the user can remove other users.

DisallowSafeBoot DisallowSafeBoot
DisallowSetUserIcon DisallowSetUserIcon
DisallowSetWallpaper DisallowSetWallpaper
DisallowShareLocation DisallowShareLocation

Specifies if a user is disallowed from turning on location sharing.

DisallowSms DisallowSms

Specifies that the user is not allowed to send or receive SMS messages.

DisallowUninstallApps DisallowUninstallApps

Specifies if a user is disallowed from uninstalling applications.

DisallowUnmuteMicrophone DisallowUnmuteMicrophone

Specifies if a user is disallowed from adjusting microphone volume.

DisallowUsbFileTransfer DisallowUsbFileTransfer

Specifies if a user is disallowed from transferring files over USB.

EnsureVerifyApps EnsureVerifyApps

Specifies if a user is disallowed from disabling application verification.

KeyRestrictionsPending KeyRestrictionsPending
UserCreationFailedNoMoreUsers UserCreationFailedNoMoreUsers
UserCreationFailedNotPermitted UserCreationFailedNotPermitted

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
IsDemoUser IsDemoUser
IsSystemUser IsSystemUser
IsUserAGoat IsUserAGoat

Used to determine whether the user making this call is subject to teleportations.

IsUserUnlocked IsUserUnlocked
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
PeerReference PeerReference Inherited from Object
ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

UserCount UserCount

Return the number of users currently created on the device.

UserName UserName

Returns the user name of the user making this call.

UserProfiles UserProfiles

Returns a list of UserHandles for profiles associated with the user that the calling process is running on, including the user itself.

UserRestrictions UserRestrictions

Returns the user-wide restrictions imposed on this user.

Methods

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
CreateUserCreationIntent(String, String, String, PersistableBundle) CreateUserCreationIntent(String, String, String, PersistableBundle)
Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetApplicationRestrictions(String) GetApplicationRestrictions(String)

Returns a Bundle containing any saved application restrictions for this user, for the given package name.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetSerialNumberForUser(UserHandle) GetSerialNumberForUser(UserHandle)

Return the serial number for a user.

GetUserCreationTime(UserHandle) GetUserCreationTime(UserHandle)
GetUserForSerialNumber(Int64) GetUserForSerialNumber(Int64)

Return the user associated with a serial number previously returned by GetSerialNumberForUser(UserHandle).

GetUserRestrictions(UserHandle) GetUserRestrictions(UserHandle)

Returns the user-wide restrictions imposed on the user specified by userHandle.

HasUserRestriction(String) HasUserRestriction(String)

Returns whether the current user has been disallowed from performing certain actions or setting certain settings.

InvokeIsUserUnlocked(UserHandle) InvokeIsUserUnlocked(UserHandle)
IsQuietModeEnabled(UserHandle) IsQuietModeEnabled(UserHandle)
IsUserRunning(UserHandle) IsUserRunning(UserHandle)

Return whether the given user is actively running.

IsUserRunningOrStopping(UserHandle) IsUserRunningOrStopping(UserHandle)

Return whether the given user is actively running or stopping.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetRestrictionsChallenge(String) SetRestrictionsChallenge(String)

Sets a new challenge PIN for restrictions.

SetUserRestriction(String, Boolean) SetUserRestriction(String, Boolean)

Sets the value of a specific restriction.

SetUserRestrictions(Bundle, UserHandle) SetUserRestrictions(Bundle, UserHandle)

Sets all the user-wide restrictions for the specified user.

SupportsMultipleUsers() SupportsMultipleUsers()
ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to