Udostępnij za pośrednictwem


DevicePolicyManager.GetUserControlDisabledPackages(ComponentName) Method

Definition

Returns the list of packages over which user control is disabled by a device or profile owner or holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_APPS_CONTROL.

[Android.Runtime.Register("getUserControlDisabledPackages", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetUserControlDisabledPackages_Landroid_content_ComponentName_Handler", ApiSince=30)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_APPS_CONTROL")]
public virtual System.Collections.Generic.IList<string> GetUserControlDisabledPackages (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getUserControlDisabledPackages", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetUserControlDisabledPackages_Landroid_content_ComponentName_Handler", ApiSince=30)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_APPS_CONTROL")>]
abstract member GetUserControlDisabledPackages : Android.Content.ComponentName -> System.Collections.Generic.IList<string>
override this.GetUserControlDisabledPackages : Android.Content.ComponentName -> System.Collections.Generic.IList<string>

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with. Null if the caller is not a device admin.

Returns

Attributes

Remarks

Returns the list of packages over which user control is disabled by a device or profile owner or holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_APPS_CONTROL.

Starting from Build.VERSION_CODES#UPSIDE_DOWN_CAKE, the returned policy will be the current resolved policy rather than the policy set by the calling admin.

Java documentation for android.app.admin.DevicePolicyManager.getUserControlDisabledPackages(android.content.ComponentName).

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.

Applies to