Share via


DevicePolicyManager.ClearCrossProfileIntentFilters(ComponentName) Method

Definition

Called by a profile owner of a managed profile to remove the cross-profile intent filters that go from the managed profile to the parent, or from the parent to the managed profile.

[Android.Runtime.Register("clearCrossProfileIntentFilters", "(Landroid/content/ComponentName;)V", "GetClearCrossProfileIntentFilters_Landroid_content_ComponentName_Handler")]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_PROFILE_INTERACTION")]
public virtual void ClearCrossProfileIntentFilters (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("clearCrossProfileIntentFilters", "(Landroid/content/ComponentName;)V", "GetClearCrossProfileIntentFilters_Landroid_content_ComponentName_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_PROFILE_INTERACTION")>]
abstract member ClearCrossProfileIntentFilters : Android.Content.ComponentName -> unit
override this.ClearCrossProfileIntentFilters : Android.Content.ComponentName -> unit

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

Attributes

Remarks

Called by a profile owner of a managed profile to remove the cross-profile intent filters that go from the managed profile to the parent, or from the parent to the managed profile. Only removes those that have been set by the profile owner.

<em>Note</em>: A list of default cross profile intent filters are set up by the system when the profile is created, some of them ensure the proper functioning of the profile, while others enable sharing of data from the parent to the managed profile for user convenience. These default intent filters are not cleared when this API is called. If the default cross profile data sharing is not desired, they can be disabled with UserManager#DISALLOW_SHARE_INTO_MANAGED_PROFILE.

Java documentation for android.app.admin.DevicePolicyManager.clearCrossProfileIntentFilters(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