UserManager class

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

See: https://developer.android.com/reference/android/os/UserManager

Constructors

UserManager()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Properties

supportsMultipleUsers → Future<bool>
Returns whether this device supports multiple users with their own login and customizable space. [...]
read-only

Constants

ALLOW_PARENT_PROFILE_APP_LINKING → const String
Allows apps in the parent profile to handle web links from the managed profile. [...]
'allow_parent_profile_app_linking'
DISALLOW_ADD_MANAGED_PROFILE → const String
Specifies if a user is disallowed from adding managed profiles. [...]
'no_add_managed_profile'
DISALLOW_ADD_USER → const String
Specifies if a user is disallowed from adding new users. [...]
'no_add_user'
DISALLOW_ADJUST_VOLUME → const String
Specifies if a user is disallowed from adjusting the master volume. [...]
'no_adjust_volume'
DISALLOW_AIRPLANE_MODE → const String
Specifies if airplane mode is disallowed on the device. [...]
'no_airplane_mode'
DISALLOW_AMBIENT_DISPLAY → const String
Specifies if ambient display is disallowed for the user. [...]
'no_ambient_display'
DISALLOW_APPS_CONTROL → const String
Specifies if a user is disallowed from modifying applications in Settings or launchers. [...]
'no_control_apps'
DISALLOW_AUTOFILL → const String
Specifies if a user is not allowed to use Autofill Services. [...]
'no_autofill'
DISALLOW_BLUETOOTH → const String
Specifies if bluetooth is disallowed on the device. [...]
'no_bluetooth'
DISALLOW_BLUETOOTH_SHARING → const String
Specifies if outgoing bluetooth sharing is disallowed on the device. [...]
'no_bluetooth_sharing'
DISALLOW_CONFIG_BLUETOOTH → const String
Specifies if a user is disallowed from configuring bluetooth. [...]
'no_config_bluetooth'
DISALLOW_CONFIG_BRIGHTNESS → const String
Specifies if a user is disallowed from configuring brightness. [...]
'no_config_brightness'
DISALLOW_CONFIG_CELL_BROADCASTS → const String
Specifies if a user is disallowed from configuring cell broadcasts. [...]
'no_config_cell_broadcasts'
DISALLOW_CONFIG_CREDENTIALS → const String
Specifies if a user is disallowed from configuring user credentials. [...]
'no_config_credentials'
DISALLOW_CONFIG_DATE_TIME → const String
Specifies if date, time and timezone configuring is disallowed. [...]
'no_config_date_time'
DISALLOW_CONFIG_LOCALE → const String
Specifies if a user is disallowed from changing the device language. [...]
'no_config_locale'
DISALLOW_CONFIG_LOCATION → const String
Specifies if a user is disallowed from enabling or disabling location providers. [...]
'no_config_location'
DISALLOW_CONFIG_MOBILE_NETWORKS → const String
Specifies if a user is disallowed from configuring mobile networks. [...]
'no_config_mobile_networks'
DISALLOW_CONFIG_SCREEN_TIMEOUT → const String
Specifies if a user is disallowed from changing screen off timeout. [...]
'no_config_screen_timeout'
DISALLOW_CONFIG_TETHERING → const String
Specifies if a user is disallowed from configuring Tethering & portable hotspots. [...]
'no_config_tethering'
DISALLOW_CONFIG_VPN → const String
Specifies if a user is disallowed from configuring a VPN. [...]
'no_config_vpn'
DISALLOW_CONFIG_WIFI → const String
Specifies if a user is disallowed from changing Wi-Fi access points. [...]
'no_config_wifi'
DISALLOW_CREATE_WINDOWS → const String
Specifies that windows besides app windows should not be created. [...]
'no_create_windows'
DISALLOW_CROSS_PROFILE_COPY_PASTE → const String
Specifies if what is copied in the clipboard of this profile can be pasted in related profiles. [...]
'no_cross_profile_copy_paste'
DISALLOW_DATA_ROAMING → const String
Specifies if a user is not allowed to use cellular data when roaming. [...]
'no_data_roaming'
DISALLOW_DEBUGGING_FEATURES → const String
Specifies if a user is disallowed from enabling or accessing debugging features. [...]
'no_debugging_features'
DISALLOW_FACTORY_RESET → const String
Specifies if a user is disallowed from factory resetting from Settings. [...]
'no_factory_reset'
DISALLOW_FUN → const String
Specifies if the user is not allowed to have fun. [...]
'no_fun'
DISALLOW_INSTALL_APPS → const String
Specifies if a user is disallowed from installing applications. [...]
'no_install_apps'
DISALLOW_INSTALL_UNKNOWN_SOURCES → const String
Specifies if a user is disallowed from enabling the "Unknown Sources" setting, that allows installation of apps from unknown sources. [...]
'no_install_unknown_sources'
DISALLOW_MODIFY_ACCOUNTS → const String
Specifies if a user is disallowed from adding and removing accounts. [...]
'no_modify_accounts'
DISALLOW_MOUNT_PHYSICAL_MEDIA → const String
Specifies if a user is disallowed from mounting physical external media. [...]
'no_physical_media'
DISALLOW_NETWORK_RESET → const String
Specifies if a user is disallowed from resetting network settings from Settings. [...]
'no_network_reset'
DISALLOW_OUTGOING_BEAM → const String
Specifies if the user is not allowed to use NFC to beam out data from apps. [...]
'no_outgoing_beam'
DISALLOW_OUTGOING_CALLS → const String
Specifies that the user is not allowed to make outgoing phone calls. [...]
'no_outgoing_calls'
DISALLOW_PRINTING → const String
Specifies whether the user is allowed to print. [...]
'no_printing'
DISALLOW_REMOVE_MANAGED_PROFILE → const String
Specifies if managed profiles of this user can be removed, other than by its profile owner. [...]
'no_remove_managed_profile'
DISALLOW_REMOVE_USER → const String
When set on the primary user this specifies if the user can remove other users. [...]
'no_remove_user'
DISALLOW_SAFE_BOOT → const String
Specifies if the user is not allowed to reboot the device into safe boot mode. [...]
'no_safe_boot'
DISALLOW_SET_USER_ICON → const String
Specifies if a user is not allowed to change their icon. [...]
'no_set_user_icon'
DISALLOW_SET_WALLPAPER → const String
User restriction to disallow setting a wallpaper. [...]
'no_set_wallpaper'
DISALLOW_SHARE_INTO_MANAGED_PROFILE → const String
Specifies whether the user can share file / picture / data from the primary user into the managed profile, either by sending them from the primary side, or by picking up data within an app in the managed profile. [...]
'no_sharing_into_profile'
DISALLOW_SHARE_LOCATION → const String
Specifies if a user is disallowed from turning on location sharing. [...]
'no_share_location'
DISALLOW_SMS → const String
Specifies that the user is not allowed to send or receive SMS messages. [...]
'no_sms'
DISALLOW_SYSTEM_ERROR_DIALOGS → const String
Specifies that system error dialogs for crashed or unresponsive apps should not be shown. [...]
'no_system_error_dialogs'
DISALLOW_UNIFIED_PASSWORD → const String
Specifies that the managed profile is not allowed to have unified lock screen challenge with the primary user. [...]
'no_unified_password'
DISALLOW_UNINSTALL_APPS → const String
Specifies if a user is disallowed from uninstalling applications. [...]
'no_uninstall_apps'
DISALLOW_UNMUTE_MICROPHONE → const String
Specifies if a user is disallowed from adjusting microphone volume. [...]
'no_unmute_microphone'
DISALLOW_USB_FILE_TRANSFER → const String
Specifies if a user is disallowed from transferring files over USB. [...]
'no_usb_file_transfer'
DISALLOW_USER_SWITCH → const String
Specifies if user switching is blocked on the current user. [...]
'no_user_switch'
ENSURE_VERIFY_APPS → const String
Specifies if a user is disallowed from disabling application verification. [...]
'ensure_verify_apps'
KEY_RESTRICTIONS_PENDING → const String
Application restriction key that is used to indicate the pending arrival of real restrictions for the app. [...]
'restrictions_pending'
USER_CREATION_FAILED_NO_MORE_USERS → const int
Error result indicating that no more users can be created on this device. [...]
2
USER_CREATION_FAILED_NOT_PERMITTED → const int
Error result indicating that this user is not allowed to add other users on this device. [...]
1
USER_OPERATION_ERROR_CURRENT_USER → const int
Indicates user operation failed because the target user is in the foreground. [...]
4
USER_OPERATION_ERROR_LOW_STORAGE → const int
Indicates user operation failed because device has low data storage. [...]
5
USER_OPERATION_ERROR_MANAGED_PROFILE → const int
Indicates user operation failed because target user is a managed profile. [...]
2
USER_OPERATION_ERROR_MAX_RUNNING_USERS → const int
Indicates user operation failed because maximum running user limit has been reached. [...]
3
USER_OPERATION_ERROR_MAX_USERS → const int
Indicates user operation failed because maximum user limit has been reached. [...]
6
USER_OPERATION_ERROR_UNKNOWN → const int
Indicates user operation failed for unknown reason. [...]
1
USER_OPERATION_SUCCESS → const int
Indicates user operation is successful. [...]
0