UserManager.GetUserRestrictions(UserHandle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the user-wide restrictions imposed on the user specified by userHandle
.
[Android.Runtime.Register("getUserRestrictions", "(Landroid/os/UserHandle;)Landroid/os/Bundle;", "GetGetUserRestrictions_Landroid_os_UserHandle_Handler")]
public virtual Android.OS.Bundle? GetUserRestrictions (Android.OS.UserHandle? userHandle);
[<Android.Runtime.Register("getUserRestrictions", "(Landroid/os/UserHandle;)Landroid/os/Bundle;", "GetGetUserRestrictions_Landroid_os_UserHandle_Handler")>]
abstract member GetUserRestrictions : Android.OS.UserHandle -> Android.OS.Bundle
override this.GetUserRestrictions : Android.OS.UserHandle -> Android.OS.Bundle
Parameters
- userHandle
- UserHandle
the UserHandle of the user for whom to retrieve the restrictions.
Returns
a Bundle containing all the restrictions.
<p>Requires <code data-dev-comment-type="c">android.permission.MANAGE_USERS</code> or
<code data-dev-comment-type="c">android.permission.INTERACT_ACROSS_USERS</code>, otherwise specified <code data-dev-comment-type="c">UserHandle user</code>
must be the calling user or a profile associated with it.
- Attributes
Remarks
Returns the user-wide restrictions imposed on the user specified by userHandle
.
Java documentation for android.os.UserManager.getUserRestrictions(android.os.UserHandle)
.
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.